Skip to content

Commit 7308bf8

Browse files
ukleinekmasahir0y
authored andcommitted
modpost: Enable section warning from *driver to .exit.text
There used to be several offenders, but now that for all of them patches were sent and most of them were applied, enable the warning also for builds without W=1. Signed-off-by: Uwe Kleine-König <[email protected]> Reviewed-by: Nathan Chancellor <[email protected]> Signed-off-by: Masahiro Yamada <[email protected]>
1 parent ae4c4ce commit 7308bf8

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

scripts/mod/modpost.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -965,17 +965,6 @@ static int secref_whitelist(const char *fromsec, const char *fromsym,
965965
match(fromsym, PATTERNS("*_ops", "*_probe", "*_console")))
966966
return 0;
967967

968-
/*
969-
* symbols in data sections must not refer to .exit.*, but there are
970-
* quite a few offenders, so hide these unless for W=1 builds until
971-
* these are fixed.
972-
*/
973-
if (!extra_warn &&
974-
match(fromsec, PATTERNS(DATA_SECTIONS)) &&
975-
match(tosec, PATTERNS(ALL_EXIT_SECTIONS)) &&
976-
match(fromsym, PATTERNS("*driver")))
977-
return 0;
978-
979968
/* Check for pattern 3 */
980969
if (strstarts(fromsec, ".head.text") &&
981970
match(tosec, PATTERNS(ALL_INIT_SECTIONS)))

0 commit comments

Comments
 (0)