From patchwork Thu Oct 3 15:53:07 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: 175097 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp519198ill; Thu, 3 Oct 2019 09:03:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqzCwBY9c8RA+s2icwL4wCUQ7WO+T4xriuoiZYEx2x1oaVz24ptkNW9kxuwzgpqBgM3Y5zNz X-Received: by 2002:a17:906:f259:: with SMTP id gy25mr8544229ejb.2.1570118597249; Thu, 03 Oct 2019 09:03:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570118597; cv=none; d=google.com; s=arc-20160816; b=TFZSDQ0pxXf0+HtdAVcsCHoFDZ6grzas7LGiDMhV/nlhnuKpCU9W1oWBeJlhIo9m3w +Cd2s4z5tK/xSQ7qvHI+BXgbgc2smLTV1dmuXUC9s/JD/fuJypT9XsyKPRBVmzzKqWJP GTwzpmWF6cnE9pLmbnuHGuZqFPIHvhrYGUnpDUoGhTB5cv4bpVMfkehEip75Ev4CyLM+ kjhLpNaL7lR1YYh4SHtxZ06Sbu1nCHx3vq3ndjP3WriZzy465BYspcind+ddBsK5fP/8 93nFKLpxQD6yud6/BD454YSSUzVbTCZNlb5vVZy5QDj4pEjy8l+uDjt5jPdmRCWRgjSx k+PQ== 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=ey89vr0sCZomMH/QHmV5kjsKUOCjkyuIHluB31BWwxE=; b=NPvU9y5j4L9PjKJybATmWvDf56f+joeP+ybp+Xweay8m8dAp/ZEO1tn0QH0faRf98K fmyoZ8nSK4iA8BLfNTUmIaGCwrcZSSgUVGTY6hwrcbdeCnIu33z8h8A+loAhq/RaFfxi O95Pwj95uiZjfWPqC+Yhyu69chL/xa21x1AiF950kvjOzrmt2xvzXKlAAGvEhNxsuh+8 eS8KEALn6zHedn1ZqaPM6Mi1WbECCDxS5s1qH6Z5x3KgJ7BwXyQNt8cw1tb8bpWDvjSZ KuP75sMDcIrh+fLZijhySsK1E9jfCUkE9ex4f3Zd16WM5SmO2fKUzs54V5yeRuxmrR9B CkGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=fU1x8qG6; 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 5si1889360edy.95.2019.10.03.09.03.17; Thu, 03 Oct 2019 09:03:17 -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=fU1x8qG6; 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 S1731006AbfJCQDO (ORCPT + 27 others); Thu, 3 Oct 2019 12:03:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:48268 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732206AbfJCQDI (ORCPT ); Thu, 3 Oct 2019 12:03:08 -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 916E1207FF; Thu, 3 Oct 2019 16:03:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570118588; bh=qXmjZGCt17KUtkbDK9AyGeefrtzMuJnk7XU5Ul7MwNo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fU1x8qG61cDpjrxbYAO4SnVDnFNV8NGaXu8ezDbiZr+stmS2bwIbIlh2x88UHgq/m +TwjjJo8ZhexRHss1ZNj/aziIs5Wb+3MZE1KRZOsFd27zFGT4s/J4IZaps0NAuLBEe R2sJCVfJzSVmzHBUO7n0yNUBa3GH05NVl2nVNEu0= 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.9 064/129] net: lpc-enet: fix printk format strings Date: Thu, 3 Oct 2019 17:53:07 +0200 Message-Id: <20191003154347.943170682@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191003154318.081116689@linuxfoundation.org> References: <20191003154318.081116689@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 8e13ec84c5381..9fcaf19106335 100644 --- a/drivers/net/ethernet/nxp/lpc_eth.c +++ b/drivers/net/ethernet/nxp/lpc_eth.c @@ -1374,13 +1374,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); @@ -1427,8 +1428,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;