From patchwork Wed Sep 2 20:48:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 256342 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6B1DCC433E7 for ; Wed, 2 Sep 2020 20:49:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 49B3C20BED for ; Wed, 2 Sep 2020 20:49:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599079743; bh=/GhIFha/+TBHI6MyiiKEJbWoOQuukXfIzVKICT5nktg=; h=From:To:Subject:Date:In-Reply-To:References:List-ID:From; b=xq/c3ckMfOokMUa/fP1qoHcjtedqnP52cW2WN9d7p97vncLP8OXJVKGtlaZRivDZb 0VGUPLI1lqvs/vxmA/fhlj1q8kHINVsEy4HuCm1oBPELuvXIpTCD/e8FsT91SW9C1f AKhqwLv4nQk+ERi63lfX3psUNzpLMwGRk+XhHY0M= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726479AbgIBUtC (ORCPT ); Wed, 2 Sep 2020 16:49:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:58420 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726226AbgIBUtA (ORCPT ); Wed, 2 Sep 2020 16:49:00 -0400 Received: from kozik-lap.mshome.net (unknown [194.230.155.106]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4DD2F2083B; Wed, 2 Sep 2020 20:48:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599079739; bh=/GhIFha/+TBHI6MyiiKEJbWoOQuukXfIzVKICT5nktg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=co/qoHbiTAzDR0BKe7yk+ALRQGX6M9VQAT24HXHnyX6QT1AS2FLEr0iuuygtYDhth 2Y45ZWyWOqgzE+dgRyTu/qxPorUj+6vMKc/7b4qho98ADAFvt46DLoemA49Ytn0dSm tRYWNmq2GSRu5KeRe8fiu6R2gphLESuin1E9h640= From: Krzysztof Kozlowski To: Ulf Hansson , Ben Dooks , Krzysztof Kozlowski , linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 2/3] mmc: s3cmci: Use proper printk format for iomem pointer Date: Wed, 2 Sep 2020 22:48:46 +0200 Message-Id: <20200902204847.2764-2-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200902204847.2764-1-krzk@kernel.org> References: <20200902204847.2764-1-krzk@kernel.org> Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org iomem pointers should be printed with pointer format to hide the actual value and fix warnings when compile testing for 64-bit architecture: drivers/mmc/host/s3cmci.c:1355:46: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] Signed-off-by: Krzysztof Kozlowski --- drivers/mmc/host/s3cmci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/host/s3cmci.c b/drivers/mmc/host/s3cmci.c index dcd458649338..3fb597095079 100644 --- a/drivers/mmc/host/s3cmci.c +++ b/drivers/mmc/host/s3cmci.c @@ -1352,7 +1352,7 @@ static int s3cmci_state_show(struct seq_file *seq, void *v) { struct s3cmci_host *host = seq->private; - seq_printf(seq, "Register base = 0x%08x\n", (u32)host->base); + seq_printf(seq, "Register base = 0x%p\n", host->base); seq_printf(seq, "Clock rate = %ld\n", host->clk_rate); seq_printf(seq, "Prescale = %d\n", host->prescaler); seq_printf(seq, "is2440 = %d\n", host->is2440);