module: add a for_each_modinfo_entry()
authorLuis Chamberlain <mcgrof@kernel.org>
Sun, 19 Mar 2023 21:27:37 +0000 (14:27 -0700)
committerLuis Chamberlain <mcgrof@kernel.org>
Fri, 24 Mar 2023 18:05:15 +0000 (11:05 -0700)
commit1e684172358453df1cb783d7c101a09ff08ceee1
treef938bd85a32c0b1f4543d768d4b06681b04bdda0
parentfeb5b784a26363b690f618213450faf244c1c58e
module: add a for_each_modinfo_entry()

Add a for_each_modinfo_entry() to make it easier to read and use.
This produces no functional changes but makes this code easiert
to read as we are used to with loops in the kernel and trims more
lines of code.

Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
kernel/module/internal.h
kernel/module/main.c