diff options
| author | Nathan Chancellor <[email protected]> | 2023-04-21 16:11:27 +0000 |
|---|---|---|
| committer | Thomas Bogendoerfer <[email protected]> | 2023-04-22 21:29:00 +0000 |
| commit | f4670a1b30f886e843258ca4a69c442811a90302 (patch) | |
| tree | 78801ffc425f7733000a012ea68dd7037bac9100 /lib/test_vmalloc.c | |
| parent | MIPS: Mark check_bugs() as __init (diff) | |
| download | kernel-f4670a1b30f886e843258ca4a69c442811a90302.tar.gz kernel-f4670a1b30f886e843258ca4a69c442811a90302.zip | |
MIPS: Sink body of check_bugs_early() into its only call site
If check_bugs_early() is not inlined, which a compiler is free to do
after commit ac7c3e4ff401 ("compiler: enable CONFIG_OPTIMIZE_INLINING
forcibly"), modpost would warn that check_bugs_early(), a non-init
function, refers to check_bugs64_early(), which is marked __init. This
would not result in any run time issues, as check_bugs_early() is only
called from setup_arch(), which is marked __init.
To avoid this potential warning, just sink the body of
check_bugs_early() into its single call site in setup_arch().
Signed-off-by: Nathan Chancellor <[email protected]>
Signed-off-by: Thomas Bogendoerfer <[email protected]>
Diffstat (limited to 'lib/test_vmalloc.c')
0 files changed, 0 insertions, 0 deletions
