From patchwork Thu Oct 3 15:52:25 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: 175180 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp619021ill; Thu, 3 Oct 2019 10:19:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqxmC7P/rYlypqSgXW+2OE19v5ATHn6l6UZ9OQjQXkx3gbSkQTYWZFlu1Kkk16kGAxGNu47u X-Received: by 2002:a50:ee10:: with SMTP id g16mr10691341eds.267.1570123166376; Thu, 03 Oct 2019 10:19:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570123166; cv=none; d=google.com; s=arc-20160816; b=sNrzbbqc4m9sMnmxJj1epMoQUy5uhV0IIbBdwaR6u0HTId85w5J62HT75nHi4aN3su YMKklhQIBW0664XTXLqnLJLM7Z+1dsu7iYRGj/UAbQwqQtq1EVlPQrZ8lmq+to/DApmV RSSaWJNPN4HKMr8l0buzlDq6PzemiWY7DziiSt/HIVCfqS6gfhY7W7ELZyd9/Yke0p/7 20h6O7SDEOCGv+lEOeJV/AFGSvxWnfPJI73n92agX1gLd6PHhAQ0ARqMcQfniwQ56I6h 6tAzyBtuRxw0YUSyfwk/U5RxTqv4V2tkZiE6YlIdRA8ItnQOX12Qyo6ORUKKtrEkK03a Ph8Q== 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=+Ykyth3w6e1UJf8EoVG4DsuklbFrgVLfob+veYDTh9U=; b=ZA+o9kta+Ip9GuRP8E/E9rddGrqWBOS9eQQsqd+tBJpPJ1rD58/PAsON3Knacb+JHx /dc7yXCIZLh0yPVx51VfSFejpdyqDhcnx88hlyIb3wIEipK2a0BTdND7QrvDnbnDu85H rDM0pKNe1fSGkpJMV9pXQSjWaIwfp8LfXbIdNpoqMjgNJwW4YB7NSewq7r+ldB7OlJ8c i421TxatCg4f8jxE8erx+0PNzwe/RciUtYZwuL8Ghc1im4VOTUkrXxNeWQtvVll6K0Tx 7w+fVPiqOUK85bCjWEbLay9mMnek3Lhh8Y7txRlxqgUIkOCnn7Ih97/IsosbuDa/oy52 0/RQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=OSmchad4; 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 l18si1871601edb.155.2019.10.03.10.19.26; Thu, 03 Oct 2019 10:19:26 -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=OSmchad4; 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 S2389760AbfJCQTt (ORCPT + 27 others); Thu, 3 Oct 2019 12:19:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:46830 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388864AbfJCQTk (ORCPT ); Thu, 3 Oct 2019 12:19:40 -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 4C4DA215EA; Thu, 3 Oct 2019 16:19:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570119579; bh=++ww0M8FldhONH/sKfUkcOspcDTMgTrhuVQH5MzsDWA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OSmchad4Um6hy+Pr83Aklb0rBHJYqLcxWNmXN4Yw5BVezrWTUnEma2MJhalXpAJs7 +5n1n7eTsa7ukAcshdaBis/zJ7vGB0t53nyGeMhGdZpFFYu0goOfaZZhwaH+0YLcv1 w5djtKWRPffgTGOz5jRlI/9ewqICjwyYD8hj+CBg= 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 4.19 079/211] net: lpc-enet: fix printk format strings Date: Thu, 3 Oct 2019 17:52:25 +0200 Message-Id: <20191003154505.453039402@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191003154447.010950442@linuxfoundation.org> References: <20191003154447.010950442@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 08381ef8bdb48..41d30f55c946b 100644 --- a/drivers/net/ethernet/nxp/lpc_eth.c +++ b/drivers/net/ethernet/nxp/lpc_eth.c @@ -1371,13 +1371,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); @@ -1424,8 +1425,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); phydev = ndev->phydev;