From patchwork Thu Oct 3 15:53:18 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 175088 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp511897ill; Thu, 3 Oct 2019 08:58:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqwY9rdhVsqPoMFmTXI8mWdULuxrIX3gAZJ1TE6YHITZfUXyHCGtx7mERhWFt/v/YHmMjJ6i X-Received: by 2002:a05:6402:709:: with SMTP id w9mr10241502edx.85.1570118286800; Thu, 03 Oct 2019 08:58:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570118286; cv=none; d=google.com; s=arc-20160816; b=UPQw0fKI2AUOSxBJBfeYgP4TIDiUVLSvqwUDLy5aEayZSF/RUohS6tNl8Ch2Sd4hgX 10YKpAXxYIWSSbXARaY4teMh0UH4m+ohEadGdIr3u86zGp5UseA2Tkt+rKdjU/tI13iX oLS43yCaNMHjZo3YqlE+p0kAdGlXWQsE7rUft81h9Z0t3xwVd08/Ndplog1vpozf0/Q3 X4jA6KFFcTcZylz+Yudworr7AKt15FZRKT8NvDZ7/g1CIhomDCndGy4Zbu8jEqQJ7DP6 lI4hCp63r4Rkv+uqemeLZ2Pcw6o1v+JD1IMAkzknbpK/qeXhUu9pOFV3eunGVfjcxEnj 9sGw== 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=3Oy1rxc3ijmmKtCQrrN1LBHIkG8mGclPIFJKKisFt0g=; b=tI69Ot+gDmZiEHAknM0YNSkTh2cPha2slgpWXj6eNNXjyf4Jqdb/inHerNcV7xq/a8 RM99VjWYS1EunOFs62IwvinAkIsYCIMM7NfSfQyekovfUkXyrrVDkt2FweE3cauUjq9h sRecnCIwzXE+vEwAM7DbsCc+vkF7pk4MU/ubOmUCMrHdBKdO+qzPxCw4ri7epSimAWWa ok6/fYhJCOLkO0sDmEGJj7Vr5oU7r3joJbpkXklP5YB/nasHMP78OLYgcqQUal7vg9p5 5Z64hK7SsKhS7MRVy19aLZ1oNJCyhMe8I3xkgBxjqWQqBfaexOgZX0ZKKnI9uYADmQwn tvqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=jQDZO34p; 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 y6si1438206ejj.113.2019.10.03.08.58.06; Thu, 03 Oct 2019 08:58:06 -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=jQDZO34p; 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 S1731058AbfJCP6C (ORCPT + 14 others); Thu, 3 Oct 2019 11:58:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:40658 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728600AbfJCP6C (ORCPT ); Thu, 3 Oct 2019 11:58:02 -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 40CB721A4C; Thu, 3 Oct 2019 15:58:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570118280; bh=8EYDPjW/ny08MiufbNXd/ZBmvdgjqlh9PNGhulbyLos=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jQDZO34p6NE2+LY5cuKEu0y7kiHkLOrVT9MNefi68c4StqZ3XtUKPkLqYwev0h8Fj oW6l+HsRfNIDuhvybcoepr6BpfgAoCv+ykRJ+FrijGCgZmAAKyQ0Lu6F9SeFHW1jTA rdd7DYZXIh8HgKExO9X3uM0hnWuSSsKEq1nptSiE= 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.4 55/99] net: lpc-enet: fix printk format strings Date: Thu, 3 Oct 2019 17:53:18 +0200 Message-Id: <20191003154323.123213106@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191003154252.297991283@linuxfoundation.org> References: <20191003154252.297991283@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 057665180f13f..ba14bad81a21f 100644 --- a/drivers/net/ethernet/nxp/lpc_eth.c +++ b/drivers/net/ethernet/nxp/lpc_eth.c @@ -1417,13 +1417,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); @@ -1470,8 +1471,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 = pldat->phy_dev;