Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp652419pxv; Thu, 15 Jul 2021 12:31:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwtGQy9PQUXK1msBRqz1nvMS0LUsYm059UT/HwmCC6as+G4waofuN7m5AplmvuBk8CUM7Iy X-Received: by 2002:aa7:db54:: with SMTP id n20mr9234369edt.21.1626377517425; Thu, 15 Jul 2021 12:31:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626377517; cv=none; d=google.com; s=arc-20160816; b=dI+QTSKq9OdK+fr6P+5mSEQ4K98xJy7PRdMuePEOg6a5PR1UPzGohkBHXp3t1EOR8F ftQkGFOmlygTu61AXjImSIkM7BGrD/gGGk4m02awQob61XrAuHRpBx0nB+0rspbNBkpl oCJov3pXXUvFNL5p9ujKEl3yuIt0qAJ13a9+rZVeNiRQ30sS67e4mOTGnHxZLypUPr9e X/qZROgVc1eZYtACIrEFKslvf2JYny2MD//5FRupyrgPp2B1fokxKtAjQUy0J+5sD3om bDuTmx9Ei6GpEaOUBkOm38h8ngg5KS5wWR6wv6kTtdNEf+/OBfgsYNVGw1C6CcRuRtQB ZhUg== 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=G6ImwV6cjSZXzrxAAVBlDObBZs0T2RWT9SkxrOCxyMY=; b=UHZSQssbFyCVrE07H7m6t6yjisedDvmnymu1BWMJ39TLYSOXz6n6Ij/8zFyCHc8H0P dy6L+cWgRoNi4xQLQodtdCAKEX9+vNqwkTsNkIvXnrbxjOq1fKBResAlHmoDudRBPD2m 9yMUu0WnDtAKz5Mn0d73B6MwXRF7Qlr/RT88sAuciCJMWTrJPD2QYUhxtgkh42RYR0Lj zVvD2v5sXC205s7JnRwNT0LFvRc16hnafB9xivsngWtvfZh/HiDEgUii6ARlUuxDVMak 5sd5m9p9DqLRE70mdrms4+jFP5a2nyg6UYDf9Urt3146fI+po9UQ4fxIIpdIgBaLAyv9 f6xQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=FtCL6lmo; 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 jw8si8479763ejc.78.2021.07.15.12.31.34; Thu, 15 Jul 2021 12:31:57 -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=FtCL6lmo; 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 S1343559AbhGOTcR (ORCPT + 99 others); Thu, 15 Jul 2021 15:32:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:46430 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242726AbhGOTIz (ORCPT ); Thu, 15 Jul 2021 15:08:55 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0F6E8613E9; Thu, 15 Jul 2021 19:04:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626375883; bh=ObAFjK18truRzozmZTUYHgyUs896X41mEoMJYQq6MB8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FtCL6lmoft7P0/VQgOL3Pxr6x6P23ZVPd0dLeDZAEryedOFUbmTeLoXwNdrY2EtqS fwvQz5Mn/goyIi1BjtTZXFFwS7BWhD698/0cF1wBUMXKgYRbI7NHqfAEQqky4ZC2C/ uqNZBwngW8vphx1SAW+R/uP0RYh7ID2Gex2fNLT8= 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.13 035/266] net: xilinx_emaclite: Do not print real IOMEM pointer Date: Thu, 15 Jul 2021 20:36:30 +0200 Message-Id: <20210715182620.521155229@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210715182613.933608881@linuxfoundation.org> References: <20210715182613.933608881@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 d9d58a7dabee..b06377fe7293 100644 --- a/drivers/net/ethernet/xilinx/xilinx_emaclite.c +++ b/drivers/net/ethernet/xilinx/xilinx_emaclite.c @@ -1189,9 +1189,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