]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/linux/capability.h
[PATCH] move capable() to capability.h
[linux-2.6-omap-h63xx.git] / include / linux / capability.h
index 6b4618902d3dd3f9fcb6298326a757dac415fb87..5a23ce7526292fa6e406ccae0ea3926b5bb210e3 100644 (file)
@@ -43,6 +43,7 @@ typedef struct __user_cap_data_struct {
 #ifdef __KERNEL__
 
 #include <linux/spinlock.h>
+#include <asm/current.h>
 
 /* #define STRICT_CAP_T_TYPECHECKS */
 
@@ -356,6 +357,8 @@ static inline kernel_cap_t cap_invert(kernel_cap_t c)
 
 #define cap_is_fs_cap(c)     (CAP_TO_MASK(c) & CAP_FS_MASK)
 
+extern int capable(int cap);
+
 #endif /* __KERNEL__ */
 
 #endif /* !_LINUX_CAPABILITY_H */