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

staging/fwserial: Fix build breakage when !CONFIG_BUG

Use WARN() as intended.

Reported-by: Randy Dunlap <rdunlap@infradead.org>
Acked-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Peter Hurley and committed by
Greg Kroah-Hartman
eef6e7b2 7355ba34

+1 -4
+1 -4
drivers/staging/fwserial/dma_fifo.c
··· 33 33 34 34 #define FAIL(fifo, condition, format...) ({ \ 35 35 fifo->corrupt = !!(condition); \ 36 - if (unlikely(fifo->corrupt)) { \ 37 - __WARN_printf(format); \ 38 - } \ 39 - unlikely(fifo->corrupt); \ 36 + WARN(fifo->corrupt, format); \ 40 37 }) 41 38 42 39 /*