Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755362AbcJQR7w (ORCPT ); Mon, 17 Oct 2016 13:59:52 -0400 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 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 Subject: Re: [PATCH] lpfc: use %zd format string for size_t From: "Martin K. Petersen" Organization: Oracle Corporation References: <20161017123605.2217411-1-arnd@arndb.de> Date: Mon, 17 Oct 2016 13:59:08 -0400 In-Reply-To: <20161017123605.2217411-1-arnd@arndb.de> (Arnd Bergmann's message of "Mon, 17 Oct 2016 14:35:46 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Source-IP: userv0022.oracle.com [156.151.31.74] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 674 Lines: 16 >>>>> "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