Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

tools/sched_ext: Add explicit cast from void* in RESIZE_ARRAY()

This fixes the following compilation error when using the header from
C++ code:

error: assigning to 'struct scx_flux__data_uei_dump *' from
incompatible type 'void *'

Signed-off-by: Kuba Piecuch <jpiecuch@google.com>
Signed-off-by: Tejun Heo <tj@kernel.org>

authored by

Kuba Piecuch and committed by
Tejun Heo
7e311baf 4615361f

+1
+1
tools/sched_ext/include/scx/common.h
··· 67 67 bpf_map__set_value_size((__skel)->maps.elfsec##_##arr, \ 68 68 sizeof((__skel)->elfsec##_##arr->arr[0]) * (n)); \ 69 69 (__skel)->elfsec##_##arr = \ 70 + (typeof((__skel)->elfsec##_##arr)) \ 70 71 bpf_map__initial_value((__skel)->maps.elfsec##_##arr, &__sz); \ 71 72 } while (0) 72 73