From: "Martin K. Petersen" Subject: Re: [PATCH] lpfc: use %zd format string for size_t Date: Mon, 17 Oct 2016 13:59:08 -0400 Message-ID: References: <20161017123605.2217411-1-arnd@arndb.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from userp1040.oracle.com ([156.151.31.81]:48746 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753877AbcJQR7o (ORCPT ); Mon, 17 Oct 2016 13:59:44 -0400 In-Reply-To: <20161017123605.2217411-1-arnd@arndb.de> (Arnd Bergmann's message of "Mon, 17 Oct 2016 14:35:46 +0200") Sender: linux-scsi-owner@vger.kernel.org List-Id: linux-scsi@vger.kernel.org To: Arnd Bergmann Cc: James Smart , Dick Kennedy , "James E.J. Bottomley" , "Martin K. Petersen" , Hannes Reinecke , James Bottomley , Sebastian Herbszt , Johannes Thumshirn , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org >>>>> "Arnd" == Arnd Bergmann writes: Arnd> A recent bugfix introduced a harmless warning in the lpfc driver: Arnd> drivers/scsi/lpfc/lpfc_init.c: In function 'lpfc_write_firmware': Arnd> drivers/scsi/lpfc/lpfc_logmsg.h:56:45: error: format '%ld' expects Arnd> argument of type 'long int', but argument 9 has type 'size_t {aka Arnd> const unsigned int}' [-Werror=format=] Arnd> 'size_t' is always the same width as 'long' in the kernel, but the Arnd> compiler doesn't know that. The %z modifier is what the standard Arnd> expects to be used here, and this shuts up the warning. Applied to 4.10/scsi-queue. -- Martin K. Petersen Oracle Linux Engineering