]> git.hungrycats.org Git - linux/commitdiff
[PATCH] Fix uninlined memcmp on i386
authorAndrew Morton <akpm@osdl.org>
Thu, 18 Mar 2004 23:02:23 +0000 (15:02 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 18 Mar 2004 23:02:23 +0000 (15:02 -0800)
From: DHollenbeck <dick@softplc.com>

This patch was needed against a pristine 2.6.4 kernel when compiling with
"gcc 3.4 _very recent_" using the -Os option.

Without this patch, modules would use a non-inline memcmp() and then not
find it in the kernel, causing depmod to complain and some modules not to
load.

arch/i386/kernel/i386_ksyms.c

index 4e0feb47b56749dd17b5dc180caceff07874d3d8..582f093ad6b5a090d245826b729105a305580f53 100644 (file)
@@ -176,10 +176,13 @@ EXPORT_SYMBOL_GPL(unset_nmi_callback);
  
 #undef memcpy
 #undef memset
+#undef memcmp
 extern void * memset(void *,int,__kernel_size_t);
 extern void * memcpy(void *,const void *,__kernel_size_t);
+extern int memcmp(const void *,const void *,__kernel_size_t);
 EXPORT_SYMBOL_NOVERS(memcpy);
 EXPORT_SYMBOL_NOVERS(memset);
+EXPORT_SYMBOL_NOVERS(memcmp);
 
 #ifdef CONFIG_HAVE_DEC_LOCK
 EXPORT_SYMBOL(atomic_dec_and_lock);