diff options
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.patch | 42 |
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 @@ | |||
1 | From 2938d817a741a800001a3de1796090697b4d12e8 Mon Sep 17 00:00:00 2001 | ||
2 | From: Linus Torvalds <torvalds@linux-foundation.org> | ||
3 | Date: Sun, 26 Feb 2012 09:44:55 -0800 | ||
4 | Subject: [PATCH 02/95] Fix autofs compile without CONFIG_COMPAT | ||
5 | |||
6 | commit 3c761ea05a8900a907f32b628611873f6bef24b2 upstream. | ||
7 | |||
8 | The autofs compat handling fix caused a compile failure when | ||
9 | CONFIG_COMPAT isn't defined. | ||
10 | |||
11 | Instead of adding random #ifdef'fery in autofs, let's just make the | ||
12 | compat helpers earlier to use: without CONFIG_COMPAT, is_compat_task() | ||
13 | just hardcodes to zero. | ||
14 | |||
15 | We could probably do something similar for a number of other cases where | ||
16 | we have #ifdef's in code, but this is the low-hanging fruit. | ||
17 | |||
18 | Reported-and-tested-by: Andreas Schwab <schwab@linux-m68k.org> | ||
19 | Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> | ||
20 | Cc: Jonathan Nieder <jrnieder@gmail.com> | ||
21 | Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> | ||
22 | --- | ||
23 | include/linux/compat.h | 4 ++++ | ||
24 | 1 file changed, 4 insertions(+) | ||
25 | |||
26 | diff --git a/include/linux/compat.h b/include/linux/compat.h | ||
27 | index 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 | -- | ||
41 | 1.7.9.4 | ||
42 | |||