diff options
author | Shida Zhang <zhangshida@kylinos.cn> | 2022-04-26 11:20:07 +0800 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2022-04-26 10:59:57 +0200 |
commit | 1fa568e26f001e951b634d62ef3accdc80a87c7b (patch) | |
tree | 60379b7b1b9bdeeaf2e60b8dc3111c1ae73f2261 /arch/x86/pci/xen.c | |
parent | 4cdfc11b2836e659c0b7b31152a8b0d976167b59 (diff) |
bug: Have __warn() prototype defined unconditionally
The __warn() prototype is declared in CONFIG_BUG scope but the function
definition in panic.c is unconditional. The IBT enablement started using
it unconditionally but a CONFIG_X86_KERNEL_IBT=y, CONFIG_BUG=n .config
will trigger a
arch/x86/kernel/traps.c: In function ‘__exc_control_protection’:
arch/x86/kernel/traps.c:249:17: error: implicit declaration of function \
‘__warn’; did you mean ‘pr_warn’? [-Werror=implicit-function-declaration]
Pull up the declarations so that they're unconditionally visible too.
[ bp: Rewrite commit message. ]
Fixes: 991625f3dd2c ("x86/ibt: Add IBT feature, MSR and #CP handling")
Suggested-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Shida Zhang <zhangshida@kylinos.cn>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lore.kernel.org/r/20220426032007.510245-1-starzhangzsd@gmail.com
Diffstat (limited to 'arch/x86/pci/xen.c')
0 files changed, 0 insertions, 0 deletions