On 6/6/25 8:25 AM, Jens Axboe wrote: > On 6/6/25 7:57 AM, Pavel Begunkov wrote: >> diff --git a/io_uring/bpf.h b/io_uring/bpf.h >> new file mode 100644 >> index 000000000000..a61c489d306b >> --- /dev/null >> +++ b/io_uring/bpf.h >> @@ -0,0 +1,26 @@ >> +// SPDX-License-Identifier: GPL-2.0 >> +#ifndef IOU_BPF_H >> +#define IOU_BPF_H >> + >> +#include <linux/io_uring_types.h> >> +#include <linux/bpf.h> >> + >> +#include "io_uring.h" >> + >> +struct io_uring_ops { >> +}; >> + >> +static inline bool io_bpf_attached(struct io_ring_ctx *ctx) >> +{ >> + return IS_ENABLED(CONFIG_BPF) && ctx->bpf_ops != NULL; >> +} >> + >> +#ifdef CONFIG_BPF >> +void io_unregister_bpf_ops(struct io_ring_ctx *ctx); >> +#else >> +static inline void io_unregister_bpf_ops(struct io_ring_ctx *ctx) >> +{ >> +} >> +#endif > > Should be > > #ifdef IO_URING_BPF > > here. CONFIG_IO_URING_BPF of course... -- Jens Axboe