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

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