From: Sam Ravnborg Date: Sun, 5 Mar 2006 10:34:15 +0000 (+0100) Subject: kbuild: fix section mismatch check for unwind on IA64 X-Git-Tag: v2.6.17-rc1~733^2~15 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e835a39c1c1f023ef443f735b0e98b08660ae0e4;p=platform%2Fkernel%2Flinux-3.10.git kbuild: fix section mismatch check for unwind on IA64 Parameters to strstr() was reversed. Signed-off-by: Sam Ravnborg --- diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c index c4dc1d7..3b570b1 100644 --- a/scripts/mod/modpost.c +++ b/scripts/mod/modpost.c @@ -776,7 +776,7 @@ static int init_section_ref_ok(const char *name) if (strncmp(*s, name, strlen(*s)) == 0) return 1; for (s = namelist3; *s; s++) - if (strstr(*s, name) != NULL) + if (strstr(name, *s) != NULL) return 1; return 0; } @@ -842,7 +842,7 @@ static int exit_section_ref_ok(const char *name) if (strncmp(*s, name, strlen(*s)) == 0) return 1; for (s = namelist3; *s; s++) - if (strstr(*s, name) != NULL) + if (strstr(name, *s) != NULL) return 1; return 0; }