UPSTREAM: ANDROID: fuse-bpf: Correct fuse bpf feature flag

The feature flag should only advertise fuse-bpf if fuse-bpf is a
supported feature

Bug: 372951405
Test: Compile with CONFIG_FUSE_BPF unset
Change-Id: I0049a3075f78576499168b8ebb6e833ccd18db0f
Signed-off-by: Daniel Rosenberg <drosen@google.com>
This commit is contained in:
Daniel Rosenberg 2025-02-11 13:36:52 -08:00 • committed by Alexander Martinz
commit 1c9bc1da8e
No known key found for this signature in database
GPG key ID: CF15BDD9A321A9B2

View file

@ -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,
};