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 KH X-Patchwork-Id: 175132 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp555901ill; Thu, 3 Oct 2019 09:29:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqyPrYJXi9/1t9/CZrq9T5TstGsqpXEFwsnbmaW+7+N+nVrwhYc2Bre5tnN3VcxMSohJPYaK X-Received: by 2002:a17:906:f204:: with SMTP id gt4mr8443563ejb.299.1570120149465; Thu, 03 Oct 2019 09:29:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570120149; cv=none; d=google.com; s=arc-20160816; b=cEPCngAkwebi/gyM9B0mj/wXh+djvw3lVB01FBpw6SRLM8p8pnhc3MYu2PmUEfE3bf hgpAn9roQ9H8c4hnBgUiUrd9gm57oB1b8AZKDtAEoHTaNG6kbNXi1ie0ZzvcbZLHLoOM 9OVORXX7hQC5DJ1FekHs4ba3+yx1UFuGgQWTPfraWWDh+1jublQyvrqvBGVUkAXI0sCv FR3vVPIu6cv5GCsTxPapJ7/n2cxxxgp2JTZYk7yfz8tznJ9Pi7Lwx85npo00JqkTAm6e GtZ2UBtbDcntZb+p1vMXyRBP1W6k8XZzrkR2K2lWX+kuf8MoG8upvIDZ503KHKmtHw2b kxyw== 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=Mzujmql6nNmQS2xYdlQ6Pgvh5rwAoIaLpBvpCsPBpP8ZnyLSTC2uuUZgxViSGq+OE0 I2ZeQ0JasrOo3IqRp7uKfuNie5lpVmF5uQiMgdNHhJTy3OTocq+jqphtP8I9z/2mSNtZ 386WqY1LpnEOVBfBzZsASmv5IDh1kV7ei2qjrH+WgJl19qV2QQoFnZzulGuVNOkdWBbR VLh+pTu5oMaNRoghhMU9VS1Rw2fDJBhIg56y+dAa6UNdjZSgr19wHwbc7iP3ch83DnLV +U9cnE8uDz9hAank2KnapTUZAmQfko0AxhsjY1J4u0R8ArQRPIrdzek96gXc4w90hSie /Uvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=eKcH2ppd; 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 c9si1788904eda.229.2019.10.03.09.29.09; Thu, 03 Oct 2019 09:29:09 -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=eKcH2ppd; 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 S2391562AbfJCQ24 (ORCPT + 27 others); Thu, 3 Oct 2019 12:28:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:33702 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389668AbfJCQ2x (ORCPT ); Thu, 3 Oct 2019 12:28:53 -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 F35D520700; Thu, 3 Oct 2019 16:28:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570120133; bh=ljyOOYLOrVHKPq0GoGX1yqA6Ygi+ssZEBM2nuLc3eP4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eKcH2ppdomBg/WpZHDi3KGWzVtx4c6nagUovOpjMvmDfhNzyGJ6kUlVDGnQi4wZmb w+m4VC6Ynt7uJUrumQ4cGJ6/yeSFsaaAlqWvG6lsmC4ntip9xDrTPNResqYicYznqe oF1HxLpXxteF/c04sAH5Zt4Gf0/GmMmTQ01sR14w= 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.2 108/313] net: lpc-enet: fix printk format strings Date: Thu, 3 Oct 2019 17:51:26 +0200 Message-Id: <20191003154543.497387495@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191003154533.590915454@linuxfoundation.org> References: <20191003154533.590915454@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);