diff --git a/fs/fuse/inode.c b/fs/fuse/inode.c index 8488a862f4da..39d9d531c965 100644 --- a/fs/fuse/inode.c +++ b/fs/fuse/inode.c @@ -1884,6 +1884,7 @@ static void fuse_fs_cleanup(void) static struct kobject *fuse_kobj; +#ifdef CONFIG_FUSE_BPF static ssize_t fuse_bpf_show(struct kobject *kobj, struct kobj_attribute *attr, char *buff) { @@ -1892,9 +1893,12 @@ static ssize_t fuse_bpf_show(struct kobject *kobj, static struct kobj_attribute fuse_bpf_attr = __ATTR_RO(fuse_bpf); +#endif static struct attribute *bpf_features[] = { +#ifdef CONFIG_FUSE_BPF &fuse_bpf_attr.attr, +#endif NULL, };