Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp42596pxj; Fri, 7 May 2021 03:19:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxg7CNNLbOGjgZAEQ/mY7/ITNy7XSlS8XMpJJ6OGKd2m3dSCa6Vvib8IuNZ8YL7ViRVgxqX X-Received: by 2002:a17:906:c297:: with SMTP id r23mr9262217ejz.144.1620382772916; Fri, 07 May 2021 03:19:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620382772; cv=none; d=google.com; s=arc-20160816; b=DF3maTpVMdg6QLUb+mevmXep6weeyK/A6tqCHC+R4k7FGEpYbvQWfQ1uJJy64/r3NA OdE5ECMhIgVgMHlD05Masxe6fynSnlfO/xt+W5THE2Vm7Lh61EHaMCRX/EgOurrjSDro iieAa9XN0KVCAxTHRISTcQV+AMWWblSw9hCtdxG/maEnjAZbAu6ZpqhW1K5HPSrRwBwM nbe+R2NOWqxCbkvOrzWevI6pgKRDh4co6uafjmGIvUdmjvX5NXZzY5Rk7f7dixO7xcXC APJRfmWQCZmBornFDEnE9fuQJBe/vOYdsVZgRgpqr4mG0e8h8RuhVT2TK8p8UZgIM/6K suDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=s3n4fr9dTk5xRx8UuqHEXWcQIVk+nbzaIFIelcFE2hE=; b=KLYvU8uRgADGjwdwbPxSMo/8cB9WufdM6Rf7uKMHQyo1CojGHPS1UYEWrQ7tw2YTPF /FTHWPDS/ZPKLI5ogTfaikMT/GDceNhhCzkZztEvKHWM4529b8jrhVkZ3IXD8In1D7Em N+yDwZGPjTxCB2dzOXWQJvnJCjFBYNNvs2DS5n2rZ82pmFXmImejX9xS1HlbJB1VRWMQ BJd8IUKwZvv+XqaU+qDk7dHUXsLMErfPAViAiDB25OP7iilJrHjFDHgvb1+V9eFim6UJ 4QsYHr3GxDY/6nuGEG6Bp5i9xutqssv79BzPftlTeGmNnDcjjcFTuM0P+n6RLwR9SdWn AH0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=M7xIUdn7; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id nc39si4086755ejc.677.2021.05.07.03.19.09; Fri, 07 May 2021 03:19:32 -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=@gmail.com header.s=20161025 header.b=M7xIUdn7; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234493AbhEGGmZ (ORCPT + 99 others); Fri, 7 May 2021 02:42:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234006AbhEGGmT (ORCPT ); Fri, 7 May 2021 02:42:19 -0400 Received: from mail-ot1-x32d.google.com (mail-ot1-x32d.google.com [IPv6:2607:f8b0:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C1ADC061761 for ; Thu, 6 May 2021 23:41:17 -0700 (PDT) Received: by mail-ot1-x32d.google.com with SMTP id d3-20020a9d29030000b029027e8019067fso7071087otb.13 for ; Thu, 06 May 2021 23:41:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=s3n4fr9dTk5xRx8UuqHEXWcQIVk+nbzaIFIelcFE2hE=; b=M7xIUdn7ch+gJjW1FHSOUdQL0R3TC1bcnypTyGGHLc0cY76uZ/GIWoVonMCyVzFbGv vNZPMumaBIhYJ9zgZWVfngxBJf/e7uFWIdPgSl1rWCswsask5rmOI15kShycUTA+uViL h9gmPCxAsZmKgnMRqOJ+9SOhO3SsVguxcFIqOs2cP8RE3Mtak1lSUX0FQT0WXASAVzdh 3LOLTfJ3d5LPnBzARHqYKpvNG0VFsBaYjRTvJ6v9/NYbgR2o9/BmSoqaVxL4g25fQGAr NrftC/BJzDoSqmWSkwPAL2RYAUkbvSI5FIJuj/QeyvaR8fAkiExWMwS3Q05HmIMuMtTD kKLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=s3n4fr9dTk5xRx8UuqHEXWcQIVk+nbzaIFIelcFE2hE=; b=WTYqsPX7/COUSYQoHxyDC67jbf17kjpedhUhZ4bDcsEXmZHLrxv2O47Oe9cVnCFPJQ mD52yFD64KJXjiNydj37aiS4o5cbONuo/rP9ktPa0WKzrHkdAxivgc+rmdZEo9AUIPvm jDkk8hDYeBwQslEB7zcexcLws0PGiA3T3k2/sJrzv0B2xmZfq0tp9D4QqMa9N34UJbSQ dMWPjogLrzM02Ph1G5es3m++7ksHjfHhKBZc9NFibBvicPphaqDhGsGFPDCfr90JamP2 90i6h7hNnLsl9BtuIuuyyJfaWkTx5zUPR8Qek2O9cE27iv/bkCRiAknIqimNJGjTHwxU v91w== X-Gm-Message-State: AOAM532cZMIO6242M+N5p8+mYZEW8tw48EH1ybtoJMnVOYqHt+V+7Ddb G5vdUvRx7wdOgbwwI4F//Q6Cd4u1wsB+rBL71Ho8V8okDzpTrA== X-Received: by 2002:a9d:4e9a:: with SMTP id v26mr6905085otk.74.1620369676505; Thu, 06 May 2021 23:41:16 -0700 (PDT) MIME-Version: 1.0 References: <20210507060142.17049-1-sergio.paracuellos@gmail.com> In-Reply-To: From: Sergio Paracuellos Date: Fri, 7 May 2021 08:41:05 +0200 Message-ID: Subject: Re: [PATCH] phy: ralink: phy-mt7621-pci: properly print pointer address To: Greg KH Cc: Vinod Koul , linux-phy@lists.infradead.org, Kishon Vijay Abraham I , linux-kernel , linux-staging@lists.linux.dev, NeilBrown , Ilya Lipnitskiy , kernel test robot Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Fri, May 7, 2021 at 8:27 AM Greg KH wrote: > > 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. Got it. Will move this into dev_dbg instead. Thanks. > > And why cc: linux-staging? True, sorry for that. Ctrl + r search for previous git send-mail and I forgot to drop staging from there. > > thanks, > > greg k-h Best regards, Sergio Paracuellos