From patchwork Thu Oct 3 15:52:52 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: 175187 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp633212ill; Thu, 3 Oct 2019 10:31:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqwko4Puh/YMhxQFwONhGTaSwq5Km3hQpvVHHVlsnXSo8Q3Uv5n0Lxh5HKuzmM5WSFbEQ3f1 X-Received: by 2002:a50:918d:: with SMTP id g13mr10769105eda.64.1570123884258; Thu, 03 Oct 2019 10:31:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570123884; cv=none; d=google.com; s=arc-20160816; b=0WRu/TaozJwSrZ3ShBLU5n7f6YCCBsuhaG4N3fgmC55b1o7RcYNIkcC2hxx3ncdRTP aMRBzti+YQ3rOxCMBcnUlrB9Vsplw1BkMx5ZzBy/dnRNi8NVRKIJT73F4V7BgxdskvMa XGss99Gd5G4q+JtBSahTCoWxKoFGB9Adl4FLKZxFgcxiM37ETlRNDW1rw/e9W23qvz9i aU6C3QbXDryIKKh9hHqFvv8VztYlT16A8RWNA+ky7KMMlIHEmFuFZ7cUBOGvpWQqb4a7 UOW665684OLqs2irxFJGDgpCGArfu9oLYTmaTlYmXsOJ5fk+ZX14FO4uPZBTAIrEzLLA hF8Q== 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=YYGTnAeTA+iSP0PCZ0Pw/VyAfDrh4sX3Fss4DnTLwNBsEc9VIPY1lpuj7+Nl1VVI0m nNxyZbkKz2kL17rGqscrtmLmjumew3HlGneWnMGcue333b+4sW9z899Td6ZIAU84wv3u OoCqSzmKkCpBTtd0h0YLl+UjfJkAIRcG4QAAf6MesncdN02wWfU5QtphKUYOMmkkeE6t kdnncotXiWEJOURhH4pwfAumlPx+rIMBXRuZcWoNxBqJtksRL7+xjYj7JXolX3zi9LdE XjoK9HVhX/3Q560yY8RwSkhzQwTAp1v7RmyBNvoaw9WzpHVgceRd+flEwTA1AwtgPzTr NYlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=tzvFHoCZ; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-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 p38si1923627edc.449.2019.10.03.10.31.24; Thu, 03 Oct 2019 10:31:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of stable-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=tzvFHoCZ; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731298AbfJCQKR (ORCPT + 14 others); Thu, 3 Oct 2019 12:10:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:59416 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387585AbfJCQKN (ORCPT ); Thu, 3 Oct 2019 12:10:13 -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 89D88207FF; Thu, 3 Oct 2019 16:10:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570119013; bh=++ww0M8FldhONH/sKfUkcOspcDTMgTrhuVQH5MzsDWA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tzvFHoCZrr6Db+GfCUPcWT0hY2OKXqqbLXPbqvt5yFiFWHckn25tWOMZ0mCTZMxuz aR8G5JWmrPs7Sru4l/7oid0Q6uis1JVMau4qY2MqDxYfSMWyWja6EX8KQtv37AeJqs g0vq0Air8MDfoc/XjAYNF2vw0yIZvSXrJ1Ox8JGA= 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.14 094/185] net: lpc-enet: fix printk format strings Date: Thu, 3 Oct 2019 17:52:52 +0200 Message-Id: <20191003154459.576180428@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191003154437.541662648@linuxfoundation.org> References: <20191003154437.541662648@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@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;