]> git.baikalelectronics.ru Git - kernel.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)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 10 Sep 2009 21:55:01 +0000 (14:55 -0700)
commit1a36f2df9a8cc61a62b3cb1628e115592b51aa6f
treefab3cfc08a242b4744982b40cce837879ffa0272
parent183679d5f32b16b5c539199d52f1c406911bfb2e
md: Fix "strchr" [drivers/md/dm-log-userspace.ko] undefined!

Commit 4cdbf55aad23b84778385db62f1abdb381008ccb ("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>
Cc: stable@kernel.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/md/dm-log-userspace-base.c