From: Marc Dionne Date: Sun, 27 Mar 2011 15:20:17 +0000 (-0400) Subject: Linux: 2.6.39: deal with BKL removal X-Git-Tag: upstream/1.8.0_pre1^2~3978 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=9376293634393597ac7db88593100937621f6c3f;p=packages%2Fo%2Fopenafs.git Linux: 2.6.39: deal with BKL removal For 2.6 kernels the OpenAFS code is already BKL free, but the corresponding header file smp_lock.h is still included in various places. This header no longer exists, so remove all occurrences outside of LINUX24. Change-Id: Ib659fa787eab4b39efce5b0a62f5723950e79703 Reviewed-on: http://gerrit.openafs.org/4361 Tested-by: BuildBot Reviewed-by: Derrick Brashear --- diff --git a/src/afs/LINUX/osi_export.c b/src/afs/LINUX/osi_export.c index 5b300e070..662966ba8 100644 --- a/src/afs/LINUX/osi_export.c +++ b/src/afs/LINUX/osi_export.c @@ -23,7 +23,6 @@ #include "afs/sysincludes.h" #include "afsincludes.h" #include "afs/afs_dynroot.h" -#include #if !defined(AFS_NONFSTRANS) diff --git a/src/afs/LINUX/osi_file.c b/src/afs/LINUX/osi_file.c index 4a28da6d2..fbd20e9a0 100644 --- a/src/afs/LINUX/osi_file.c +++ b/src/afs/LINUX/osi_file.c @@ -15,7 +15,6 @@ #include "afs/sysincludes.h" /* Standard vendor system headers */ #include "afsincludes.h" /* Afs-based standard headers */ #include "afs/afs_stats.h" /* afs statistics */ -#include #include #if defined(HAVE_LINUX_EXPORTFS_H) diff --git a/src/afs/LINUX/osi_groups.c b/src/afs/LINUX/osi_groups.c index 7561ecc37..144f0e32c 100644 --- a/src/afs/LINUX/osi_groups.c +++ b/src/afs/LINUX/osi_groups.c @@ -26,8 +26,6 @@ #include "afs/nfsclient.h" #include "osi_compat.h" -#include - #ifdef AFS_LINUX26_ONEGROUP_ENV # define NUMPAGGROUPS 1 diff --git a/src/afs/LINUX/osi_misc.c b/src/afs/LINUX/osi_misc.c index e2af59598..79fa76312 100644 --- a/src/afs/LINUX/osi_misc.c +++ b/src/afs/LINUX/osi_misc.c @@ -22,7 +22,6 @@ #include "afs/sysincludes.h" #include "afsincludes.h" #include "afs/afs_stats.h" -#include int afs_osicred_initialized = 0; afs_ucred_t afs_osi_cred; diff --git a/src/afs/LINUX/osi_nfssrv.c b/src/afs/LINUX/osi_nfssrv.c index 010f830f1..425ecd341 100644 --- a/src/afs/LINUX/osi_nfssrv.c +++ b/src/afs/LINUX/osi_nfssrv.c @@ -21,7 +21,6 @@ #include "afs/sysincludes.h" #include "afsincludes.h" #include "nfsclient.h" -#include #include #include diff --git a/src/afs/LINUX/osi_vfsops.c b/src/afs/LINUX/osi_vfsops.c index 921efac78..8abe6b149 100644 --- a/src/afs/LINUX/osi_vfsops.c +++ b/src/afs/LINUX/osi_vfsops.c @@ -21,7 +21,6 @@ #include "afs/sysincludes.h" #include "afsincludes.h" #include "afs/afs_stats.h" -#include #include "osi_compat.h" diff --git a/src/afs/LINUX/osi_vnodeops.c b/src/afs/LINUX/osi_vnodeops.c index b0df0f377..796c8054b 100644 --- a/src/afs/LINUX/osi_vnodeops.c +++ b/src/afs/LINUX/osi_vnodeops.c @@ -30,7 +30,6 @@ #include #endif #include -#include #include #include #include "afs/lock.h" diff --git a/src/afs/afs_call.c b/src/afs/afs_call.c index 521df2b8c..ba7b746b7 100644 --- a/src/afs/afs_call.c +++ b/src/afs/afs_call.c @@ -24,9 +24,6 @@ #include "netinet/in_var.h" #endif #endif /* !defined(UKERNEL) */ -#ifdef AFS_LINUX22_ENV -#include "h/smp_lock.h" -#endif #ifdef AFS_SUN510_ENV #include "h/ksynch.h" #include "h/sunddi.h" diff --git a/src/afs/afs_icl.c b/src/afs/afs_icl.c index 7a2ec9843..be9b50210 100644 --- a/src/afs/afs_icl.c +++ b/src/afs/afs_icl.c @@ -24,9 +24,6 @@ #include "netinet/in_var.h" #endif #endif /* !defined(UKERNEL) */ -#ifdef AFS_LINUX22_ENV -#include "h/smp_lock.h" -#endif struct afs_icl_set *afs_iclSetp = (struct afs_icl_set *)0; diff --git a/src/afs/afs_pag_call.c b/src/afs/afs_pag_call.c index 1a11ebf73..941fda5b3 100644 --- a/src/afs/afs_pag_call.c +++ b/src/afs/afs_pag_call.c @@ -25,9 +25,6 @@ #include "netinet/in_var.h" #endif #endif /* !defined(UKERNEL) */ -#ifdef AFS_LINUX22_ENV -#include "h/smp_lock.h" -#endif #include "rmtsys.h" #include "pagcb.h" diff --git a/src/afs/afs_syscall.c b/src/afs/afs_syscall.c index 18d6d6e6d..3bb6f4846 100644 --- a/src/afs/afs_syscall.c +++ b/src/afs/afs_syscall.c @@ -28,9 +28,6 @@ #include "netinet/in_var.h" #endif #endif /* !defined(UKERNEL) */ -#ifdef AFS_LINUX22_ENV -#include "h/smp_lock.h" -#endif #if (defined(AFS_AIX51_ENV) && defined(AFS_64BIT_KERNEL)) || defined(AFS_HPUX_64BIT_ENV) || defined(AFS_SUN57_64BIT_ENV) || (defined(AFS_SGI_ENV) && (_MIPS_SZLONG==64)) || defined(NEED_IOCTL32) static void diff --git a/src/rx/LINUX/rx_knet.c b/src/rx/LINUX/rx_knet.c index 590a06060..942a0724b 100644 --- a/src/rx/LINUX/rx_knet.c +++ b/src/rx/LINUX/rx_knet.c @@ -18,7 +18,6 @@ #include #include "rx/rx_kcommon.h" -#include "h/smp_lock.h" #include #ifdef ADAPT_PMTU #include