Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp638240pxv; Thu, 15 Jul 2021 12:09:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzNPgHoC6y/TlOvhotaSAfY2J8URdwENH8Aej6jwwA8irDwjT9Jrg4Q09PRbKdjLPe4RUEK X-Received: by 2002:a92:509:: with SMTP id q9mr3532063ile.239.1626376170484; Thu, 15 Jul 2021 12:09:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626376170; cv=none; d=google.com; s=arc-20160816; b=M5B+rYq/F5bK7ShLGum9gNt07NyITJi65nGga4i3pXE9tEF3KWTYzwrPBmasd5nxmb vh4luiZhAzPBwsCmfBrjW6FsklW9VxJDn8/DUaJ4A0qNDSF6CfO0rtRWJ8yHZ8CvDDGU bF/M/l1fDugozu8nhy0e+SyrhlvCyKbzx5XTYUIxREd4GBjllpuv4qDW9cx7MHCEHgLn VTFm8V+nSU2ytSHlea2HXc5U1nd9QcwR8c6sIn0/KNAsq7C/5XHfJFhFJAlTq157Kbho pt5ntkU5XlMBWR37iVfPb0r7N0xeoZvuLWnmqJByb5syoptRIBL9o592E33kyWs/Ql6U joqQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=ATAHW+O95eyA29evpa4tEtLoEombZumlnmwaoWCbV+w=; b=FzZxmj0DHJmNH3HaZmLwK+zFIzyz+RQuxVaMKU8UAWdDzjVko+OEAyWVX/5Ey9V+1g F2AFJS1D4nrePlBh17IFLlSKJW5ywbHpKVzHu9hPhhcxC53zBT0Vcfu0Y+7f0CZe915C CLTWykOHhQ/WJAvtK2wA6e9dggkw0Y9RoXyrBIAHZ1pzOU8QRrR+Hd8UAC1tudZ13lu9 tL0OMk2wvztNoG3GjXd6wJT94C5VdOVJwy1LFzwQuhAYjOQ+49Y8THxQ2lZbj1dE65/2 KfvqpnHcR/pJ3icCm0RTfBnhcGDY0Tg/xAooBmj5jUhpiLTTrViSSTGbk0fPRBRSvVw9 P3BA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ySXL+vcq; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z15si157913ilh.22.2021.07.15.12.09.17; Thu, 15 Jul 2021 12:09:30 -0700 (PDT) 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=@linuxfoundation.org header.s=korg header.b=ySXL+vcq; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243920AbhGOTKO (ORCPT + 99 others); Thu, 15 Jul 2021 15:10:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:34266 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242368AbhGOS7i (ORCPT ); Thu, 15 Jul 2021 14:59:38 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 101F2613D3; Thu, 15 Jul 2021 18:56:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626375398; bh=ejLs/9B8myPw5TPe2fDeG1oNOhZQi2VNiScpEUlppV4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ySXL+vcqzcZ/bAlgfVfCt3lHrVSsU80L3OVGGY4J+YgBmVWwOhICgiKt7z5M+pPGV 8vZXu8eYokTGu6+vYdvDoYPM7BJRF6ifwumnGJiEh9ksbyHtZEpBNcM7T6aOVjwaKF wMOH6JaqydClIWI2yMaeHney62P2w84tGxN7wbA0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, YueHaibing , "David S. Miller" , Sasha Levin Subject: [PATCH 5.12 028/242] net: xilinx_emaclite: Do not print real IOMEM pointer Date: Thu, 15 Jul 2021 20:36:30 +0200 Message-Id: <20210715182556.830004577@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210715182551.731989182@linuxfoundation.org> References: <20210715182551.731989182@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: YueHaibing [ Upstream commit d0d62baa7f505bd4c59cd169692ff07ec49dde37 ] Printing kernel pointers is discouraged because they might leak kernel memory layout. This fixes smatch warning: drivers/net/ethernet/xilinx/xilinx_emaclite.c:1191 xemaclite_of_probe() warn: argument 4 to %08lX specifier is cast from pointer Signed-off-by: YueHaibing Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/xilinx/xilinx_emaclite.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/xilinx/xilinx_emaclite.c b/drivers/net/ethernet/xilinx/xilinx_emaclite.c index 007840d4a807..3ffe8d2a1f14 100644 --- a/drivers/net/ethernet/xilinx/xilinx_emaclite.c +++ b/drivers/net/ethernet/xilinx/xilinx_emaclite.c @@ -1193,9 +1193,8 @@ static int xemaclite_of_probe(struct platform_device *ofdev) } dev_info(dev, - "Xilinx EmacLite at 0x%08lX mapped to 0x%08lX, irq=%d\n", - (unsigned long __force)ndev->mem_start, - (unsigned long __force)lp->base_addr, ndev->irq); + "Xilinx EmacLite at 0x%08lX mapped to 0x%p, irq=%d\n", + (unsigned long __force)ndev->mem_start, lp->base_addr, ndev->irq); return 0; error: -- 2.30.2