Commit b8313b6d ("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. This fixes a regression introduced in 2.6.31-rc9, and detected by m68k allmodconfig, cfr. http://kisskb.ellerman.id.au/kisskb/config/164/Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Cc: Jonathan Brassow <jbrassow@redhat.com> Cc: Alasdair G Kergon <agk@redhat.com> Cc: <stable@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Showing
Please register or sign in to comment