aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorSam Ravnborg <sam@mars.ravnborg.org>2006-03-05 05:34:15 -0500
committerSam Ravnborg <sam@mars.ravnborg.org>2006-03-05 05:34:15 -0500
commite835a39c1c1f023ef443f735b0e98b08660ae0e4 (patch)
treed2790823b7f2f15917badc55828848790474a86f /scripts
parent9209aed0726c77ad13b8d83e73a3cf9f59a8c2b2 (diff)
kbuild: fix section mismatch check for unwind on IA64
Parameters to strstr() was reversed. Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/mod/modpost.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c
index c4dc1d72d02e..3b570b18c2e4 100644
--- a/scripts/mod/modpost.c
+++ b/scripts/mod/modpost.c
@@ -776,7 +776,7 @@ static int init_section_ref_ok(const char *name)
776 if (strncmp(*s, name, strlen(*s)) == 0) 776 if (strncmp(*s, name, strlen(*s)) == 0)
777 return 1; 777 return 1;
778 for (s = namelist3; *s; s++) 778 for (s = namelist3; *s; s++)
779 if (strstr(*s, name) != NULL) 779 if (strstr(name, *s) != NULL)
780 return 1; 780 return 1;
781 return 0; 781 return 0;
782} 782}
@@ -842,7 +842,7 @@ static int exit_section_ref_ok(const char *name)
842 if (strncmp(*s, name, strlen(*s)) == 0) 842 if (strncmp(*s, name, strlen(*s)) == 0)
843 return 1; 843 return 1;
844 for (s = namelist3; *s; s++) 844 for (s = namelist3; *s; s++)
845 if (strstr(*s, name) != NULL) 845 if (strstr(name, *s) != NULL)
846 return 1; 846 return 1;
847 return 0; 847 return 0;
848} 848}