Received: by 2002:a05:6a10:8a4d:0:0:0:0 with SMTP id dn13csp875885pxb; Fri, 13 Aug 2021 08:13:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxcl5XsiNJStNKMzhse1jzNxCO8m6p5f6hHTNHlud84keclez9pmkeKzGtj+qjTfJNlKQPE X-Received: by 2002:aa7:c306:: with SMTP id l6mr3720370edq.383.1628867631262; Fri, 13 Aug 2021 08:13:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628867631; cv=none; d=google.com; s=arc-20160816; b=Rs+iqmtKPFds8HTjeOAnlgf7mw8Rtku4TpwjBjlZHjLeYAqf0YDUto8AT+7B89/3yz UCrsPz8gybRQu4SlC2wE2QGts5qU0HDuDIF9b9RkjlZ+RJzDah/boiE1/D4ZtH8YbqEt nLpEdARODJiJIfZT5vakHDsLkgkYf/z9Y7yc/Ep0g0ZAH8lo9xNXA0739wUHJam6xe5m goyV2EyQyJPhwNrlrCK3+VEIaL9sCI8bjXltjnzhLr1uAcZ+2D/aUvXLPqi2qKBHeqsY daE28l0536Futy85QsyJ6PuPinERDNWM0yahiEAn6GuY8rC6HbPPI7YPPlh2aL5fxWtZ dZzg== 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=VVl2faSNfe5A8DPrtkQviAea96Sntg8LqxKHJzTPSz0=; b=HhACPmw5y6SJIAtUvA3ZJEiQnVj/PBJ/9reLaXjmlWStM+KP9MYe1a0PpFw5hMywer qKIh180JqkgR2k1lIqje7bDKAEXy8KyKmIBwB6j0kVvkttJ9QPt1J7Id7r0CRlF3OUod 3EsWA9XzhJn6Fj5QeRrDA55zHlTXvqZNRSPxRn1aJ6+weh1yDdSP1mJ99EOMUueI6yIR 7yvPh8d1KR5YEK6WVvkF/U94jGDv7vD4M8qDIb8EkjFend+0lOgbWBWAp+ZdHdbzvBPo l7qjaJ3bO61eqsiAVN4z1f6XsRiwXiXdZO8DukS7qKYblVpB3EomFMK35KkFiwvFMuMM fqeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=BQKnszxv; 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 w3si613352ejq.421.2021.08.13.08.13.26; Fri, 13 Aug 2021 08:13:51 -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=BQKnszxv; 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 S241511AbhHMPLb (ORCPT + 99 others); Fri, 13 Aug 2021 11:11:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:54264 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241525AbhHMPKq (ORCPT ); Fri, 13 Aug 2021 11:10:46 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A97296113C; Fri, 13 Aug 2021 15:10:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1628867420; bh=W0/MYBaEexdC/3wudle8jYPltHR7NjtUMaUCvF7h3s8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BQKnszxvfwNPpm1po/jcWRlt7mTz7Wk2eEdZxkdoA2Pp33GAr6iVCJm1/LtdYgD2o Atnmq7MGu/i7b/nB8R//VL7NeW6ZMhuMALjNQopDHfyBRyExBy2SS2RFiFi6dA2wan JmosrG56169KFSasu67NSovCRVhq/r357wLaxQSU= 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.9 29/30] net: xilinx_emaclite: Do not print real IOMEM pointer Date: Fri, 13 Aug 2021 17:06:57 +0200 Message-Id: <20210813150523.386748331@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210813150522.445553924@linuxfoundation.org> References: <20210813150522.445553924@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 @@ -1179,9 +1179,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: