kernel-ark/arch/s390
Rusty Russell 6faf250789 [S390] allow usage of string functions in linux/string.h
In introducing a trivial "strstarts()" function in linux/string.h, we
hit the following error on s390:

In file included from include/linux/bitmap.h:8,
                 from include/linux/cpumask.h:142,
                 from include/linux/smp.h:12,
                 from /home/rusty/devel/kernel/patches/linux-2.6/arch/s390/include/asm/spinlock.h:14,
                 from include/linux/spinlock.h:88,
                 from include/linux/seqlock.h:29,
                 from include/linux/time.h:8,
                 from include/linux/stat.h:60,
                 from include/linux/module.h:10,
                 from arch/s390/lib/string.c:13:
include/linux/string.h: In function 'strstarts':
include/linux/string.h:124: error: implicit declaration of function 'strlen'
include/linux/string.h:124: warning: incompatible implicit declaration of built-in function 'strlen'

Because when including asm/string.h from arch/s390/lib/string.c we
don't declare the string ops we are about to define, and
linux/string.h barfs.

The fix is to declare them in this IN_ARCH_STRING_C case, but in
general I wonder if there's a neater fix.

Reported-by: linux-next
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
2009-03-26 15:24:23 +01:00
..
appldata Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6 2008-12-28 12:49:40 -08:00
boot
crypto crypto: api - Fix module load deadlock with fallback algorithms 2009-02-26 14:06:31 +08:00
hypfs zero i_uid/i_gid on inode allocation 2009-01-05 11:54:28 -05:00
include/asm [S390] allow usage of string functions in linux/string.h 2009-03-26 15:24:23 +01:00
kernel [S390] kernel: Disable switch_amode by default 2009-03-26 15:24:18 +01:00
kvm [S390] split/move machine check handler code 2009-03-26 15:24:10 +01:00
lib [S390] move EXPORT_SYMBOLs to definitions 2009-03-26 15:24:11 +01:00
math-emu [S390] remove -traditional 2008-04-30 13:38:44 +02:00
mm [S390] move EXPORT_SYMBOLs to definitions 2009-03-26 15:24:11 +01:00
oprofile Combine instrumentation menus in kernel/Kconfig.instrumentation 2007-10-19 11:53:54 -07:00
defconfig [S390] Update default configuration. 2009-02-11 10:37:40 +01:00
Kconfig [S390] Remove CONFIG_MACHCHK_WARNING. 2009-03-26 15:24:11 +01:00
Kconfig.debug [S390] DEBUG_PAGEALLOC support for s390. 2008-02-05 16:50:54 +01:00
Makefile [S390] Add processor type march=z10 and a processor type safety check. 2008-12-25 13:39:12 +01:00