Skip to content

Commit 927c6c8

Browse files
committed
parisc: iosapic.c: Fix sparse warnings
Signed-off-by: Helge Deller <[email protected]>
1 parent 9a47a71 commit 927c6c8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

drivers/parisc/iosapic.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,9 +202,9 @@ static inline void iosapic_write(void __iomem *iosapic, unsigned int reg, u32 va
202202

203203
static DEFINE_SPINLOCK(iosapic_lock);
204204

205-
static inline void iosapic_eoi(void __iomem *addr, unsigned int data)
205+
static inline void iosapic_eoi(__le32 __iomem *addr, __le32 data)
206206
{
207-
__raw_writel(data, addr);
207+
__raw_writel((__force u32)data, addr);
208208
}
209209

210210
/*

drivers/parisc/iosapic_private.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ struct iosapic_irt {
118118
struct vector_info {
119119
struct iosapic_info *iosapic; /* I/O SAPIC this vector is on */
120120
struct irt_entry *irte; /* IRT entry */
121-
u32 __iomem *eoi_addr; /* precalculate EOI reg address */
122-
u32 eoi_data; /* IA64: ? PA: swapped txn_data */
121+
__le32 __iomem *eoi_addr; /* precalculate EOI reg address */
122+
__le32 eoi_data; /* IA64: ? PA: swapped txn_data */
123123
int txn_irq; /* virtual IRQ number for processor */
124124
ulong txn_addr; /* IA64: id_eid PA: partial HPA */
125125
u32 txn_data; /* CPU interrupt bit */

0 commit comments

Comments
 (0)