module: move check_modinfo() early to early_mod_check()
authorLuis Chamberlain <mcgrof@kernel.org>
Sun, 19 Mar 2023 21:27:39 +0000 (14:27 -0700)
committerLuis Chamberlain <mcgrof@kernel.org>
Fri, 24 Mar 2023 18:33:06 +0000 (11:33 -0700)
commit02da2cbab452a236fa67abc9fc9e47430934e652
tree5b2c6542d9eeedc400ebe9ac6ebcf4f0444d3ee5
parent85e6f61c134f111232d27d3f63667c1bccbbc12d
module: move check_modinfo() early to early_mod_check()

This moves check_modinfo() to early_mod_check(). This
doesn't make any functional changes either, as check_modinfo()
was the first call on layout_and_allocate(), so we're just
moving it back one routine and at the end.

This let's us keep separate the checkers from the allocator.

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