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

parisc: Convert BUG() to use unreachable()

Use the new unreachable() macro instead of for(;;);

Signed-off-by: David Daney <ddaney@caviumnetworks.com>
Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>

authored by

David Daney and committed by
Kyle McMartin
05920797 6ad6c424

+2 -2
+2 -2
arch/parisc/include/asm/bug.h
··· 32 32 "\t.popsection" \ 33 33 : : "i" (__FILE__), "i" (__LINE__), \ 34 34 "i" (0), "i" (sizeof(struct bug_entry)) ); \ 35 - for(;;) ; \ 35 + unreachable(); \ 36 36 } while(0) 37 37 38 38 #else 39 39 #define BUG() \ 40 40 do { \ 41 41 asm volatile(PARISC_BUG_BREAK_ASM : : ); \ 42 - for(;;) ; \ 42 + unreachable(); \ 43 43 } while(0) 44 44 #endif 45 45