Skip to content
Commit 1560cb0e authored by Masahiro Yamada's avatar Masahiro Yamada
Browse files

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: default avatarMasahiro Yamada <masahiroy@kernel.org>
parent 7452dd26
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment