mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-05 19:31:57 -04:00
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:
parent
ec0df7ca6d
commit
1c9bc1da8e
1 changed files with 4 additions and 0 deletions
|
|
@ -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,
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue