提交 526de53c 编写于 作者: M Marc Kleine-Budde 提交者: David S. Miller

can: pch_can: fix sparse warning

This patch fixes the following sparse warning:

drivers/net/can/pch_can.c:231:26: warning: incorrect type in argument 1 (different address spaces)
drivers/net/can/pch_can.c:231:26:    expected unsigned int [usertype] *addr
drivers/net/can/pch_can.c:231:26:    got unsigned int [noderef] <asn:2>*<noident>

Let pch_can_bit_{set,clear} first parameter be a void __iomem pointer.
Signed-off-by: NMarc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 c117e4a2
...@@ -213,12 +213,12 @@ static DEFINE_PCI_DEVICE_TABLE(pch_pci_tbl) = { ...@@ -213,12 +213,12 @@ static DEFINE_PCI_DEVICE_TABLE(pch_pci_tbl) = {
}; };
MODULE_DEVICE_TABLE(pci, pch_pci_tbl); MODULE_DEVICE_TABLE(pci, pch_pci_tbl);
static inline void pch_can_bit_set(u32 *addr, u32 mask) static inline void pch_can_bit_set(void __iomem *addr, u32 mask)
{ {
iowrite32(ioread32(addr) | mask, addr); iowrite32(ioread32(addr) | mask, addr);
} }
static inline void pch_can_bit_clear(u32 *addr, u32 mask) static inline void pch_can_bit_clear(void __iomem *addr, u32 mask)
{ {
iowrite32(ioread32(addr) & ~mask, addr); iowrite32(ioread32(addr) & ~mask, addr);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册