]> git.baikalelectronics.ru Git - kernel.git/commit
modpost: remove unneeded .symbol_white_list initializers
authorMasahiro Yamada <masahiroy@kernel.org>
Mon, 1 Aug 2022 09:39:01 +0000 (18:39 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Thu, 4 Aug 2022 11:32:13 +0000 (20:32 +0900)
commitb37bd26a4e75a520bf257dfa8491fb7289135c9b
tree7bf78b39310e6cc76c79def352e9f8c774178d61
parent986b65ecc164904cc1babac553cd2b8d564d315e
modpost: remove unneeded .symbol_white_list initializers

The ->symbol_white_list field is referenced in secref_whitelist(),
only when 'fromsec' is data_sections.

        /* Check for pattern 2 */
        if (match(tosec, init_exit_sections) &&
            match(fromsec, data_sections) &&
            match(fromsym, mismatch->symbol_white_list))
                return 0;

If .fromsec is not data sections, the .symbol_white_list member is
not used by anyone.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/mod/modpost.c