Commit e835a39c authored by Sam Ravnborg's avatar Sam Ravnborg

kbuild: fix section mismatch check for unwind on IA64

Parameters to strstr() was reversed.
Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
parent 9209aed0
...@@ -776,7 +776,7 @@ static int init_section_ref_ok(const char *name) ...@@ -776,7 +776,7 @@ static int init_section_ref_ok(const char *name)
if (strncmp(*s, name, strlen(*s)) == 0) if (strncmp(*s, name, strlen(*s)) == 0)
return 1; return 1;
for (s = namelist3; *s; s++) for (s = namelist3; *s; s++)
if (strstr(*s, name) != NULL) if (strstr(name, *s) != NULL)
return 1; return 1;
return 0; return 0;
} }
...@@ -842,7 +842,7 @@ static int exit_section_ref_ok(const char *name) ...@@ -842,7 +842,7 @@ static int exit_section_ref_ok(const char *name)
if (strncmp(*s, name, strlen(*s)) == 0) if (strncmp(*s, name, strlen(*s)) == 0)
return 1; return 1;
for (s = namelist3; *s; s++) for (s = namelist3; *s; s++)
if (strstr(*s, name) != NULL) if (strstr(name, *s) != NULL)
return 1; return 1;
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment