modpost: move *.mod.c generation to write_mod_c_files()
authorMasahiro Yamada <masahiroy@kernel.org>
Thu, 5 May 2022 07:22:33 +0000 (16:22 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Wed, 11 May 2022 12:46:38 +0000 (21:46 +0900)
commita44abaca0e196cfeef2374ed663b97daa1ad112a
treefded9837d0c3617ec67525565044d05e03b08041
parent7fedac9698b3a56571064eb3b23063f09c93eb94
modpost: move *.mod.c generation to write_mod_c_files()

A later commit will add more code to this list_for_each_entry loop.

Before that, move the loop body into a separate helper function.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nicolas Schier <nicolas@fjasle.eu>
Tested-by: Nathan Chancellor <nathan@kernel.org>
scripts/mod/modpost.c