Skip to contentSkip to conversation

ubifs: xattr: remove unused anonymous enum

PATCH RESEND In review [email protected] 2 participants 2 messages Sep 27, 2024 – Sep 29, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 ubifs: xattr: remove unused anonymous enum

From: Pascal Eberhard <[email protected]>

commit 2b88fc21cae9 ("ubifs: Switch to generic xattr handlers") removes usage of this anonymous enum. Delete the enum as well.

---
 fs/ubifs/xattr.c | 13 -------------
 1 file changed, 13 deletions(-)
fs/ubifs/xattr.c +0 -13
index 3db8486e3725..32927bf98306 100644
@@ -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;
 
Signature · 1 line
2.43.0
reviewer Reviewed-by on v1 1/1
#1 lore raw
Quoted 10 lines · 在 2024/9/27 22:57, [email protected] 写道:

From: Pascal Eberhard <[email protected]>

commit 2b88fc21cae9 ("ubifs: Switch to generic xattr handlers") removes usage of this anonymous enum. Delete the enum as well.

---
  fs/ubifs/xattr.c | 13 -------------
  1 file changed, 13 deletions(-)
Quoted 25 lines
fs/ubifs/xattr.c +0 -13
index 3db8486e3725..32927bf98306 100644
@@ -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;