Received: by 2002:a05:6a10:8a4d:0:0:0:0 with SMTP id dn13csp874502pxb; Fri, 13 Aug 2021 08:12:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy0aIa9zOSf5r0MZ7zRGVamFIa8zTxjPFVApABEa3XswZtBs04SrMKacUzcZKyubiC946Dw X-Received: by 2002:a05:6602:2003:: with SMTP id y3mr2361546iod.95.1628867541612; Fri, 13 Aug 2021 08:12:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628867541; cv=none; d=google.com; s=arc-20160816; b=bGWWtpKdcXZ38qxGFS2pOLWGLulOdhnmXAXvY/zgR2OKHFxMDR69C45VbnhyJO2Uof NV2e7PJOkqUKk7VcAdEThp/Dr20J9lIa7NKVBUnCTC0EaBKvDaXyRPRiML6UzDuiJR4i 24y/AJyw9EfKR0MSB4Im7CvekFduA9tlfumGbG46hNINjZ7+BKdz4+r74txt4buRzp4v JOuKH9JZWiOuVwbhhPDMEA/ALrwRVr5dbUN7YaQ/PC1vc20vDImIvkopnqEt3cqX6V1r 87dsXpDUpnc3flgRsHHFiVTOnYj/6XR6JIwrwh07gaT9ceOWYwWJkP35LH2PoQjXQbsj TLAA== 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=pjh7IRIPS3RyX+Nr+HzWNktuykBetVdWMgqvah0H78w=; b=KK9mnaXh1/pn9ohOvvulSE1mIG0axe19PMF6CvzuSFYoR33FidYGg3JfVlHSkFb/tW wdFIDx67k4h+nHl/l7nit64j1gSuR92xB5EsqpojE49Sj7pQc/uWLixrflY5YY2B+b5i 1fBuSTfjJqTooZhtFTJHupCS4/YoqwsUtMabucCPX4GEsu59ciCJHxGgh4cwTRine2Yf HPm2GbQkacn8LOncYJDXGZGePiHW4Ex1BgXd6qCJ64cytUKvijlccu7Htkox7i95cxtR 6tiW2dATDGvPeqUhcZeUDoW1xDdpXaBG2VzZOT4pNkNYA3aOFh1Nk+FkCBxsZnDfUT6P jp7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=0sZbL0tJ; 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 c26si1362395jam.74.2021.08.13.08.12.07; Fri, 13 Aug 2021 08:12:21 -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=0sZbL0tJ; 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 S241290AbhHMPKH (ORCPT + 99 others); Fri, 13 Aug 2021 11:10:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:51676 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241265AbhHMPJG (ORCPT ); Fri, 13 Aug 2021 11:09:06 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9776F610CC; Fri, 13 Aug 2021 15:08:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1628867319; bh=w5zqdW8xJdld/3wfcVHUnKPd/OFMFb+zUUZal303Fg4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=0sZbL0tJ9UCS9eGBXkZPRSWFK6KL1FWLKnQB2bnmxFgTU/RHJ6jQ2jjzgJ9dBze1q YA7ee2M9qNj+YLetWx3WFfvlodfLGlI3wMOQdjFc1YIOVDFBNbfuvjh0jVURA6tyHM v9tY6285qEbYO4GV+c5VQH2xb6lEceklT+JmE+zQ= 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.4 24/25] net: xilinx_emaclite: Do not print real IOMEM pointer Date: Fri, 13 Aug 2021 17:06:48 +0200 Message-Id: <20210813150521.500915384@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210813150520.718161915@linuxfoundation.org> References: <20210813150520.718161915@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 @@ -1180,9 +1180,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: