fs/ubifs/xattr.c | 13 ------------- 1 file changed, 13 deletions(-)
From: Pascal Eberhard <pascal.eberhard@se.com>
commit 2b88fc21cae9 ("ubifs: Switch to generic xattr handlers") removes
usage of this anonymous enum. Delete the enum as well.
Signed-off-by: Pascal Eberhard <pascal.eberhard@se.com>
---
fs/ubifs/xattr.c | 13 -------------
1 file changed, 13 deletions(-)
diff --git a/fs/ubifs/xattr.c b/fs/ubifs/xattr.c
index 3db8486e3725..32927bf98306 100644
--- a/fs/ubifs/xattr.c
+++ b/fs/ubifs/xattr.c
@@ -48,19 +48,6 @@
#include <linux/slab.h>
#include <linux/xattr.h>
-/*
- * Extended attribute type constants.
- *
- * USER_XATTR: user extended attribute ("user.*")
- * TRUSTED_XATTR: trusted extended attribute ("trusted.*)
- * SECURITY_XATTR: security extended attribute ("security.*")
- */
-enum {
- USER_XATTR,
- TRUSTED_XATTR,
- SECURITY_XATTR,
-};
-
static const struct inode_operations empty_iops;
static const struct file_operations empty_fops;
--
2.43.0
在 2024/9/27 22:57, pascal.eberhard@gmail.com 写道: > From: Pascal Eberhard <pascal.eberhard@se.com> > > commit 2b88fc21cae9 ("ubifs: Switch to generic xattr handlers") removes > usage of this anonymous enum. Delete the enum as well. > > Signed-off-by: Pascal Eberhard <pascal.eberhard@se.com> > --- > fs/ubifs/xattr.c | 13 ------------- > 1 file changed, 13 deletions(-) > Reviewed-by: Zhihao Cheng <chengzhihao1@huawei.com> > diff --git a/fs/ubifs/xattr.c b/fs/ubifs/xattr.c > index 3db8486e3725..32927bf98306 100644 > --- a/fs/ubifs/xattr.c > +++ b/fs/ubifs/xattr.c > @@ -48,19 +48,6 @@ > #include <linux/slab.h> > #include <linux/xattr.h> > > -/* > - * Extended attribute type constants. > - * > - * USER_XATTR: user extended attribute ("user.*") > - * TRUSTED_XATTR: trusted extended attribute ("trusted.*) > - * SECURITY_XATTR: security extended attribute ("security.*") > - */ > -enum { > - USER_XATTR, > - TRUSTED_XATTR, > - SECURITY_XATTR, > -}; > - > static const struct inode_operations empty_iops; > static const struct file_operations empty_fops; > >
© 2016 - 2024 Red Hat, Inc.