]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/xfs/linux-2.6/xfs_cred.h
Merge branch 'fb' into devel
[linux-2.6-omap-h63xx.git] / fs / xfs / linux-2.6 / xfs_cred.h
index 4af491024727264536ef4a0200d527dce35daa36..652721ce0ea5ecd0bb19d53c519facf9a62026a6 100644 (file)
@@ -18,6 +18,8 @@
 #ifndef __XFS_CRED_H__
 #define __XFS_CRED_H__
 
+#include <linux/capability.h>
+
 /*
  * Credentials
  */
@@ -27,8 +29,8 @@ typedef struct cred {
 
 extern struct cred *sys_cred;
 
-/* this is a hack.. (assums sys_cred is the only cred_t in the system) */
-static __inline int capable_cred(cred_t *cr, int cid)
+/* this is a hack.. (assumes sys_cred is the only cred_t in the system) */
+static inline int capable_cred(cred_t *cr, int cid)
 {
        return (cr == sys_cred) ? 1 : capable(cid);
 }