summaryrefslogtreecommitdiffstats
path: root/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.10/0002-Fix-autofs-compile-without-CONFIG_COMPAT.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.10/0002-Fix-autofs-compile-without-CONFIG_COMPAT.patch')
-rw-r--r--recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.10/0002-Fix-autofs-compile-without-CONFIG_COMPAT.patch42
1 files changed, 42 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.10/0002-Fix-autofs-compile-without-CONFIG_COMPAT.patch b/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.10/0002-Fix-autofs-compile-without-CONFIG_COMPAT.patch
new file mode 100644
index 00000000..44363df0
--- /dev/null
+++ b/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.10/0002-Fix-autofs-compile-without-CONFIG_COMPAT.patch
@@ -0,0 +1,42 @@
1From 2938d817a741a800001a3de1796090697b4d12e8 Mon Sep 17 00:00:00 2001
2From: Linus Torvalds <torvalds@linux-foundation.org>
3Date: Sun, 26 Feb 2012 09:44:55 -0800
4Subject: [PATCH 02/95] Fix autofs compile without CONFIG_COMPAT
5
6commit 3c761ea05a8900a907f32b628611873f6bef24b2 upstream.
7
8The autofs compat handling fix caused a compile failure when
9CONFIG_COMPAT isn't defined.
10
11Instead of adding random #ifdef'fery in autofs, let's just make the
12compat helpers earlier to use: without CONFIG_COMPAT, is_compat_task()
13just hardcodes to zero.
14
15We could probably do something similar for a number of other cases where
16we have #ifdef's in code, but this is the low-hanging fruit.
17
18Reported-and-tested-by: Andreas Schwab <schwab@linux-m68k.org>
19Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
20Cc: Jonathan Nieder <jrnieder@gmail.com>
21Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
22---
23 include/linux/compat.h | 4 ++++
24 1 file changed, 4 insertions(+)
25
26diff --git a/include/linux/compat.h b/include/linux/compat.h
27index 66ed067..d42bd48 100644
28--- a/include/linux/compat.h
29+++ b/include/linux/compat.h
30@@ -561,5 +561,9 @@ asmlinkage ssize_t compat_sys_process_vm_writev(compat_pid_t pid,
31 unsigned long liovcnt, const struct compat_iovec __user *rvec,
32 unsigned long riovcnt, unsigned long flags);
33
34+#else
35+
36+#define is_compat_task() (0)
37+
38 #endif /* CONFIG_COMPAT */
39 #endif /* _LINUX_COMPAT_H */
40--
411.7.9.4
42