Skip to content

Commit

Permalink
s390/traps: do not test MONITOR CALL without CONFIG_BUG
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ilya Leoshkevich authored and Vasily Gorbik committed Jul 8, 2021
1 parent 1f0d22d commit b8e9cc2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/s390/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit b8e9cc2

Please sign in to comment.