]> git.baikalelectronics.ru Git - kernel.git/commit
m68k: Uninline strchr()
authorGeert Uytterhoeven <geert@linux-m68k.org>
Sat, 8 Jan 2011 20:57:48 +0000 (21:57 +0100)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Sat, 22 Jan 2011 18:32:54 +0000 (19:32 +0100)
commit930f31a3e7c6db1e30312ddf70359fbb50485d0d
tree6a998c45cde7a37643d762e621a28a4ec19f80b0
parentd3a81907fb3f349bc2b901bf118a200f0c9a1c16
m68k: Uninline strchr()

Some versions of gcc replace calls to strstr() with single-character
"needle" string parameters by calls to strchr() behind our back.

If strchr() is defined as an inline function, this causes linking errors
like

ERROR: "strchr" [drivers/target/target_core_mod.ko] undefined!

As m68k is the only architecture that has an inline strchr() and this
inline version is not an optimized asm version, uninline strchr() and use
the standard out-of-line C version in lib/string.c instead.

This also decreases the defconfig/allmodconfig kernel image sizes by a few
hundred bytes.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
arch/m68k/include/asm/string.h