Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[PATCH] multiple exports of strpbrk

Sam's tree includes a new check, which found that we're exporting strpbrk()
multiple times.

It seems that the convention is that this is exported from the arch files, so
reove the lib/string.c export.

Cc: Sam Ravnborg <sam@ravnborg.org>
Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
Cc: David Howells <dhowells@redhat.com>
Cc: Greg Ungerer <gerg@uclinux.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Andrew Morton and committed by
Linus Torvalds
f4a641d6 83485f82

+4 -1
+1
arch/frv/kernel/frv_ksyms.c
··· 27 27 EXPORT_SYMBOL(iounmap); 28 28 29 29 EXPORT_SYMBOL(strnlen); 30 + EXPORT_SYMBOL(strpbrk); 30 31 EXPORT_SYMBOL(strrchr); 31 32 EXPORT_SYMBOL(strstr); 32 33 EXPORT_SYMBOL(strchr);
+1
arch/h8300/kernel/h8300_ksyms.c
··· 25 25 /* platform dependent support */ 26 26 27 27 EXPORT_SYMBOL(strnlen); 28 + EXPORT_SYMBOL(strpbrk); 28 29 EXPORT_SYMBOL(strrchr); 29 30 EXPORT_SYMBOL(strstr); 30 31 EXPORT_SYMBOL(strchr);
+1
arch/m68knommu/kernel/m68k_ksyms.c
··· 26 26 EXPORT_SYMBOL(iounmap); 27 27 EXPORT_SYMBOL(dump_fpu); 28 28 EXPORT_SYMBOL(strnlen); 29 + EXPORT_SYMBOL(strpbrk); 29 30 EXPORT_SYMBOL(strrchr); 30 31 EXPORT_SYMBOL(strstr); 31 32 EXPORT_SYMBOL(strchr);
+1
arch/x86_64/kernel/x8664_ksyms.c
··· 124 124 125 125 EXPORT_SYMBOL(memset); 126 126 EXPORT_SYMBOL(strlen); 127 + EXPORT_SYMBOL(strpbrk); 127 128 EXPORT_SYMBOL(memmove); 128 129 EXPORT_SYMBOL(memcpy); 129 130 EXPORT_SYMBOL(__memcpy);
-1
lib/string.c
··· 403 403 } 404 404 return NULL; 405 405 } 406 - EXPORT_SYMBOL(strpbrk); 407 406 #endif 408 407 409 408 #ifndef __HAVE_ARCH_STRSEP