diff --git a/arch/s390/include/asm/bug.h b/arch/s390/include/asm/bug.h index 1fbcbdbc595f..59017fd3d935 100644 --- a/arch/s390/include/asm/bug.h +++ b/arch/s390/include/asm/bug.h @@ -99,6 +99,8 @@ do { \ int __flags = (flags) | BUGFLAG_WARNING | BUGFLAG_ARGS; \ \ __WARN_trap(__WARN_bug_entry(__flags, format), ## arg); \ + /* prevent tail-call optimization */ \ + asm(""); \ } while (0) #define __WARN_printf(taint, fmt, arg...) \