Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp190139pxy; Fri, 7 May 2021 00:36:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyzliP/sLfB2d9yBY6Ssa0Tuek34WqRuFmWcbCHzGP9D5iyDBOxEZWJK3j2zUG01PsfPW4U X-Received: by 2002:a17:906:31c6:: with SMTP id f6mr8587989ejf.446.1620373019699; Fri, 07 May 2021 00:36:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620373019; cv=none; d=google.com; s=arc-20160816; b=scIIlFdy0/0NPXFlQEbV2RtiP9k0LGjtRvLYhGiZqq4tprEPTfopIAfqVxYGDAkZiJ FtGpbmCaEBk47ZJAetL2YzrLka7yV8r6nFoRJTH8Y4IRjFuoTUtLFFJpW+qF312a5TJe +/TquFS4kMz1FB9znTN1vvcM0xXl9Fjh8ffQqmxRjlP3JVdhGPfH7TzA879Z2Dz4vlTh yY8qz9UFvEzYHT9pmEgcinZkd34T4jtSsEHZz54ktaw1ekzdY/EcxCh/68Z8hpPVLnoT sFHIftbDta2289cbtWsXNYv0HP3jjFlu3NvJoX7vPaRPLIVODOnhal04+lUVcKoIz4ai rf/g== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=gdoi/Ql794n4I6ECv2j9dtEFRugBMOEUCreF0AscFPk=; b=KLqfLuA7vDPF8Zui9liZ6Xci8enfp7nhbxDH8im5ItlJiybBCEkt5ZRw9OWnz+3u5p iJIPiQBBzFN3bUZ3QRl4L4CQw3o0Yow1XCM4hTiPtrzJpDttnTGlMZVsYGQjSeTADzMo U9XmBYduoIOSii1PNEy5xkE0hOYGeovydiiKxER3O729sWuwJV23f8Vr4uMyXF14xBuw jHiyIrtx7Npj7fSYlkOn1jEgwp9byMEiiU3fm88HW7NmLfK1AJETEYNGDdOnxJrjmXQx pHd4oSODFB0QvAx5zspNmQ9bEM7RpLY7tolEx2VLxhYg8p/XMERZquxMdro0UzJhs9x+ EK0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ZRs7XjuV; 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 g12si4666606edw.596.2021.05.07.00.36.35; Fri, 07 May 2021 00:36:59 -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=ZRs7XjuV; 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 S233625AbhEGGCr (ORCPT + 99 others); Fri, 7 May 2021 02:02:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56102 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229637AbhEGGCq (ORCPT ); Fri, 7 May 2021 02:02:46 -0400 Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB7C5C061574 for ; Thu, 6 May 2021 23:01:45 -0700 (PDT) Received: by mail-wm1-x330.google.com with SMTP id b19-20020a05600c06d3b029014258a636e8so4181012wmn.2 for ; Thu, 06 May 2021 23:01:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=gdoi/Ql794n4I6ECv2j9dtEFRugBMOEUCreF0AscFPk=; b=ZRs7XjuVmWRbqGlwoI/5q5k9lWVg/dGkjtzP/COgnl8vyQaVMjg9aGtksgTZeVojDY qKaY+5mtSPQRzlWo8E4XPy1qhS4Ld9v1vIWSDJJmPwCOw1zQ0CG2K5qZH1/GxOMDMKCU VOcsTDv1g6AajWCd7fH8/bW6tg/SeOD9xITxni1YAS+xP3WZeZYssGesuYshEk9SgC9u GGspo+/l2X9B2YDDJqYq/gwDcKQxO3aBaoRfTixaCA39UWR5a9J8S77il0HCl8PalyFa aLZkrCnWiSDCAOpFoipN4ZdyALgVDEC4n0ayLhIP9p5wsUAZpmM7t3sPl/RpWjjQGU1Y rNZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=gdoi/Ql794n4I6ECv2j9dtEFRugBMOEUCreF0AscFPk=; b=VW3yyGS3y68mD9i5GkWRZGB2YyChjTSm0y7RyKUbyqFaonqgt5g+C5/+6eB48xmILp EYOfeD8fm+Ra6I+/lnbhK3rowFfJQz4qJqFNwQ8M7gEWklIsrYWvjPWUP+2ZuUJfCnmo 6bdpYe/uZzq+G/ZOSBONoITy8b1SC8wIhvlQn2qJZlBPk9cxFAXtB62zf2Dz5NajRoTp TyUfoK1nx6FdfC/ZdQ8EpKJFP1TANQZYeVmQaAKNoizXJ7nueI457ggGTNc/LuBVm7ze fOWpPp95qdOpDOgF3DUeYoLhkyGRTpq+uKC0N/1EQHrdJ6DzJZ3JJmbTxJ7Vvorcjm1r OXFw== X-Gm-Message-State: AOAM5335UFp0Z7DkDKLNvN+WwCXEOro60nZMeCDt0N4YZ1rSwQIo/RuL k/BOd5otUpOqYTWVY8YQ5LpJoCMohpAiAg== X-Received: by 2002:a05:600c:3205:: with SMTP id r5mr7967581wmp.78.1620367304414; Thu, 06 May 2021 23:01:44 -0700 (PDT) Received: from localhost.localdomain (231.red-83-51-243.dynamicip.rima-tde.net. [83.51.243.231]) by smtp.gmail.com with ESMTPSA id r2sm7120242wrt.79.2021.05.06.23.01.43 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 06 May 2021 23:01:43 -0700 (PDT) From: Sergio Paracuellos To: vkoul@kernel.org Cc: linux-phy@lists.infradead.org, kishon@ti.com, linux-kernel@vger.kernel.org, linux-staging@lists.linux.dev, gregkh@linuxfoundation.org, neil@brown.name, ilya.lipnitskiy@gmail.com, kernel test robot Subject: [PATCH] phy: ralink: phy-mt7621-pci: properly print pointer address Date: Fri, 7 May 2021 08:01:42 +0200 Message-Id: <20210507060142.17049-1-sergio.paracuellos@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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); return mt7621_phy->phy; } -- 2.25.1