diff options
| author | Nathan Chancellor <[email protected]> | 2022-12-13 18:35:29 +0000 |
|---|---|---|
| committer | Masahiro Yamada <[email protected]> | 2022-12-14 06:49:34 +0000 |
| commit | 19331e84c3873256537d446afec1f6c507f8c4ef (patch) | |
| tree | e7ef04835be9702185550a3f18d7bb5b0d188ab1 /drivers/pci/controller/vmd.c | |
| parent | padata: Mark padata_work_init() as __ref (diff) | |
| download | kernel-19331e84c3873256537d446afec1f6c507f8c4ef.tar.gz kernel-19331e84c3873256537d446afec1f6c507f8c4ef.zip | |
modpost: Include '.text.*' in TEXT_SECTIONS
Commit 6c730bfc894f ("modpost: handle -ffunction-sections") added
".text.*" to the OTHER_TEXT_SECTIONS macro to fix certain section
mismatch warnings. Unfortunately, this makes it impossible for modpost
to warn about section mismatches with LTO, which implies
'-ffunction-sections', as all functions are put in their own
'.text.<func_name>' sections, which may still reference functions in
sections they are not supposed to, such as __init.
Fix this by moving ".text.*" into TEXT_SECTIONS, so that configurations
with '-ffunction-sections' will see warnings about mismatched sections.
Link: https://lore.kernel.org/[email protected]/
Reported-by: Vincent Donnefort <[email protected]>
Reviewed-and-tested-by: Alexander Lobakin <[email protected]>
Reviewed-by: Sami Tolvanen <[email protected]>
Tested-by: Vincent Donnefort <[email protected]>
Signed-off-by: Nathan Chancellor <[email protected]>
Signed-off-by: Masahiro Yamada <[email protected]>
Diffstat (limited to 'drivers/pci/controller/vmd.c')
0 files changed, 0 insertions, 0 deletions
