Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4971576ybl; Tue, 14 Jan 2020 01:07:22 -0800 (PST) X-Google-Smtp-Source: APXvYqxpzsrty2EuLlB7l25BYNdrzzS0IURBE8rSZfDO0auZ2eu1KVW/UNVNUHwrLAntW0Y47TIP X-Received: by 2002:aca:ba88:: with SMTP id k130mr16668324oif.167.1578992842662; Tue, 14 Jan 2020 01:07:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578992842; cv=none; d=google.com; s=arc-20160816; b=lWmWduAFamG1+KZSRwOOfeGqG4grAN4aEeZly1n8PbHdBsovH/drmaDYoMIQnawHbw nIXS+npwFiHYNdAydb5oYj+oNepw78DTBIrs1r30Alpuo2UlJDkAcrO1wZR9z3SZ3qH+ KR2DISKcwnoL6QVJdTfSFmASNy5ozost7Tt+NGwUVa4rVsEJiSHwcdMGLay9lH6RMfP1 hrXTKoGPplxZDCd+5jNZokxEeq8a82TPmQcUM9wTt4Zjy2YA56unFp4IEYBjn15sEJNu TAVpjvyO4u4bsjNuEV15b2eqUsKnS/yBGIa1V+mlorNE1juMHI30WTbQdFeuzgeeYCmR 5Qmg== 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 :message-id:date:subject:to:from:dkim-signature; bh=V4UDuQ0iLYFAcljDtU6eqvxwJoJwA2nLa5hMZYa7iTI=; b=sSO3U9dtiB9Ryc0cmDOEDHxs7fgMytHFt/NhXdAth1fJ9VD2ktwMdhhskFL0UFjiD1 4eC1vC5TKQJAWvARHKcMuWRyanq2gqhp72j6QHlSV4qS3tby6THEuR4V+5CCL0va13OC PealH5C7CtzMCammrr1VL4LcE6vC+sgald1N8Mv5wklIYaxkHYUpDYVeDGUSXd5M4AWX 0TEUU5osO1DuE+6IV5dtSJOBJNcr3KHSXVKSaJLC/uM+X6J7Wk3fWiXAcHWNNScj/RdP xMYb3xUztiwNGY/IX3QO2QPWdNe9Ftygdz7fPbBZi/cEal0LPFyAz25OM8bdoCqj1UuB rDfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=xBzALEYW; 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 z14si6993112oih.89.2020.01.14.01.07.10; Tue, 14 Jan 2020 01:07:22 -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=xBzALEYW; 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 S1728558AbgANJGS (ORCPT + 99 others); Tue, 14 Jan 2020 04:06:18 -0500 Received: from mail.kernel.org ([198.145.29.99]:45140 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725860AbgANJGS (ORCPT ); Tue, 14 Jan 2020 04:06:18 -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 74F3C2075B; Tue, 14 Jan 2020 09:06:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1578992777; bh=ktitPwpINdb7kf8coUvwzu/zTyz4WiGC9/yS2YXnWbA=; h=From:To:Subject:Date:From; b=xBzALEYWggLEPVN0C0sYgPtF2g9zm2aT+4ajRu689psD1Fpn7Miyatn+JWWcFJd76 UCD76aeyI1Er7/WfyT3IIN7vMIedcEp46TZDGAmj/Et+gPVOxrLDWwF1paWLr0VL8N Xn8gMPYj4/svJ2cgF7OhnevThf/l88keZrhZ4dnc= 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 1/4] i2c: pmcmsp: Use proper printk format for resource_size_t Date: Tue, 14 Jan 2020 10:06:02 +0100 Message-Id: <1578992765-1418-1-git-send-email-krzk@kernel.org> X-Mailer: git-send-email 2.7.4 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-pmcmsp.c: In function ‘pmcmsptwi_probe’: drivers/i2c/busses/i2c-pmcmsp.c:276:25: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 3 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-pmcmsp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/i2c/busses/i2c-pmcmsp.c b/drivers/i2c/busses/i2c-pmcmsp.c index 4fde74eb34a7..9a2acf09f1cf 100644 --- a/drivers/i2c/busses/i2c-pmcmsp.c +++ b/drivers/i2c/busses/i2c-pmcmsp.c @@ -274,8 +274,8 @@ static int pmcmsptwi_probe(struct platform_device *pldev) if (!request_mem_region(res->start, resource_size(res), pldev->name)) { dev_err(&pldev->dev, - "Unable to get memory/io address region 0x%08x\n", - res->start); + "Unable to get memory/io address region %pap\n", + &(res->start)); rc = -EBUSY; goto ret_err; } @@ -285,7 +285,7 @@ static int pmcmsptwi_probe(struct platform_device *pldev) resource_size(res)); if (!pmcmsptwi_data.iobase) { dev_err(&pldev->dev, - "Unable to ioremap address 0x%08x\n", res->start); + "Unable to ioremap address %pap\n", &(res->start)); rc = -EIO; goto ret_unreserve; } -- 2.7.4