]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
Linux: Move keyring includes where they're needed
authorSimon Wilkinson <sxw@your-file-system.com>
Sat, 11 Sep 2010 11:43:35 +0000 (12:43 +0100)
committerDerrick Brashear <shadow@dementia.org>
Sat, 26 Feb 2011 23:24:15 +0000 (15:24 -0800)
We don't need the keyring headers in every file, so reduce
namespace pollution by just including them in osi_groups.c, which is
the only place that uses them.

Reviewed-on: http://gerrit.openafs.org/2746
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit 33ce7a9308c8a71fbfcea82a935e32521031f48d)

Change-Id: Ia943179a23c856ef9d37d1774192389cfe38612a
Reviewed-on: http://gerrit.openafs.org/4067
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
src/afs/LINUX/osi_groups.c
src/afs/sysincludes.h

index c3515ad1a25ed926f2247accce374c6e67eefb1e..baaff78ccf52a166173cf88c37e95d34e05c1d6f 100644 (file)
 
 #include <linux/smp_lock.h>
 
+#if defined(LINUX_KEYRING_SUPPORT)
+# include <linux/rwsem.h>
+# include <linux/key.h>
+# if defined(HAVE_LINUX_KEY_TYPE_H)
+#  include <linux/key-type.h>
+# endif
+# ifndef KEY_ALLOC_IN_QUOTA
+#  define KEY_ALLOC_IN_QUOTA 1
+# endif
+#endif
+
 #ifdef AFS_LINUX26_ONEGROUP_ENV
 # define NUMPAGGROUPS 1
 
index 56a1daa5c438db41949f4a12473736e0acc26a80..f7abc2e46f2c2f69b2eb7c192dbb0b167e67929a 100644 (file)
 #   include <linux/security.h>
 #  endif
 #  include <linux/suspend.h>
-#  if defined(LINUX_KEYRING_SUPPORT)
-#   include <linux/rwsem.h>
-#   include <linux/key.h>
-#   if defined(HAVE_LINUX_KEY_TYPE_H)
-#    include <linux/key-type.h>
-#   endif
-#   ifndef KEY_ALLOC_IN_QUOTA
-#    define KEY_ALLOC_IN_QUOTA 1
-#   endif
-#  endif
 # endif
 /* Avoid conflicts with coda overloading AFS type namespace. Must precede
  * inclusion of uaccess.h.