Commit 7308bf8a authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Masahiro Yamada
Browse files

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: default avatarUwe Kleine-König <u.kleine-koenig@baylibre.com>
Reviewed-by: default avatarNathan Chancellor <nathan@kernel.org>
Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
parent ae4c4cee
Loading
Loading
Loading
Loading
+0 −11
Original line number Diff line number Diff line
@@ -965,17 +965,6 @@ static int secref_whitelist(const char *fromsec, const char *fromsym,
	    match(fromsym, PATTERNS("*_ops", "*_probe", "*_console")))
		return 0;

	/*
	 * symbols in data sections must not refer to .exit.*, but there are
	 * quite a few offenders, so hide these unless for W=1 builds until
	 * these are fixed.
	 */
	if (!extra_warn &&
	    match(fromsec, PATTERNS(DATA_SECTIONS)) &&
	    match(tosec, PATTERNS(ALL_EXIT_SECTIONS)) &&
	    match(fromsym, PATTERNS("*driver")))
		return 0;

	/* Check for pattern 3 */
	if (strstarts(fromsec, ".head.text") &&
	    match(tosec, PATTERNS(ALL_INIT_SECTIONS)))