Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4971666ybl; Tue, 14 Jan 2020 01:07:28 -0800 (PST) X-Google-Smtp-Source: APXvYqz6a1iUvP7kk+QRqG3FVCMLWf1xuo4tedpJNpuE/C+vV8FO16u9T5Y5q80jhd0snImC39l3 X-Received: by 2002:a05:6830:1e99:: with SMTP id n25mr16730908otr.67.1578992848020; Tue, 14 Jan 2020 01:07:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578992848; cv=none; d=google.com; s=arc-20160816; b=KPbwn3O8bjG2odZBFBQdeLIb+oGCKY7TidZjVr7RCQDNonmGtktlRQCp85AyBCk1/4 Jw/5PqMrl4VOY6LRoU8I5AH9fFVDW+plhMssRPVClR9U5Zbf8S4PFytJ6qzu+HFaMgE/ 7QvBQ1R3hsG+fM5ipDzpzPveh852+m3ixoaxxDVYTCpT5pEhB18rp/JVDY7yDXFzZvOv wB3FqueAOY8TxXGMR3de8EKhO2vNUKZb+O+P1D08rph9spVZZi7ajJvxCZbKfG38AO/z oe+JDgv+W2eNuCqE7DunFm2+7FjZLYHRtBkaxq8haYourJQT1wNlhSmR3F838uLKZ4lb 6X/w== 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 :references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=IyHzhpNxqeiHjx6Jw4hNEBmc4/TKMFhQezsIek/rTaY=; b=w0zW7rSMegwNUa4b/DeGeTm8xK0d0W6uwaFrfsR73/iZDJ5H+0XlIIWhHPrDcaTzD4 +b1roILXNkZuqeiDVV+4Mpaj92CkiowMZrFuAclfWfJV5oA3w59NDEyZqoIx2jIif5pg CteMqe9Xh5Pa7bVp+9ocXjYIx1L8XkLO0MRHS5JKqGzXWog1lJctWtzC8vBopfP9VAk5 A9Ggl9gmlVGyX9AvebyVoctd4k3y4PC/YEhPeqt0FND2vfk4Y6ZRJXzfgdbp0a6TLoTh b4wEKZ600MknASPI7RdD+xHZY3YQx8tZOsGSCsvV+XfErP021EjBv1iTCs3dA0KAb5Le 8W1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=oNOtFLJe; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t20si7905215otr.64.2020.01.14.01.07.16; Tue, 14 Jan 2020 01:07:28 -0800 (PST) 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=oNOtFLJe; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728885AbgANJGV (ORCPT + 99 others); Tue, 14 Jan 2020 04:06:21 -0500 Received: from mail.kernel.org ([198.145.29.99]:45238 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725860AbgANJGU (ORCPT ); Tue, 14 Jan 2020 04:06:20 -0500 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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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; -- 2.7.4