From: "Martin K. Petersen" Subject: Re: [PATCH] bfa: turn bfa_mem_{kva,dma}_setup into inline functions Date: Mon, 21 Nov 2016 22:29:27 -0500 Message-ID: References: <20161116151445.3208739-1-arnd@arndb.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: In-Reply-To: <20161116151445.3208739-1-arnd@arndb.de> (Arnd Bergmann's message of "Wed, 16 Nov 2016 16:14:27 +0100") Sender: linux-kernel-owner@vger.kernel.org To: Arnd Bergmann Cc: "James E.J. Bottomley" , "Martin K. Petersen" , Anil Gurumurthy , Sudarsana Kalluru , Johannes Thumshirn , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org List-Id: linux-scsi@vger.kernel.org >>>>> "Arnd" == Arnd Bergmann writes: Arnd> These two macros cause lots of warnings with gcc-7: Arnd> drivers/scsi/bfa/bfa_svc.c: In function 'bfa_fcxp_meminfo': Arnd> drivers/scsi/bfa/bfa_svc.c:521:103: error: '*' in boolean context, Arnd> suggest '&&' instead [-Werror=int-in-bool-context] Arnd> Using inline functions makes them much more readable and avoids Arnd> the warnings. Applied to 4.10/scsi-queue. -- Martin K. Petersen Oracle Linux Engineering