/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _BPF_CGROUP_DEFS_H #define _BPF_CGROUP_DEFS_H #ifdef CONFIG_CGROUP_BPF #include <linux/list.h> #include <linux/percpu-refcount.h> #include <linux/workqueue.h> struct bpf_prog_array; #ifdef CONFIG_BPF_LSM /* Maximum number of concurrently attachable per-cgroup LSM hooks. */ #define CGROUP_LSM_NUM … #else #define CGROUP_LSM_NUM … #endif enum cgroup_bpf_attach_type { … }; struct cgroup_bpf { … }; #else /* CONFIG_CGROUP_BPF */ struct cgroup_bpf {}; #endif /* CONFIG_CGROUP_BPF */ #endif