From 68c8f304d05ab77571f3674e00392740fa66988c Mon Sep 17 00:00:00 2001 From: Marc Dionne Date: Thu, 15 Nov 2012 17:49:53 -0500 Subject: [PATCH] Linux 3.7: remove use of param.h and ioctl.h Header files param.h and ioctl.h have moved as part of the userspace API restructuring of header files. Nothing in those files is currently needed by the source, so just drop the includes. Reviewed-on: http://gerrit.openafs.org/8469 Tested-by: BuildBot Reviewed-by: Derrick Brashear (cherry picked from commit 007ec3e25e6920d7036f70550bc44adefab0c170) Change-Id: I7caa7ee8e5bfc918d7121a2f1d826102ee03976c Reviewed-on: http://gerrit.openafs.org/8556 Reviewed-by: Ken Dreyer Tested-by: BuildBot Reviewed-by: Paul Smeddle --- src/afs/afs_buffer.c | 4 +++- src/afs/afs_osi.h | 2 ++ src/dir/dir.c | 2 ++ src/rx/rx_kcommon.h | 2 ++ src/rx/rx_packet.h | 2 ++ src/rx/xdr.c | 2 ++ src/rx/xdr_array.c | 3 ++- src/rx/xdr_arrayn.c | 3 ++- src/rx/xdr_int32.c | 6 ++++-- src/util/vice.h | 6 +++--- 10 files changed, 24 insertions(+), 8 deletions(-) diff --git a/src/afs/afs_buffer.c b/src/afs/afs_buffer.c index bf04c421f..7d856c2d2 100644 --- a/src/afs/afs_buffer.c +++ b/src/afs/afs_buffer.c @@ -14,7 +14,9 @@ #include "afs/sysincludes.h" #include "afsincludes.h" #if !defined(UKERNEL) -#include "h/param.h" +#if !defined(AFS_LINUX26_ENV) +# include "h/param.h" +#endif #include "h/types.h" #include "h/time.h" #if defined(AFS_AIX31_ENV) diff --git a/src/afs/afs_osi.h b/src/afs/afs_osi.h index 17966eeaa..dfb6b184f 100644 --- a/src/afs/afs_osi.h +++ b/src/afs/afs_osi.h @@ -11,7 +11,9 @@ #define _AFS_OSI_ #include "h/types.h" +#if !defined(AFS_LINUX26_ENV) #include "h/param.h" +#endif #ifdef AFS_FBSD_ENV #include diff --git a/src/dir/dir.c b/src/dir/dir.c index b39483157..51a78eb42 100644 --- a/src/dir/dir.c +++ b/src/dir/dir.c @@ -14,7 +14,9 @@ #ifdef KERNEL #if !defined(UKERNEL) #include "h/types.h" +#if !defined(AFS_LINUX26_ENV) #include "h/param.h" +#endif #ifdef AFS_AUX_ENV #include "h/mmu.h" #include "h/seg.h" diff --git a/src/rx/rx_kcommon.h b/src/rx/rx_kcommon.h index 904735f3f..64d03cbb4 100644 --- a/src/rx/rx_kcommon.h +++ b/src/rx/rx_kcommon.h @@ -35,7 +35,9 @@ typedef unsigned short etap_event_t; #include "h/types.h" +#if !defined(AFS_LINUX26_ENV) #include "h/param.h" +#endif #ifndef AFS_LINUX22_ENV #include "h/systm.h" #endif diff --git a/src/rx/rx_packet.h b/src/rx/rx_packet.h index 2b6d183dc..df9d9f416 100644 --- a/src/rx/rx_packet.h +++ b/src/rx/rx_packet.h @@ -42,7 +42,9 @@ #if !defined(AFS_DARWIN_ENV) && !defined(AFS_USR_DARWIN_ENV) && !defined(AFS_XBSD_ENV) && !defined(AFS_USR_FBSD_ENV) && !defined(AFS_USR_DFBSD_ENV) && !defined(AFS_LINUX20_ENV) #include /* MIN, MAX on Solaris */ #endif +#if !defined(AFS_LINUX26_ENV) #include /* MIN, MAX elsewhere */ +#endif #endif /* AFS_NT40_ENV */ #define IPv6_HDR_SIZE 40 /* IPv6 Header */ diff --git a/src/rx/xdr.c b/src/rx/xdr.c index 057f7c281..bd224a163 100644 --- a/src/rx/xdr.c +++ b/src/rx/xdr.c @@ -49,7 +49,9 @@ #ifndef NeXT #if defined(KERNEL) && !defined(UKERNEL) +#if !defined(AFS_LINUX26_ENV) #include +#endif #ifndef AFS_LINUX20_ENV #include #endif diff --git a/src/rx/xdr_array.c b/src/rx/xdr_array.c index ecdf4cce3..886d2c6e4 100644 --- a/src/rx/xdr_array.c +++ b/src/rx/xdr_array.c @@ -43,8 +43,9 @@ */ #if defined(KERNEL) && !defined(UKERNEL) - +#if !defined(AFS_LINUX26_ENV) #include +#endif #ifdef AFS_LINUX20_ENV #include "h/string.h" #if 0 diff --git a/src/rx/xdr_arrayn.c b/src/rx/xdr_arrayn.c index 28db31508..5b6659887 100644 --- a/src/rx/xdr_arrayn.c +++ b/src/rx/xdr_arrayn.c @@ -47,8 +47,9 @@ */ #if defined(KERNEL) && !defined(UKERNEL) - +#if !defined(AFS_LINUX26_ENV) #include +#endif #ifdef AFS_LINUX20_ENV #include "h/string.h" #if 0 diff --git a/src/rx/xdr_int32.c b/src/rx/xdr_int32.c index 82c5648c8..cf5bf173d 100644 --- a/src/rx/xdr_int32.c +++ b/src/rx/xdr_int32.c @@ -38,9 +38,11 @@ #ifndef NeXT #if defined(KERNEL) && !defined(UKERNEL) -#include +# if !defined(AFS_LINUX26_ENV) +# include +# endif #else -#include +# include #endif #include "xdr.h" diff --git a/src/util/vice.h b/src/util/vice.h index 7e3db079d..1920a352c 100644 --- a/src/util/vice.h +++ b/src/util/vice.h @@ -12,9 +12,9 @@ #include #if !defined(AFS_NT40_ENV) -# if !defined(AFS_FBSD80_ENV) || !defined(KERNEL) || defined(UKERNEL) -#include -#endif /* AFS_FBSD80_ENV */ +# if (!defined(AFS_FBSD80_ENV) && !defined(AFS_LINUX26_ENV)) || !defined(KERNEL) || defined(UKERNEL) +# include +# endif #endif /* AFS_NT40_ENV */ #if (defined(__sun) && defined(__SVR4)) || defined(AFS_DFBSD_ENV) || defined(AFS_USR_DFBSD_ENV) # include -- 2.39.5