Received: by 2002:a05:6a10:8a4d:0:0:0:0 with SMTP id dn13csp959958pxb; Fri, 13 Aug 2021 10:05:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJytmaGnfxCnoMOeMF8kg846N+GBxtp6LXqxIdleNLnp/hFebF2eZykrwpQpgkaR2VPUECxK X-Received: by 2002:a92:6a03:: with SMTP id f3mr2357318ilc.43.1628874324925; Fri, 13 Aug 2021 10:05:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628874324; cv=none; d=google.com; s=arc-20160816; b=gEEkhHHsVJ85VBiQY30hH0zDZMyBg8RGFU1V51u5aqRusbzlsdO6shRlvIyA7EfO11 +pI6BVHrcVjH58CB31invJKJi14FpL32OKJdmV58cfGgwpPKY9z1cnRYIn6nw2y6AyAi ytoUTdAuNvvO2/7bTMdVt/nY5tXOOJ2mJe7+pZrKKec/VlavYppzJlLizXAHQoUUwSCx eaG1sXacyHpzPW+k5rubntaQDiAgNpyUutRxJVohZAA7Fmx2cW7uETN2CTlYyOiXF7Nc hG3daO30JY12wMcd2TnNQaBoYQ+ZZd2t9q4nkvnE9zkKibYUwPfjXeJkYnsjwOmt91iT bwag== 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=SVcgd0Oav7rkFBM53mmqGT/afm3oCpGk2OgFRproUJ8=; b=d68zuV8ysOh9rElwg9NsT1PY/EqnLvEhYixbEMBdlaQAsi35l6xD3lMcc5J3l3c9eY oTpXmSy6Gj2r58q6j1rM5NiLCcjUm6atAAh5txGo7RMXbLw1qzAkBScTDR7VZQXOLRwX 3qdZU5ckOTPf3ykRggDJZ3tDVQrc651amUm+if00gUaSFE5nGsfXgfz0Q3uHHORcofuj bn7+mkvohYE8LAd/UeTsFTU1xoMy7r1DcWHxhYCNyKET6p5XkFFCLBmz+K4EBVf89zDQ FZMMQhCSaYv9qWDdHSosyZFvRVgFCChRVkZPeFGM5I5fCq+gx1ZpzzLPRBG2qBghkZjM aZHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=uPTzO7g5; 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 l15si2572630ios.94.2021.08.13.10.05.12; Fri, 13 Aug 2021 10:05:24 -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=uPTzO7g5; 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 S242475AbhHMPOR (ORCPT + 99 others); Fri, 13 Aug 2021 11:14:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:54986 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241539AbhHMPMy (ORCPT ); Fri, 13 Aug 2021 11:12:54 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id EDE286113B; Fri, 13 Aug 2021 15:12:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1628867547; bh=jMFa+JI1ARMUY8m8MpmonXYzvx3WvDfqwRqxORLF7f8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uPTzO7g5DNlIYxM3QZlfZtlis6HnWSk+Js3t1EKYztZL8Tz4+zmdhTDj0ZXN94tBn yG02wlI8JY7WQKIzRkmfhobC4ktTTnNi7oauc6QQeXba7ONUCOEdo/1OVhskkkFl0R HRJ/y4UdlcWeY8lbgNgCpUsu1PkN2RyYqn2Jh+wM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, YueHaibing , "David S. Miller" , "Pavel Machek (CIP)" Subject: [PATCH 4.19 11/11] net: xilinx_emaclite: Do not print real IOMEM pointer Date: Fri, 13 Aug 2021 17:07:18 +0200 Message-Id: <20210813150520.437949669@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210813150520.072304554@linuxfoundation.org> References: <20210813150520.072304554@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 commit d0d62baa7f505bd4c59cd169692ff07ec49dde37 upstream. 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: Pavel Machek (CIP) Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/xilinx/xilinx_emaclite.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) --- a/drivers/net/ethernet/xilinx/xilinx_emaclite.c +++ b/drivers/net/ethernet/xilinx/xilinx_emaclite.c @@ -1177,9 +1177,8 @@ static int xemaclite_of_probe(struct pla } dev_info(dev, - "Xilinx EmacLite at 0x%08X mapped to 0x%08X, irq=%d\n", - (unsigned int __force)ndev->mem_start, - (unsigned int __force)lp->base_addr, ndev->irq); + "Xilinx EmacLite at 0x%08X mapped to 0x%p, irq=%d\n", + (unsigned int __force)ndev->mem_start, lp->base_addr, ndev->irq); return 0; error: