Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4971769ybl; Tue, 14 Jan 2020 01:07:35 -0800 (PST) X-Google-Smtp-Source: APXvYqzP6V4GOZMcMNt5b+nSJOGsxdX8ZerUz8TuUOxGDe3bKqew/YhbZJXKkHNDGROmZOewtGrt X-Received: by 2002:a9d:d0b:: with SMTP id 11mr17024482oti.287.1578992855102; Tue, 14 Jan 2020 01:07:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578992855; cv=none; d=google.com; s=arc-20160816; b=nbrZ9vMtTe+XGRxQZZddtkXeNPbil5IryTqZJesdQ3mNDuFZJ8wgJEp7U5EbsFSOvw JrnId5pZvTG9ei+F/z5PRX1sF/8V9ceRnUxNzK/+L3HHEZ1P15EqVszblE2Aei8K06yB OZd4LJyCHTAxFvJ9c94KYwp6M63htcmSqY5uY9vFmBj6xnCjqym2u7glj4fo4m73s9NA oBa1pSNn6VtpTrKlwAV3SiVLLM5+G5jYo+U7SL9/BV3ZuTUESzfqSDIhlu9X8u3fJl2Q amprUKp+kepXfu0VI4bK/Ydgfm2ltEyvIOS7kMqITKlu4wcbaYtmV1tPzQwOHRztO5tY uqYQ== 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=++d+/FqaG0++zeJQTvi7zYm4979u+wtUWizl9v0CDBI=; b=Q2b/rXAS/nc9yWylx1mBkYH0XCbL6uWuKI1N4H6Hi8I36Wq0PxY9mem/JWMpNAeJhl T2UQzxDOi6Kq/3SZQo1uJeWH17N9Ym9cInl4BaLJFy+wCN4t2zB6Jsq1aajiSduBhaVz yVAgAYC0qL6YwDTG1tTWgvMtSURyGOdSk5FSQ8sN44GEfKutKggBuKwUmJPKMmcweG1B xeZk56ZbN4k6WZyYAOhFFotPgM/gIDV5ueaSWWeZ4178vBsZp5EbuEUcj180HCz/xH+y UMhvKYnSpzIBPRVACQL9qWzdWUyCH5M+Yf8RudkS8Lxu98zYO2waxrvcxAwNLH/AMCRy QQ2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=gaul7AfC; 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 x207si7249319oif.30.2020.01.14.01.07.23; Tue, 14 Jan 2020 01:07:35 -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=gaul7AfC; 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 S1728953AbgANJG0 (ORCPT + 99 others); Tue, 14 Jan 2020 04:06:26 -0500 Received: from mail.kernel.org ([198.145.29.99]:45354 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725860AbgANJGY (ORCPT ); Tue, 14 Jan 2020 04:06:24 -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 426A324655; Tue, 14 Jan 2020 09:06:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1578992784; bh=xHEq0cIdKqev7KZs75cgmcmftzh7L7N3M6qGIbXNz8Y=; h=From:To:Subject:Date:In-Reply-To:References:From; b=gaul7AfCo4oNymqOZlbeiUthJaRz3l3JrhQqXcivr1KLkJIUe2AuQxY95K2XO7deh kq8I+w6VvUE1rOAaWom1uTtBRLo5wE6mD77Ka3bDlaArwGa712UU4D0k5aYwzixBkq kdF/mhDlq5auEQrNSOTzx8W1uQ/iJo+ipm+wIND0= 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 4/4] i2c: stu300: Use proper printk format for iomem pointer Date: Tue, 14 Jan 2020 10:06:05 +0100 Message-Id: <1578992765-1418-4-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 iomem pointers should be printed with pointer format to hide the actual value and fix warnings when compiling on 64-bit platform (e.g. with COMPILE_TEST): drivers/i2c/busses/i2c-stu300.c: In function ‘stu300_wait_while_busy’: drivers/i2c/busses/i2c-stu300.c:446:76: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] Signed-off-by: Krzysztof Kozlowski Reviewed-by: Linus Walleij --- Changes since v1: 1. Add Linus' review tag. --- drivers/i2c/busses/i2c-stu300.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-stu300.c b/drivers/i2c/busses/i2c-stu300.c index 8c3e2d409d63..42e0a53e7fa4 100644 --- a/drivers/i2c/busses/i2c-stu300.c +++ b/drivers/i2c/busses/i2c-stu300.c @@ -444,7 +444,7 @@ static int stu300_wait_while_busy(struct stu300_dev *dev) "Attempt: %d\n", i+1); dev_err(&dev->pdev->dev, "base address = " - "0x%08x, reinit hardware\n", (u32) dev->virtbase); + "0x%p, reinit hardware\n", dev->virtbase); (void) stu300_init_hw(dev); } -- 2.7.4