]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
modpost: refactor seen flag clearing in add_depends()
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 23 Nov 2018 07:57:21 +0000 (16:57 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Sat, 1 Dec 2018 13:21:58 +0000 (22:21 +0900)
commitd2665ca8e3310d045b62397590ab54dc485e035e
tree700be1f04bbd9611daaae860ed06e74e6a1a7366
parentf880eea68fe593342fa6e09be9bb661f3c297aec
modpost: refactor seen flag clearing in add_depends()

You do not need to iterate over all modules for resetting ->seen flag
because add_depends() is only interested in modules that export symbols
referenced from the given 'mod'.

This also avoids shadowing the 'modules' parameter of add_depends().

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
scripts/mod/modpost.c