Blame SOURCES/autofs-5.0.7-update-kernel-include-files.patch

ab3a3d
autofs-5.0.7 - update kernel include files
ab3a3d
ab3a3d
From: Ian Kent <raven@themaw.net>
ab3a3d
ab3a3d
Update autofs include files to include the latest changes.
ab3a3d
---
ab3a3d
 include/linux/auto_fs.h  |   33 ++++++++++-----------------------
ab3a3d
 include/linux/auto_fs4.h |    3 ++-
ab3a3d
 2 files changed, 12 insertions(+), 24 deletions(-)
ab3a3d
ab3a3d
diff --git a/include/linux/auto_fs.h b/include/linux/auto_fs.h
ab3a3d
index 91d414f..64df1a6 100644
ab3a3d
--- a/include/linux/auto_fs.h
ab3a3d
+++ b/include/linux/auto_fs.h
ab3a3d
@@ -14,13 +14,8 @@
ab3a3d
 #ifndef _LINUX_AUTO_FS_H
ab3a3d
 #define _LINUX_AUTO_FS_H
ab3a3d
 
ab3a3d
-#ifdef __KERNEL__
ab3a3d
-#include <linux/fs.h>
ab3a3d
-#include <linux/limits.h>
ab3a3d
 #include <linux/types.h>
ab3a3d
-#include <linux/ioctl.h>
ab3a3d
-#else
ab3a3d
-#include <asm/types.h>
ab3a3d
+#ifndef __KERNEL__
ab3a3d
 #include <sys/ioctl.h>
ab3a3d
 #endif /* __KERNEL__ */
ab3a3d
 
ab3a3d
@@ -32,25 +27,16 @@
ab3a3d
 #define AUTOFS_MIN_PROTO_VERSION	AUTOFS_PROTO_VERSION
ab3a3d
 
ab3a3d
 /*
ab3a3d
- * Architectures where both 32- and 64-bit binaries can be executed
ab3a3d
- * on 64-bit kernels need this.  This keeps the structure format
ab3a3d
- * uniform, and makes sure the wait_queue_token isn't too big to be
ab3a3d
- * passed back down to the kernel.
ab3a3d
- *
ab3a3d
- * This assumes that on these architectures:
ab3a3d
- * mode     32 bit    64 bit
ab3a3d
- * -------------------------
ab3a3d
- * int      32 bit    32 bit
ab3a3d
- * long     32 bit    64 bit
ab3a3d
- *
ab3a3d
- * If so, 32-bit user-space code should be backwards compatible.
ab3a3d
+ * The wait_queue_token (autofs_wqt_t) is part of a structure which is passed
ab3a3d
+ * back to the kernel via ioctl from userspace. On architectures where 32- and
ab3a3d
+ * 64-bit userspace binaries can be executed it's important that the size of
ab3a3d
+ * autofs_wqt_t stays constant between 32- and 64-bit Linux kernels so that we
ab3a3d
+ * do not break the binary ABI interface by changing the structure size.
ab3a3d
  */
ab3a3d
-
ab3a3d
-#if defined(__sparc__) || defined(__mips__) || defined(__x86_64__) \
ab3a3d
- || defined(__powerpc__) || defined(__s390__)
ab3a3d
-typedef unsigned int autofs_wqt_t;
ab3a3d
-#else
ab3a3d
+#if defined(__ia64__) || defined(__alpha__) /* pure 64bit architectures */
ab3a3d
 typedef unsigned long autofs_wqt_t;
ab3a3d
+#else
ab3a3d
+typedef unsigned int autofs_wqt_t;
ab3a3d
 #endif
ab3a3d
 
ab3a3d
 /* Packet types */
ab3a3d
@@ -81,6 +67,7 @@ struct autofs_packet_expire {
ab3a3d
 #define AUTOFS_IOC_FAIL       _IO(0x93,0x61)
ab3a3d
 #define AUTOFS_IOC_CATATONIC  _IO(0x93,0x62)
ab3a3d
 #define AUTOFS_IOC_PROTOVER   _IOR(0x93,0x63,int)
ab3a3d
+#define AUTOFS_IOC_SETTIMEOUT32 _IOWR(0x93,0x64,compat_ulong_t)
ab3a3d
 #define AUTOFS_IOC_SETTIMEOUT _IOWR(0x93,0x64,unsigned long)
ab3a3d
 #define AUTOFS_IOC_EXPIRE     _IOR(0x93,0x65,struct autofs_packet_expire)
ab3a3d
 
ab3a3d
diff --git a/include/linux/auto_fs4.h b/include/linux/auto_fs4.h
ab3a3d
index 55fa478..e02982f 100644
ab3a3d
--- a/include/linux/auto_fs4.h
ab3a3d
+++ b/include/linux/auto_fs4.h
ab3a3d
@@ -12,6 +12,7 @@
ab3a3d
 #define _LINUX_AUTO_FS4_H
ab3a3d
 
ab3a3d
 /* Include common v3 definitions */
ab3a3d
+#include <linux/types.h>
ab3a3d
 #include <linux/auto_fs.h>
ab3a3d
 
ab3a3d
 /* autofs v4 definitions */
ab3a3d
@@ -23,7 +24,7 @@
ab3a3d
 #define AUTOFS_MIN_PROTO_VERSION	3
ab3a3d
 #define AUTOFS_MAX_PROTO_VERSION	5
ab3a3d
 
ab3a3d
-#define AUTOFS_PROTO_SUBVERSION		1
ab3a3d
+#define AUTOFS_PROTO_SUBVERSION		2
ab3a3d
 
ab3a3d
 /* Mask for expire behaviour */
ab3a3d
 #define AUTOFS_EXP_IMMEDIATE		1