]> git.baikalelectronics.ru Git - 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)
commitbd676f76e92efd57b8fdbed37e80af35fe77d6b0
tree700be1f04bbd9611daaae860ed06e74e6a1a7366
parent4ca0f4d30ed59cee36d2716ab2d62baf1d9055b2
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