[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <161768454091.32082.16582764474328607991.b4-ty@oracle.com>
Date: Tue, 6 Apr 2021 00:53:19 -0400
From: "Martin K. Petersen" <martin.petersen@...cle.com>
To: Arnd Bergmann <arnd@...nel.org>,
"James E.J. Bottomley" <jejb@...ux.ibm.com>
Cc: "Martin K . Petersen" <martin.petersen@...cle.com>,
linux-scsi@...r.kernel.org, Arnd Bergmann <arnd@...db.de>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] mvsas: avoid -Wempty-body warning
On Mon, 22 Mar 2021 11:33:09 +0100, Arnd Bergmann wrote:
> Building with 'make W=1' shows a few harmless -Wempty-body warning for
> the mvsas driver:
>
> drivers/scsi/mvsas/mv_94xx.c: In function 'mvs_94xx_phy_reset':
> drivers/scsi/mvsas/mv_94xx.c:278:63: error: suggest braces around empty body in an 'if' statement [-Werror=empty-body]
> 278 | mv_dprintk("phy hard reset failed.\n");
> | ^
> drivers/scsi/mvsas/mv_sas.c: In function 'mvs_task_prep':
> drivers/scsi/mvsas/mv_sas.c:723:57: error: suggest braces around empty body in an 'else' statement [-Werror=empty-body]
> 723 | SAS_ADDR(dev->sas_addr));
> | ^
>
> [...]
Applied to 5.13/scsi-queue, thanks!
[1/1] mvsas: avoid -Wempty-body warning
https://git.kernel.org/mkp/scsi/c/ae3645d29d4e
--
Martin K. Petersen Oracle Linux Engineering
Powered by blists - more mailing lists