Subject: [PATCH -next] usercopy: Fixup patch to commit 4df97ff66a102a89ecfa2f88051e30bdd54ad864

From: Sedat Dilek <[email-masked]>
Date: Fri, 29 Jul 2011 20:58:12 +0200

When building with CONFIG_BINFMT_MISC=m linux-next (next-20110728) breaks:
ERROR: "copy_from_user_overflow" [fs/binfmt_misc.ko] undefined!

The issue was introduced by commit ab3b49d018924085e5d949c1af53fae0da9a8d94:
"The help text for this config is duplicated across the x86, parisc, and s390 Kconfig.debug files."

After reporting the issue to linux-next/LKML mailing-lists, Stephen Boyd
told me he had already sent a fix [1] which should be folded into [2].
Unfortunately, Stephen's fixup didn't get into Andrew's mmotm-tree and
find its way from there to linux-next.

Tested on x86_64 (Randy) and i386 (Sedat).

[1] https://lkml.org/lkml/2011/7/6/6
[2] http://userweb.kernel.org/~akpm/mmotm/broken-out/consolidate-config_debug_strict_user_copy_checks.patch

Reported-by: Randy Dunlap <[email-masked]>
Reported-by: Sedat Dilek <[email-masked]>
Tested-by: Randy Dunlap <[email-masked]>
Tested-by: Sedat Dilek <[email-masked]>
Cc: Stephen Boyd <[email-masked]>
Cc: Andrew Morton <[email-masked]>
Signed-off-by: Sedat Dilek <[email-masked]>
---
 lib/Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/Makefile b/lib/Makefile
index fbf4b06..4ac9e49b 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -14,7 +14,7 @@ lib-y := ctype.o string.o vsprintf.o cmdline.o \
 	 proportions.o prio_heap.o ratelimit.o show_mem.o \
 	 is_single_threaded.o plist.o decompress.o find_next_bit.o
 
-lib-$(CONFIG_ARCH_HAS_DEBUG_STRICT_USER_COPY_CHECKS) += usercopy.o
+obj-$(CONFIG_ARCH_HAS_DEBUG_STRICT_USER_COPY_CHECKS) += usercopy.o
 lib-$(CONFIG_MMU) += ioremap.o
 lib-$(CONFIG_SMP) += cpumask.o
 
-- 
1.7.6