]> git.karo-electronics.de Git - karo-tx-linux.git/commit
md: Fix "strchr" [drivers/md/dm-log-userspace.ko] undefined!
authorGeert Uytterhoeven <geert@linux-m68k.org>
Thu, 10 Sep 2009 21:13:28 +0000 (23:13 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 24 Sep 2009 15:43:53 +0000 (08:43 -0700)
commit6b0e630bc078ac1431afb6a0d96098b1c288a465
treeeafb6ba59f2cc560f5903180aea21e87cc0759a1
parent1e3474abd6ef1fb73773f2ba85874995c82b28b7
md: Fix "strchr" [drivers/md/dm-log-userspace.ko] undefined!

commit 0d03d59d9b31cd1e33b7e46a80b6fef66244b1f2 upstream.

Commit b8313b6da7e2e7c7f47d93d8561969a3ff9ba0ea ("dm log: remove incorrect
field from userspace table output") added a call to strstr() with a
single-character "needle" string parameter.

Unfortunately some versions of gcc replace such calls to strstr() by calls
to strchr() behind our back.  This causes linking errors if strchr() is
defined as an inline function in <asm/string.h> (e.g. on m68k):

| WARNING: "strchr" [drivers/md/dm-log-userspace.ko] undefined!

Avoid this by explicitly calling strchr() instead.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/md/dm-log-userspace-base.c