From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C3A0FC31E40 for ; Fri, 9 Aug 2019 16:30:57 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 92210214C6 for ; Fri, 9 Aug 2019 16:30:57 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="aWDd9CwL" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 92210214C6 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=perches.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Date:To:From:Subject:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=nTPWnur+mniWE6vHbDbBqMYwD5fxcQvVobQ+yE3SaJQ=; b=aWDd9CwL8uy2Jv 7BpzcoRc4V35h1iDHr5J3quS2MQHHy5EXgP0/Wkq27fs2vl8bG9DBCzL34xaR5PPSYZht1q6tIgN5 TNvEAqJ2fK05ZvHiZN06gjG+MNXS/XBdeAVQ1ZZjShZFceHbDIWaoE4jaGGGSxgP8NJFPF1+WfCxT nWVQ+UoNVCTW7hqQDTKk7UYeJs7RQjraNf3VXI47BlQtxir8NibeaviCs6ZGofCOpvtss0SNdh9tE bD7envrfTa6SZ8EjniPPZt+mLq42CBEJc68pcqAISljFU/SsipQBVGFavxg7y4vl8CRd+B8s+u8kv xJOXyAdE5IkmwAKesqtQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hw7n7-0003Gm-7e; Fri, 09 Aug 2019 16:30:57 +0000 Received: from smtprelay0086.hostedemail.com ([216.40.44.86] helo=smtprelay.hostedemail.com) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hw7n2-0003Fv-K9 for linux-arm-kernel@lists.infradead.org; Fri, 09 Aug 2019 16:30:53 +0000 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay03.hostedemail.com (Postfix) with ESMTP id 4A2E98368EFA; Fri, 9 Aug 2019 16:30:43 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-HE-Tag: part95_232f517601209 X-Filterd-Recvd-Size: 2195 Received: from XPS-9350 (cpe-23-242-196-136.socal.res.rr.com [23.242.196.136]) (Authenticated sender: joe@perches.com) by omf01.hostedemail.com (Postfix) with ESMTPA; Fri, 9 Aug 2019 16:30:41 +0000 (UTC) Message-ID: Subject: Re: [PATCH v2 09/13] net: lpc-enet: fix printk format strings From: Joe Perches To: Arnd Bergmann , soc@kernel.org Date: Fri, 09 Aug 2019 09:30:40 -0700 In-Reply-To: <20190809144043.476786-10-arnd@arndb.de> References: <20190809144043.476786-1-arnd@arndb.de> <20190809144043.476786-10-arnd@arndb.de> User-Agent: Evolution 3.30.5-0ubuntu0.18.10.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190809_093052_727401_1660D2BC X-CRM114-Status: UNSURE ( 8.17 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kbuild test robot , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Vladimir Zapolskiy , Sylvain Lemieux , "David S. Miller" , linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, 2019-08-09 at 16:40 +0200, Arnd Bergmann wrote: > compile-testing this driver on other architectures showed > multiple warnings: > > drivers/net/ethernet/nxp/lpc_eth.c: In function 'lpc_eth_drv_probe': > drivers/net/ethernet/nxp/lpc_eth.c:1337:19: warning: format '%d' expects argument of type 'int', but argument 4 has type 'resource_size_t {aka long long unsigned int}' [-Wformat=] > > drivers/net/ethernet/nxp/lpc_eth.c:1342:19: warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'dma_addr_t {aka long long unsigned int}' [-Wformat=] > > Use format strings that work on all architectures. [] > diff --git a/drivers/net/ethernet/nxp/lpc_eth.c b/drivers/net/ethernet/nxp/lpc_eth.c [] > @@ -1333,13 +1333,14 @@ static int lpc_eth_drv_probe(struct platform_device *pdev) > pldat->dma_buff_base_p = dma_handle; > > netdev_dbg(ndev, "IO address space :%pR\n", res); > - netdev_dbg(ndev, "IO address size :%d\n", resource_size(res)); > + netdev_dbg(ndev, "IO address size :%zd\n", > + (size_t)resource_size(res)); Ideally all these would use %zu not %zd _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel