The patch titled md: fix "strchr" [drivers/md/dm-log-userspace.ko] undefined! has been added to the -mm tree. Its filename is md-fix-strchr-undefined.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: md: fix "strchr" [drivers/md/dm-log-userspace.ko] undefined! From: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx> 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. 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@xxxxxxxxxxxxxx> Cc: Jonathan Brassow <jbrassow@xxxxxxxxxx> Cc: Alasdair G Kergon <agk@xxxxxxxxxx> Cc: <stable@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/md/dm-log-userspace-base.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN drivers/md/dm-log-userspace-base.c~md-fix-strchr-undefined drivers/md/dm-log-userspace-base.c --- a/drivers/md/dm-log-userspace-base.c~md-fix-strchr-undefined +++ a/drivers/md/dm-log-userspace-base.c @@ -582,7 +582,7 @@ static int userspace_status(struct dm_di break; case STATUSTYPE_TABLE: sz = 0; - table_args = strstr(lc->usr_argv_str, " "); + table_args = strchr(lc->usr_argv_str, ' '); BUG_ON(!table_args); /* There will always be a ' ' */ table_args++; _ Patches currently in -mm which might be from geert@xxxxxxxxxxxxxx are linux-next.patch md-fix-strchr-undefined.patch m68k-convert-to-use-arch_gettimeoffset.patch m68k-convert-to-asm-generic-hardirqh.patch platinumfb-misplaced-parenthesis.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html