Skip to contentSkip to conversation

Subject: [RFC][PATCH 01/11] via: trivial sparse annotations

PATCH Al Viro 1 participant 1 message Jan 5, 2018

Subsystems (4)
lore
Share & tools
lore

Al Viro

author
#0 lore raw
---
 drivers/net/ethernet/via/via-rhine.c    | 2 +-
 drivers/net/ethernet/via/via-velocity.c | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)
drivers/net/ethernet/via/via-rhine.c +1 -1
index 33949248c829..f1fde0b7cda3 100644
@@ -1150,7 +1150,7 @@ static int rhine_init_one_platform(struct platform_device *pdev)
 		return -EINVAL;
 
 	return rhine_init_one_common(&pdev->dev, *quirks,
-				     (long)ioaddr, ioaddr, irq);
+				     (unsigned long)ioaddr, ioaddr, irq);
 }
 
 static int alloc_ring(struct net_device* dev)
drivers/net/ethernet/via/via-velocity.c +3 -3
index ef9538ee53d0..7b6dc6e8d6c0 100644
@@ -92,14 +92,14 @@ enum velocity_bus_type {
 static int velocity_nics;
 static int msglevel = MSG_LEVEL_INFO;
 
-static void velocity_set_power_state(struct velocity_info *vptr, char state)
+static void velocity_set_power_state(struct velocity_info *vptr, pci_power_t state)
 {
-	void *addr = vptr->mac_regs;
+	void __iomem *addr = vptr->mac_regs;
 
 	if (vptr->pdev)
 		pci_set_power_state(vptr->pdev, state);
 	else
-		writeb(state, addr + 0x154);
+		writeb((__force u8)state, addr + 0x154);
 }
 
 /**
Signature · 1 line
2.11.0