Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tools/testing/selftests/bpf/progs/bpf_arena_spin_lock.h
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ int arena_spin_lock_slowpath(arena_spinlock_t __arena __arg_arena *lock, u32 val
* barriers.
*/
if (val & _Q_LOCKED_MASK)
smp_cond_load_acquire_label(&lock->locked, !VAL, release_err);
(void)smp_cond_load_acquire_label(&lock->locked, !VAL, release_err);

/*
* take ownership and clear the pending bit.
Expand Down Expand Up @@ -380,7 +380,7 @@ int arena_spin_lock_slowpath(arena_spinlock_t __arena __arg_arena *lock, u32 val
/* Link @node into the waitqueue. */
WRITE_ONCE(prev->next, node);

arch_mcs_spin_lock_contended_label(&node->locked, release_node_err);
(void)arch_mcs_spin_lock_contended_label(&node->locked, release_node_err);

/*
* While waiting for the MCS lock, the next pointer may have
Expand Down
5 changes: 2 additions & 3 deletions tools/testing/selftests/bpf/progs/linked_list_fail.c
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,7 @@ int obj_new_no_composite(void *ctx)
SEC("?tc")
int obj_new_no_struct(void *ctx)
{

bpf_obj_new(union { int data; unsigned udata; });
(void)bpf_obj_new(union { int data; unsigned udata; });
return 0;
}

Expand All @@ -252,7 +251,7 @@ int new_null_ret(void *ctx)
SEC("?tc")
int obj_new_acq(void *ctx)
{
bpf_obj_new(struct foo);
(void)bpf_obj_new(struct foo);
return 0;
}

Expand Down
Loading