From patchwork Tue Jan 14 09:06:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 11331629 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id F3D2B139A for ; Tue, 14 Jan 2020 09:06:37 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D1C7A2075B for ; Tue, 14 Jan 2020 09:06:37 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="VRXRUBYf"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="oNOtFLJe" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D1C7A2075B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=5bLr6jahWYPDcxAR8vSSkdUFmGKPO7jSxUgleFrH3FY=; b=VRXRUBYfKKAOgh deC/YS4yYIrGR+nG46QBogR4xxZmVmJcBzSmO0mM0/T1zAZsnggnoFLksnvB/bkbNKx2jeXpIn9XO yKlcTZ4xf4R20KoV3s7cXvjB3qQ+PscHu0V1kWRg9DfaOjRCsZ3IP9tNbyUBJs2j1WjX71Cljsam9 IGnTLTA+/fwO6SEgDkbfNYSy1Sv5vr+D3gYuXb7RjUDbkSqpnBX7egN4oDvELBqEyaCJU/HxGwbpH kBYrtGvWmS0W4aciC8eItp6Sqxju6dwsT6i3PLn9RnmRDTSQz7FC/6MImWOAsNXZmouQaoLMoMoWc EF+AQw9cuSDH5W8If1Bw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1irI9l-0000m8-5s; Tue, 14 Jan 2020 09:06:37 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1irI9T-0000ZZ-Tg for linux-arm-kernel@lists.infradead.org; Tue, 14 Jan 2020 09:06:25 +0000 Received: from PC-kkoz.proceq.com (unknown [213.160.61.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B7378217BA; Tue, 14 Jan 2020 09:06:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1578992779; bh=mPgCwspC2Gdb6VmnE5JZXmFnOgnZUW49uwGxw9FEZbI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=oNOtFLJe/GXxJ5ySHI6C6N7+iMc6zu29dmwk+7GowZAJ9Yb1mon4kJiTQzxeckCLs fNoHvgdx6w6adIp7DTTYmfCIERIAXjkKqz9dY5Qt3/Th4hx+6i/gFO5/2SH2yVn3Vw 2NVetF0s5/Pk1OaJjahGIkY6KQlTJGS92smKlhb0= From: Krzysztof Kozlowski To: Vladimir Zapolskiy , Sylvain Lemieux , Linus Walleij , Krzysztof Kozlowski , Arnd Bergmann , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Wolfram Sang , Jean Delvare , Jarkko Nikula Subject: [PATCH v2 2/4] i2c: pnx: Use proper printk format for resource_size_t Date: Tue, 14 Jan 2020 10:06:03 +0100 Message-Id: <1578992765-1418-2-git-send-email-krzk@kernel.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1578992765-1418-1-git-send-email-krzk@kernel.org> References: <1578992765-1418-1-git-send-email-krzk@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200114_010619_975224_C814610F X-CRM114-Status: GOOD ( 10.75 ) X-Spam-Score: -5.2 (-----) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-5.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at https://www.dnswl.org/, high trust [198.145.29.99 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.0 DKIMWL_WL_HIGH DKIMwl.org - Whitelisted High sender X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org resource_size_t should be printed with its own size-independent format to fix warnings when compiling on 64-bit platform (e.g. with COMPILE_TEST): drivers/i2c/busses/i2c-pnx.c: In function ‘i2c_pnx_probe’: drivers/i2c/busses/i2c-pnx.c:737:47: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 5 has type ‘resource_size_t {aka long long unsigned int}’ [-Wformat=] Signed-off-by: Krzysztof Kozlowski --- Changes since v1: 1. Use %pap, not %pa[p]. --- drivers/i2c/busses/i2c-pnx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/i2c/busses/i2c-pnx.c b/drivers/i2c/busses/i2c-pnx.c index 6e0e546ef83f..79bb1c68d485 100644 --- a/drivers/i2c/busses/i2c-pnx.c +++ b/drivers/i2c/busses/i2c-pnx.c @@ -734,8 +734,8 @@ static int i2c_pnx_probe(struct platform_device *pdev) if (ret < 0) goto out_clock; - dev_dbg(&pdev->dev, "%s: Master at %#8x, irq %d.\n", - alg_data->adapter.name, res->start, alg_data->irq); + dev_dbg(&pdev->dev, "%s: Master at %pap, irq %d.\n", + alg_data->adapter.name, &(res->start), alg_data->irq); return 0;