summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@stusta.de>2007-02-10 01:46:24 -0800
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-02-11 11:18:05 -0800
commit5b0a2075adb04846870a7fc1e62b08a532054ba6 (patch)
treefc877f8acfe582e2b096ae7d699d34e160b8a8e6 /include/linux
parent842f968f3fcdc475c95ec76a03b29c5147e87b54 (diff)
downloadblackbird-op-linux-5b0a2075adb04846870a7fc1e62b08a532054ba6.tar.gz
blackbird-op-linux-5b0a2075adb04846870a7fc1e62b08a532054ba6.zip
[PATCH] cleanup include/linux/xattr.h
- reduce the userspace visible part - fix the in-kernel compilation 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>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/Kbuild2
-rw-r--r--include/linux/xattr.h8
2 files changed, 9 insertions, 1 deletions
diff --git a/include/linux/Kbuild b/include/linux/Kbuild
index 683513e310de..bb881c3219fa 100644
--- a/include/linux/Kbuild
+++ b/include/linux/Kbuild
@@ -156,7 +156,6 @@ header-y += video_encoder.h
header-y += videotext.h
header-y += vt.h
header-y += wireless.h
-header-y += xattr.h
header-y += x25.h
unifdef-y += acct.h
@@ -336,6 +335,7 @@ unifdef-y += wait.h
unifdef-y += wanrouter.h
unifdef-y += watchdog.h
unifdef-y += wireless.h
+unifdef-y += xattr.h
unifdef-y += xfrm.h
objhdr-y += version.h
diff --git a/include/linux/xattr.h b/include/linux/xattr.h
index 0e7f1e20ea45..def131a5ac70 100644
--- a/include/linux/xattr.h
+++ b/include/linux/xattr.h
@@ -13,6 +13,10 @@
#define XATTR_CREATE 0x1 /* set value, fail if attr already exists */
#define XATTR_REPLACE 0x2 /* set value, fail if attr does not exist */
+#ifdef __KERNEL__
+
+#include <linux/types.h>
+
/* Namespaces */
#define XATTR_OS2_PREFIX "os2."
#define XATTR_OS2_PREFIX_LEN (sizeof (XATTR_OS2_PREFIX) - 1)
@@ -29,6 +33,8 @@
#define XATTR_USER_PREFIX "user."
#define XATTR_USER_PREFIX_LEN (sizeof (XATTR_USER_PREFIX) - 1)
+struct inode;
+struct dentry;
struct xattr_handler {
char *prefix;
@@ -50,4 +56,6 @@ ssize_t generic_listxattr(struct dentry *dentry, char *buffer, size_t buffer_siz
int generic_setxattr(struct dentry *dentry, const char *name, const void *value, size_t size, int flags);
int generic_removexattr(struct dentry *dentry, const char *name);
+#endif /* __KERNEL__ */
+
#endif /* _LINUX_XATTR_H */
OpenPOWER on IntegriCloud