]> 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)
commited822a7145264dcdcbc01681e085bc8bab488bc6
tree7bf78b39310e6cc76c79def352e9f8c774178d61
parentd8d371364a56325b8954dff36396205c3f2f75ba
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