Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp5458582pxu; Tue, 22 Dec 2020 18:41:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJwvLiUX5d8gb042i/XydtwqOmZYqKuj80jldLqe9SBwSPO/b8i0I9r00aB2ljvugOODeTjA X-Received: by 2002:a17:906:447:: with SMTP id e7mr22163773eja.172.1608691288965; Tue, 22 Dec 2020 18:41:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608691288; cv=none; d=google.com; s=arc-20160816; b=LDwkt6ZeQ+LheOwtjfQoTz7cB0W6pLCQStn/dEc5X7q7ohlr29oSw9leKeWeg9uuYm djDuGxotz+Y7Tz+7IV3NRyc0e7TkhlTfZHteGKDhIgOFxaih8JdEtyQ3FXrS8CNeGfOX z8AmU9ocAfyRVoVmsCabfNG7BNFsvTStIUroDuQ7lKIH6CBU3Yx2+oPQkhQ7TJ7TcjcK J5Wn8yE7Ef9Iq3dARXYDjiAhmY2Qy8L1h/j23jahAfpUqZRmLXpp1llfstUvfHb4YxvL 3iGBL6KBV2PzY3DkBFnPq4BiySnQSKkkRA8QKNT//m6sa3Au/yOlrSFhuG/2KrjclvW2 Gk8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=DLktJbX7i+8nXkgOO5ZXCPcc7Ov5v2Lii2Z2eFfn1oE=; b=zDSUEseslU6g6wonaQyiyIbkyrRjxVc3shtr2O/snz7dSXOcij6n5AhB8wumms60Ep nZo4O65XWq4IcrKX8gQD0k/C5J8cgcCYnr6VIWpWoNqelalYbWJ8KpiBJ3/Zs7FWXagX sPd/Tid/8JPN5hzWZO78qiCfNR7RojOabVI2MEjX9/Xg6I66mnWS3bEr6E6hIBt2R0A+ evz7Xa9yPKYgn2gF3CHEPb1GTmCbw3HA5V9j9Cv0LHo1KH0+qWsUbB4Y1F6h+YiqarpN TzqsYoa4xbhQaqJOaNC1LdFmQcHBSu4XQ5AuVrKNMUW6ojs/T64pSQc6lLpePpithhHq kzCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=iNlSmq4S; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id ch11si12300911edb.384.2020.12.22.18.41.06; Tue, 22 Dec 2020 18:41:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=iNlSmq4S; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1730894AbgLWCjt (ORCPT + 99 others); Tue, 22 Dec 2020 21:39:49 -0500 Received: from mail.kernel.org ([198.145.29.99]:52102 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730062AbgLWCXm (ORCPT ); Tue, 22 Dec 2020 21:23:42 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 45263225AA; Wed, 23 Dec 2020 02:23:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1608690207; bh=K+bioDO4Ah8YGIttvteziuXMngBp1zEMtnN2NnFVgUU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iNlSmq4SOvFwvfGXd5ljoOKdmKCC+BD7bZ3h0nK/IA+KRBBjzXZyIoKfhlQxW+fE2 WKcTDbRd4xWBbTldiaDD+rtqWc0irahz2ndgaYOC9hli1obm7iy33aHIkntfCynbtQ GVcRcgXXq7q9nKKxrpayOJKi0PxPf2FL6TA2I6SpRkG8a0FBvL5iFOEhNGUjDNEjsp xjsTH1hTMJzkcQFxieKHN4DpUrukYI651LOwPhEiSYrbajGyFcbGkKBOSe66sFivbU vN7kCG8JMXA6hOqQLrMGDrW5e/xHDdWZHJ3wQGFrOZUGl67ukXueKFFIWNkOoFIVXF dsp6D6mv9pLqQ== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Krzysztof Kozlowski , kernel test robot , Dan Carpenter , Ulf Hansson , Sasha Levin , linux-mmc@vger.kernel.org Subject: [PATCH AUTOSEL 4.14 27/66] mmc: tmio: do not print real IOMEM pointer Date: Tue, 22 Dec 2020 21:22:13 -0500 Message-Id: <20201223022253.2793452-27-sashal@kernel.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20201223022253.2793452-1-sashal@kernel.org> References: <20201223022253.2793452-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Krzysztof Kozlowski [ Upstream commit ade8e9d3fb9232ddfb87a4bc641b35b988d9757b ] Printing kernel pointers is discouraged because they might leak kernel memory layout. This fixes smatch warning: drivers/mmc/host/tmio_mmc.c:177 tmio_mmc_probe() warn: argument 3 to %08lx specifier is cast from pointer Reported-by: kernel test robot Reported-by: Dan Carpenter Signed-off-by: Krzysztof Kozlowski Link: https://lore.kernel.org/r/20201116164252.44078-1-krzk@kernel.org Signed-off-by: Ulf Hansson Signed-off-by: Sasha Levin --- drivers/mmc/host/tmio_mmc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/mmc/host/tmio_mmc.c b/drivers/mmc/host/tmio_mmc.c index 64b7e9f18361d..3b96c9cebbafa 100644 --- a/drivers/mmc/host/tmio_mmc.c +++ b/drivers/mmc/host/tmio_mmc.c @@ -109,8 +109,7 @@ static int tmio_mmc_probe(struct platform_device *pdev) if (ret) goto host_remove; - pr_info("%s at 0x%08lx irq %d\n", mmc_hostname(host->mmc), - (unsigned long)host->ctl, irq); + pr_info("%s at 0x%p irq %d\n", mmc_hostname(host->mmc), host->ctl, irq); return 0; -- 2.27.0