projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f0d22d
)
s390/traps: do not test MONITOR CALL without CONFIG_BUG
author
Ilya Leoshkevich
<iii@linux.ibm.com>
Fri, 2 Jul 2021 13:54:55 +0000
(15:54 +0200)
committer
Vasily Gorbik
<gor@linux.ibm.com>
Thu, 8 Jul 2021 13:37:27 +0000
(15:37 +0200)
tinyconfig fails to boot, because without CONFIG_BUG report_bug()
always returns BUG_TRAP_TYPE_BUG, which causes mc 0,0 in
test_monitor_call() to panic. Fix by skipping the test without
CONFIG_BUG.
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Reviewed-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/kernel/traps.c
patch
|
blob
|
history
diff --git
a/arch/s390/kernel/traps.c
b/arch/s390/kernel/traps.c
index 019c5748b60737cc75f59fda309c0e1a766cfac9..3a6d08d6df6f0da88f0ac3652968c42a47d6a770 100644
(file)
--- a/
arch/s390/kernel/traps.c
+++ b/
arch/s390/kernel/traps.c
@@
-277,6
+277,8
@@
static void __init test_monitor_call(void)
{
int val = 1;
+ if (!IS_ENABLED(CONFIG_BUG))
+ return;
asm volatile(
" mc 0,0\n"
"0: xgr %0,%0\n"