Shida Zhang
1fa568e26f
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
2022-04-26 10:59:57 +02:00
..
2022-01-25 22:30:28 +01:00
2020-02-17 20:12:17 +01:00
2022-02-25 09:36:06 +01:00
2015-06-23 13:35:49 +09:00
2017-11-02 11:10:55 +01:00
2021-05-26 13:20:52 +02:00
2021-05-26 13:20:52 +02:00
2017-11-02 11:10:55 +01:00
2018-01-30 19:07:54 -08:00
2017-11-02 11:10:55 +01:00
2017-11-15 13:28:48 -08:00
2022-01-22 09:22:10 +02:00
2022-01-15 08:47:31 -08:00
2021-05-06 19:24:11 -07:00
2022-04-26 10:59:57 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2021-11-17 10:36:15 -05:00
2020-08-20 15:45:14 -04:00
2021-05-26 13:20:50 +02:00
2021-05-26 13:20:52 +02:00
2021-07-23 14:20:24 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2019-06-05 17:37:16 +02:00
2021-08-20 11:39:28 +01:00
2018-12-13 21:06:18 +01:00
2017-11-02 11:10:55 +01:00
2021-09-08 11:50:24 -07:00
2017-11-02 11:10:55 +01:00
2021-12-17 14:12:14 +01:00
2019-05-24 17:27:11 +02:00
2021-02-03 16:42:57 +00:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-12-14 15:05:45 -08:00
2019-06-24 09:16:47 +10:00
2019-06-19 17:09:55 +02:00
2021-12-11 23:31:51 +01:00
2020-12-15 22:46:15 -08:00
2020-02-10 12:58:36 +01:00
2020-11-23 10:31:06 +01:00
2020-06-20 22:14:53 +10:00
2022-02-10 13:50:36 -05:00
2017-11-02 11:10:55 +01:00
2018-06-07 17:34:38 -07:00
2021-10-08 11:57:54 -07:00
2017-11-02 11:10:55 +01:00
2021-09-19 10:36:09 -07:00
2019-05-30 11:26:32 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2021-02-24 16:32:23 -08:00
2017-11-02 11:10:55 +01:00
2020-11-24 14:42:08 +01:00
2020-10-25 14:51:49 -07:00
2018-03-06 18:40:44 +01:00
2020-07-09 13:29:42 -04:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2021-12-21 21:31:08 +01:00
2014-02-09 21:18:52 +01:00
2021-06-29 10:53:55 -07:00
2020-01-23 10:41:16 -08:00
2019-04-08 11:59:39 +01:00
2020-07-17 10:02:03 +01:00
2020-10-26 16:45:03 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2020-09-25 00:36:41 +09:00
2022-03-29 12:12:50 +00:00
2020-12-15 15:03:31 -08:00
2020-10-26 16:45:03 +01:00
2021-01-14 15:08:55 -08:00
2021-01-20 09:30:45 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2021-09-19 10:36:09 -07:00
2018-05-07 07:15:41 +02:00
2020-10-26 23:54:48 +00:00
2022-01-19 17:54:08 -08:00
2020-04-07 10:43:39 -07:00
2021-07-08 11:48:22 -07:00
2021-07-08 11:48:22 -07:00
2021-07-08 11:48:22 -07:00
2021-05-12 13:01:45 +02:00
2018-02-06 10:28:58 +01:00
2021-02-11 07:59:54 -05:00
2020-07-29 16:14:19 +02:00
2020-10-26 20:19:48 +01:00
2017-11-02 11:10:55 +01:00
2020-07-21 10:50:36 +01:00
2020-07-10 16:01:52 -07:00
2022-02-16 23:25:11 +11:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2019-05-14 19:52:48 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2021-02-10 23:34:16 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2019-05-24 17:27:11 +02:00
2022-03-10 13:35:08 -06:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2022-04-06 12:41:48 +01:00
2017-11-02 11:10:55 +01:00
2021-06-29 10:53:55 -07:00
2017-11-02 11:10:55 +01:00
2022-02-25 09:36:06 +01:00
2022-04-12 16:31:38 -06:00
2020-04-23 10:50:26 +09:00
2017-11-02 11:10:55 +01:00
2022-03-27 10:17:23 -07:00
2013-09-30 14:31:02 -07:00
2017-11-02 11:10:55 +01:00
2022-02-11 20:39:39 +11:00