[kernel/f12/master] Fix build error: compat_alloc_user_space undefined

Chuck Ebbert cebbert at fedoraproject.org
Wed Sep 15 15:58:30 UTC 2010


commit 55a7c987aaf2cd94ace449b6594638b572b8c14f
Author: Chuck Ebbert <cebbert at redhat.com>
Date:   Wed Sep 15 11:57:30 2010 -0400

    Fix build error: compat_alloc_user_space undefined

 ...ser_space-incorporate-the-access_ok-check.patch |   18 ++++++++++++++----
 1 files changed, 14 insertions(+), 4 deletions(-)
---
diff --git a/01-compat-make-compat_alloc_user_space-incorporate-the-access_ok-check.patch b/01-compat-make-compat_alloc_user_space-incorporate-the-access_ok-check.patch
index 75ea4ba..2053e03 100644
--- a/01-compat-make-compat_alloc_user_space-incorporate-the-access_ok-check.patch
+++ b/01-compat-make-compat_alloc_user_space-incorporate-the-access_ok-check.patch
@@ -40,6 +40,9 @@ Cc: Paul Mackerras <paulus at samba.org>
 Cc: Ralf Baechle <ralf at linux-mips.org>
 Cc: <stable at kernel.org>
 ---
+
+ [ edited to fix build on 2.6.32 ]
+
  arch/ia64/include/asm/compat.h    |    2 +-
  arch/mips/include/asm/compat.h    |    2 +-
  arch/parisc/include/asm/compat.h  |    2 +-
@@ -48,7 +51,7 @@ Cc: <stable at kernel.org>
  arch/sparc/include/asm/compat.h   |    2 +-
  arch/x86/include/asm/compat.h     |    2 +-
  include/linux/compat.h            |    2 ++
- kernel/compat.c                   |   21 +++++++++++++++++++++
+ kernel/compat.c                   |   22 +++++++++++++++++++++
  9 files changed, 30 insertions(+), 7 deletions(-)
 
 diff --git a/arch/ia64/include/asm/compat.h b/arch/ia64/include/asm/compat.h
@@ -154,11 +157,18 @@ index af931ee..cab23f2 100644
 +
  #endif /* CONFIG_COMPAT */
  #endif /* _LINUX_COMPAT_H */
-diff --git a/kernel/compat.c b/kernel/compat.c
-index 180d188..61112e5 100644
+diff a/kernel/compat.c b/kernel/compat.c
 --- a/kernel/compat.c
 +++ b/kernel/compat.c
-@@ -1136,3 +1136,24 @@ compat_sys_sysinfo(struct compat_sysinfo __user *info)
+@@ -13,6 +13,7 @@
+ 
+ #include <linux/linkage.h>
+ #include <linux/compat.h>
++#include <linux/module.h>
+ #include <linux/errno.h>
+ #include <linux/time.h>
+ #include <linux/signal.h>
+@@ -1137,3 +1137,24 @@ compat_sys_sysinfo(struct compat_sysinfo __user *info)
  
  	return 0;
  }


More information about the scm-commits mailing list