Skip to content

Commit 521dae1

Browse files
AdrianBunkLinus Torvalds
authored andcommitted
[PATCH] cleanup include/linux/reiserfs_xattr.h
- #ifdef guard this header for multiple inclusion - adjust the #include's to what is actually required by this header - remove an unneeded #ifdef - #endif comments Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 5b0a207 commit 521dae1

1 file changed

Lines changed: 19 additions & 5 deletions

File tree

‎include/linux/reiserfs_xattr.h‎

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22
File: linux/reiserfs_xattr.h
33
*/
44

5-
#include <linux/xattr.h>
5+
#ifndef _LINUX_REISERFS_XATTR_H
6+
#define _LINUX_REISERFS_XATTR_H
7+
8+
#include <linux/types.h>
69

710
/* Magic value in header */
811
#define REISERFS_XATTR_MAGIC 0x52465841 /* "RFXA" */
@@ -13,7 +16,18 @@ struct reiserfs_xattr_header {
1316
};
1417

1518
#ifdef __KERNEL__
19+
1620
#include <linux/init.h>
21+
#include <linux/list.h>
22+
#include <linux/rwsem.h>
23+
#include <linux/reiserfs_fs_i.h>
24+
#include <linux/reiserfs_fs.h>
25+
26+
struct inode;
27+
struct dentry;
28+
struct iattr;
29+
struct super_block;
30+
struct nameidata;
1731

1832
struct reiserfs_xattr_handler {
1933
char *prefix;
@@ -49,9 +63,7 @@ int reiserfs_xattr_set(struct inode *, const char *, const void *, size_t, int);
4963

5064
extern struct reiserfs_xattr_handler user_handler;
5165
extern struct reiserfs_xattr_handler trusted_handler;
52-
#ifdef CONFIG_REISERFS_FS_SECURITY
5366
extern struct reiserfs_xattr_handler security_handler;
54-
#endif
5567

5668
int reiserfs_xattr_register_handlers(void) __init;
5769
void reiserfs_xattr_unregister_handlers(void);
@@ -137,6 +149,8 @@ static inline int reiserfs_xattr_init(struct super_block *sb, int mount_flags)
137149
static inline void reiserfs_init_xattr_rwsem(struct inode *inode)
138150
{
139151
}
140-
#endif
152+
#endif /* CONFIG_REISERFS_FS_XATTR */
153+
154+
#endif /* __KERNEL__ */
141155

142-
#endif /* __KERNEL__ */
156+
#endif /* _LINUX_REISERFS_XATTR_H */

0 commit comments

Comments
 (0)