Skip to contentSkip to conversation

ext2: acl: remove unneeded include of linux/capability.h

PATCH Applied Jakub Sitnicki 2 participants 3 messages Mar 24, 2014 – Apr 1, 2014 ext2 file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 ext2: acl: remove unneeded include of linux/capability.h

acl.c has not been (directly) using the interface defined by linux/capability.h header since commit 3bd858ab1c451725c07a ("Introduce is_owner_or_cap() to wrap CAP_FOWNER use with fsuid check"). Remove it.

---
 fs/ext2/acl.c | 1 -
 1 file changed, 1 deletion(-)
fs/ext2/acl.c +0 -1
index 1b8001b..27695e6 100644
@@ -4,7 +4,6 @@
  * Copyright (C) 2001-2003 Andreas Gruenbacher, <[email protected]>
  */
 
-#include <linux/capability.h>
 #include <linux/init.h>
 #include <linux/sched.h>
 #include <linux/slab.h>
Signature · 1 line
1.8.5.3
#1 lore raw

Please ignore the patch sequence number. It is a single patch, not a part of a series.

Newbie mistake. Please let me know if I should resend the patch.

Thanks,
Jakub

#2 lore raw
In reply to Jakub Sitnicki
Quoted 4 lines · Jakub Sitnicki

acl.c has not been (directly) using the interface defined by linux/capability.h header since commit 3bd858ab1c451725c07a ("Introduce is_owner_or_cap() to wrap CAP_FOWNER use with fsuid check"). Remove it.

Thanks. I've merged the patch.

Honza

Quoted 26 lines
---
 fs/ext2/acl.c | 1 -
 1 file changed, 1 deletion(-)
fs/ext2/acl.c +0 -1
index 1b8001b..27695e6 100644
@@ -4,7 +4,6 @@
  * Copyright (C) 2001-2003 Andreas Gruenbacher, <[email protected]>
  */
 
-#include <linux/capability.h>
 #include <linux/init.h>
 #include <linux/sched.h>
 #include <linux/slab.h>
Signature · 7 lines
1.8.5.3

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/
Signature · 2 lines
Jan Kara <[email protected]>
SUSE Labs, CR