[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20201201105613.23252-3-sergio.paracuellos@gmail.com>
Date: Tue, 1 Dec 2020 11:56:12 +0100
From: Sergio Paracuellos <sergio.paracuellos@...il.com>
To: vkoul@...nel.org
Cc: sfr@...b.auug.org.au, kishon@...com, linux-kernel@...r.kernel.org,
linux-next@...r.kernel.org
Subject: [PATCH v2 2/3] phy: ralink: phy-mt7621-pci: avoid warning if COMPILE_TEST is enabled
This driver can be enabled for COMPILE_TEST. Casting to unsigned
int for address shows a compilation warning because of size of the
pointer in x86_64 architecture using 'make allmodconfig' target.
Avoid the warning in any architecture casting to unsigned long and
properly setting format also for 'dev_info' macro.
Signed-off-by: Sergio Paracuellos <sergio.paracuellos@...il.com>
---
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 db79088d5362..befa282e2447 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%08lx (dual port = %d)\n",
+ (unsigned long)mt7621_phy->port_base, mt7621_phy->has_dual_port);
return mt7621_phy->phy;
}
--
2.25.1
Powered by blists - more mailing lists