Skip to content

Commit 4949e54

Browse files
Andreagit97poiana
authored andcommitted
fix(bpf): fix compilation issue on 4.18.0-193.75.1.el8_2.x86_64
Signed-off-by: Andrea Terzolo <andrea.terzolo@polito.it>
1 parent 4039d7d commit 4949e54

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

driver/bpf/fillers.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3126,7 +3126,7 @@ FILLER(sys_io_uring_setup_x, true)
31263126
unsigned long flags;
31273127
unsigned long sq_thread_cpu;
31283128
unsigned long sq_thread_idle;
3129-
unsigned long features;
3129+
unsigned long features = 0;
31303130

31313131
#ifdef __NR_io_uring_setup
31323132
struct io_uring_params params;
@@ -3157,7 +3157,9 @@ FILLER(sys_io_uring_setup_x, true)
31573157
flags = io_uring_setup_flags_to_scap(params.flags);
31583158
sq_thread_cpu = params.sq_thread_cpu;
31593159
sq_thread_idle = params.sq_thread_idle;
3160+
#ifdef IORING_FEAT_SINGLE_MMAP
31603161
features = io_uring_setup_feats_to_scap(params.features);
3162+
#endif
31613163
#else
31623164
sq_entries = 0;
31633165
cq_entries = 0;

0 commit comments

Comments
 (0)