From patchwork Thu Oct 3 15:51:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 175152 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp573946ill; Thu, 3 Oct 2019 09:43:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqwEiSz2qU9bxez30/e7gU8sYJlB+K7EAvGsA9qDL+eKkbDBhmdNRYHGO43Ldf/fNcOujvz8 X-Received: by 2002:a05:6402:150a:: with SMTP id f10mr10297304edw.110.1570121015639; Thu, 03 Oct 2019 09:43:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570121015; cv=none; d=google.com; s=arc-20160816; b=aA5ZeNKabNu4WhlELo4IacVwihJYcRGdOnmA+Kh95yiIcQKR+Zew4+k642t3N1fhKP oF+UteepuXgMPN5NdK5baI0vLmm0ZWIhv/vKTipIoUG07LMN15qiTkRg3mdeHS+YTze8 JM2JZ1TblxkZtsA+5RdWlDl8kE9+j1kLcGI+XwSkGoTS5QTfc/uVJ30jmNrzyHu5VNmZ ghA6wGfgiVYC+MqyVtEqpfAkCuhqsZjeDdWovinlwUitlaUDa9BnvooKlqWI/aU8oBTu RfcvEdJdcan94leZrzEHREAHw6pWtI++iADa+1EKhKNkOfmQek3toJSGui/yP4ZAKEYj DibQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=7W1j5fE1yCxFsUrDAmnz15kcEplGWj3vcXwORa9si/Y=; b=SFgcGH+Q4G8c3L9HsLRTGqjY137RrCMKPEc2lnvJXpjXeC0ZmuXq2S98so+axKbvuL 4rO9vmezY58EjgwxJVpU7ZSWCiOKsdZ60CuWCdfGB8EZUIFYBJ4Rhie+oWKdYpw3I24S o7CqoG/4rXIS5EnNhGNSbFH4uILPZuv5w1fMiLX/NoGL5apGwU0pU9aj0qpKX2MUwvLc 5dcXL5SjBJ9bDsvqT4omIEHx2O/XeLdCgJo8ra6tLHSheaWt9svb26j4CTxpxPNLTOV8 0STBj+RTBGz6YrGp3Q2ECZLa9/ClPTVQSqssxlSYVLWyIxU3R0PUTmwiD/XMZp7F5bOG yfRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=a6XmUtF0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g3si1832779edu.432.2019.10.03.09.43.35; Thu, 03 Oct 2019 09:43:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=a6XmUtF0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392717AbfJCQne (ORCPT + 27 others); Thu, 3 Oct 2019 12:43:34 -0400 Received: from mail.kernel.org ([198.145.29.99]:54924 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388237AbfJCQn3 (ORCPT ); Thu, 3 Oct 2019 12:43:29 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 933662070B; Thu, 3 Oct 2019 16:43:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570121009; bh=ljyOOYLOrVHKPq0GoGX1yqA6Ygi+ssZEBM2nuLc3eP4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=a6XmUtF0qpBd9YNCWgF9kMTOUAgDDxrLpsXkYm8IOjk92l6oVW5c6f4OpeA8QTbOP v6P6Go0J344rOYzLBdu6aGQ9r1dWDCtWsnpUKbK4/e3YHv3OnbkEd4BmgTSsTvBk57 bgAUut5YJa1rKJI4+uKx6dNC+jA5DfqhfpGGTpNo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, kbuild test robot , Arnd Bergmann , Sasha Levin Subject: [PATCH 5.3 121/344] net: lpc-enet: fix printk format strings Date: Thu, 3 Oct 2019 17:51:26 +0200 Message-Id: <20191003154552.134612304@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191003154540.062170222@linuxfoundation.org> References: <20191003154540.062170222@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann [ Upstream commit de6f97b2bace0e2eb6c3a86e124d1e652a587b56 ] 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. Link: https://lore.kernel.org/r/20190809144043.476786-10-arnd@arndb.de Reported-by: kbuild test robot Signed-off-by: Arnd Bergmann Signed-off-by: Sasha Levin --- drivers/net/ethernet/nxp/lpc_eth.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) -- 2.20.1 diff --git a/drivers/net/ethernet/nxp/lpc_eth.c b/drivers/net/ethernet/nxp/lpc_eth.c index f7e11f1b0426c..b0c8be127bee1 100644 --- a/drivers/net/ethernet/nxp/lpc_eth.c +++ b/drivers/net/ethernet/nxp/lpc_eth.c @@ -1344,13 +1344,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)); netdev_dbg(ndev, "IO address (mapped) :0x%p\n", pldat->net_base); netdev_dbg(ndev, "IRQ number :%d\n", ndev->irq); - netdev_dbg(ndev, "DMA buffer size :%d\n", pldat->dma_buff_size); - netdev_dbg(ndev, "DMA buffer P address :0x%08x\n", - pldat->dma_buff_base_p); + netdev_dbg(ndev, "DMA buffer size :%zd\n", pldat->dma_buff_size); + netdev_dbg(ndev, "DMA buffer P address :%pad\n", + &pldat->dma_buff_base_p); netdev_dbg(ndev, "DMA buffer V address :0x%p\n", pldat->dma_buff_base_v); @@ -1397,8 +1398,8 @@ static int lpc_eth_drv_probe(struct platform_device *pdev) if (ret) goto err_out_unregister_netdev; - netdev_info(ndev, "LPC mac at 0x%08x irq %d\n", - res->start, ndev->irq); + netdev_info(ndev, "LPC mac at 0x%08lx irq %d\n", + (unsigned long)res->start, ndev->irq); device_init_wakeup(dev, 1); device_set_wakeup_enable(dev, 0);