mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-07 06:52:07 +00:00
kbuild: fix section mismatch check for unwind on IA64
Parameters to strstr() was reversed. Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
This commit is contained in:
parent
9209aed072
commit
e835a39c1c
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue