Re: [PATCH 1/2] aic94xx: avoid -Wempty-body warning

From: Martin K. Petersen
Date: Tue Apr 06 2021 - 00:53:48 EST


On Mon, 22 Mar 2021 11:25:43 +0100, Arnd Bergmann wrote:

> Building with 'make W=1' shows a harmless -Wempty-body warning:
>
> drivers/scsi/aic94xx/aic94xx_init.c: In function 'asd_free_queues':
> drivers/scsi/aic94xx/aic94xx_init.c:858:62: error: suggest braces around empty body in an 'if' statement [-Werror=empty-body]
> 858 | ASD_DPRINTK("Uh-oh! Pending is not empty!\n");
>
> Change the empty ASD_DPRINTK() macro to no_printk(), which avoids this
> warning and adds format string checking.

Applied to 5.13/scsi-queue, thanks!

[1/2] aic94xx: avoid -Wempty-body warning
https://git.kernel.org/mkp/scsi/c/6c26379def09
[2/2] scsi: message: fusion: avoid -Wempty-body warnings
https://git.kernel.org/mkp/scsi/c/472c1cfb10f1

--
Martin K. Petersen Oracle Linux Engineering