[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <yq14lfc5c8m.fsf@oracle.com>
Date: Thu, 30 Aug 2018 07:23:53 -0400
From: "Martin K. Petersen" <martin.petersen@...cle.com>
To: Arnd Bergmann <arnd@...db.de>
Cc: "James E.J. Bottomley" <jejb@...ux.vnet.ibm.com>,
"Martin K. Petersen" <martin.petersen@...cle.com>,
Hannes Reinecke <hare@...e.de>, linux-scsi@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] scsi: raid_attrs: fix unused variable warning
Arnd,
> I ran into a new warning on randconfig kernels:
>
> drivers/scsi/raid_class.c: In function 'raid_match':
> drivers/scsi/raid_class.c:64:24: error: unused variable 'i' [-Werror=unused-variable]
>
> This looks like a very old problem that for some reason was very
> hard to run into, but it is very easy to fix, by replacing the
> incorrect #ifdef with a simpler IS_ENABLED() check.
Applied to 4.20/scsi-queue. Thanks!
--
Martin K. Petersen Oracle Linux Engineering
Powered by blists - more mailing lists