aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2009-09-10 17:13:28 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2009-09-10 17:55:01 -0400
commit0d03d59d9b31cd1e33b7e46a80b6fef66244b1f2 (patch)
treefab3cfc08a242b4744982b40cce837879ffa0272 /drivers/md
parent526b678093a8a4bcf1ffffbe17bcf21c057eddf5 (diff)
md: Fix "strchr" [drivers/md/dm-log-userspace.ko] undefined!
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> Cc: stable@kernel.org Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/md')
-rw-r--r--drivers/md/dm-log-userspace-base.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-log-userspace-base.c b/drivers/md/dm-log-userspace-base.c
index 6e186b1a062d..652bd33109e3 100644
--- a/drivers/md/dm-log-userspace-base.c
+++ b/drivers/md/dm-log-userspace-base.c
@@ -582,7 +582,7 @@ static int userspace_status(struct dm_dirty_log *log, status_type_t status_type,
582 break; 582 break;
583 case STATUSTYPE_TABLE: 583 case STATUSTYPE_TABLE:
584 sz = 0; 584 sz = 0;
585 table_args = strstr(lc->usr_argv_str, " "); 585 table_args = strchr(lc->usr_argv_str, ' ');
586 BUG_ON(!table_args); /* There will always be a ' ' */ 586 BUG_ON(!table_args); /* There will always be a ' ' */
587 table_args++; 587 table_args++;
588 588