Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp162320pxy; Thu, 6 May 2021 23:46:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy7XtNt7XOhkNnmrnrRCzl+Ie/VvLrEzqxUzJZMdQR4p6gyd7QDYMalqC8sbCm3s+6TCW4f X-Received: by 2002:a05:6402:848:: with SMTP id b8mr9539354edz.159.1620370010359; Thu, 06 May 2021 23:46:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620370010; cv=none; d=google.com; s=arc-20160816; b=Q5cP2TYT663LVBRQBH6gn0JZh/4H+P8UM+/UHTw7dSPG42EAtApaGz/tBo1qbfcnR1 reJ77Ln0tiiKKaFmMBPzZur0U65iwGZzkQMsTzICgf7xdFvUAN1I6IaghlgLRsf+LHpp CPkLreU2ym6va77fotEVOyg5VJcyDC/4gL4Kw/MOS9KbDwH1EC3c1ZFTW/64AVgw+LPb COPqIArGpcldUDb4YiakmdhUshqvU46e0Cz6jXTxvltMg7blhQ0j+3rV4pR7u2s/1Qfa Wtx9HTG395S7buGhRoWqjHGgLlNXMgnY+TJ6jd77KgsWtXhtN5Pfu7aJ4ZuDDBZ968bG ipdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=dRtFMgaousXO9uGfQKNDupORwkgL6esBKh24HxhIIjw=; b=Xyi0wbg0oMJltcJ+PsILJyLJycUJ4et1aK3EYnUQ1FNkPBhsiF0xqc08mzcur0NKTt EK4GTeoCO6ElIQaHiLiwlWW8DO8cPi5T8TuPeSFlDUPJd/7Kux0bn8PZ9HZw1N9ZkwJO uGH1gr23NDNEI9SJMaCDjP94sXWRk79532NhM1zEro/kwaXIWSTKYL5R4AekPrx6LXTB TCz77VqEhwmTHN5481KwFIga0cqzhYqLkm2oNl1VFnQXx5qrz82wkCzzQMYM4UBL+RGR d2n9hLUji2Wmj3Xqn29orRSKneMW/JBHi79w5WKbpNTQzmkRCrCFhiVD5SD4j9ZfG1VD /M+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=g3PEIreI; 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 kb17si3919996ejb.294.2021.05.06.23.46.26; Thu, 06 May 2021 23:46:50 -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=g3PEIreI; 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 S234153AbhEGG2s (ORCPT + 99 others); Fri, 7 May 2021 02:28:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:43524 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230380AbhEGG2s (ORCPT ); Fri, 7 May 2021 02:28:48 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4EEC061154; Fri, 7 May 2021 06:27:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620368867; bh=g1Waw8S6g5srkV3sVXlOHNgN6nlneoJfnIMAns1P+VE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=g3PEIreIaW+nzWBEdSVfqdJhwEdc7NN2leomcf4N40HwAPfbHgdf7YujMkCYmvX0w XTz2sIWLKvRx3AQny+FBTl0mCFB8WygbodegvGHknye+iUaV6Si7889MDZKi0/K/Bi e+rhleY+RpuarDC9B8Q4yOoIqRwYiGIIFUMnTqGU= Date: Fri, 7 May 2021 08:27:45 +0200 From: Greg KH To: Sergio Paracuellos Cc: vkoul@kernel.org, linux-phy@lists.infradead.org, kishon@ti.com, linux-kernel@vger.kernel.org, linux-staging@lists.linux.dev, neil@brown.name, ilya.lipnitskiy@gmail.com, kernel test robot Subject: Re: [PATCH] phy: ralink: phy-mt7621-pci: properly print pointer address Message-ID: References: <20210507060142.17049-1-sergio.paracuellos@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210507060142.17049-1-sergio.paracuellos@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 07, 2021 at 08:01:42AM +0200, Sergio Paracuellos wrote: > The way of printing the pointer address for the 'port_base' > address got into compile warnings on some architectures > [-Wpointer-to-int-cast]. Instead of use '%08x' and cast > to an 'unsigned int' just make use of '%px' and avoid the > cast. > > Fixes: d87da32372a0 ("phy: ralink: Add PHY driver for MT7621 PCIe PHY") > Reported-by: kernel test robot > Signed-off-by: Sergio Paracuellos > --- > drivers/phy/ralink/phy-mt7621-pci.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/phy/ralink/phy-mt7621-pci.c b/drivers/phy/ralink/phy-mt7621-pci.c > index 753cb5bab930..4705931fb072 100644 > --- a/drivers/phy/ralink/phy-mt7621-pci.c > +++ b/drivers/phy/ralink/phy-mt7621-pci.c > @@ -272,8 +272,8 @@ static struct phy *mt7621_pcie_phy_of_xlate(struct device *dev, > > mt7621_phy->has_dual_port = args->args[0]; > > - dev_info(dev, "PHY for 0x%08x (dual port = %d)\n", > - (unsigned int)mt7621_phy->port_base, mt7621_phy->has_dual_port); > + dev_info(dev, "PHY for 0x%px (dual port = %d)\n", > + mt7621_phy->port_base, mt7621_phy->has_dual_port); This whole message should be dropped as drivers should be quiet if all is going well, and only print messages when things go wrong. And why cc: linux-staging? thanks, greg k-h