Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

[S390] remove warnings with functions ending in BUG

Functions which end in a BUG() statement and skip the return statement
cause compile warnings on s390, e.g.:

mm/bootmem.c: In function 'mark_bootmem':
mm/bootmem.c:321: warning: control reaches end of non-void function

To avoid the warning add an endless loop to the BUG() macro.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>

+4 -1
+4 -1
arch/s390/include/asm/bug.h
··· 47 47 48 48 #endif /* CONFIG_DEBUG_BUGVERBOSE */ 49 49 50 - #define BUG() __EMIT_BUG(0) 50 + #define BUG() do { \ 51 + __EMIT_BUG(0); \ 52 + for (;;); \ 53 + } while (0) 51 54 52 55 #define WARN_ON(x) ({ \ 53 56 int __ret_warn_on = !!(x); \