Skip to content

Commit

Permalink
kbuild: ignore smp_locks section warnings from init/exit code
Browse files Browse the repository at this point in the history
Add ".smp_locks" section to whitelist as being safe from
init and exit sections.

Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
  • Loading branch information
Randy Dunlap authored and Sam Ravnborg committed Jun 8, 2006
1 parent 1a0f3d4 commit 35899c5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/mod/modpost.c
Original file line number Diff line number Diff line change
Expand Up @@ -821,6 +821,7 @@ static int init_section_ref_ok(const char *name)
".pci_fixup_final",
".pdr",
"__param",
".smp_locks",
NULL
};
/* Start of section names */
Expand Down Expand Up @@ -892,6 +893,7 @@ static int exit_section_ref_ok(const char *name)
".exitcall.exit",
".eh_frame",
".stab",
".smp_locks",
NULL
};
/* Start of section names */
Expand Down

0 comments on commit 35899c5

Please sign in to comment.