summaryrefslogtreecommitdiff
path: root/lib/librte_pmd_enic/vnic/vnic_dev.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/librte_pmd_enic/vnic/vnic_dev.h')
-rw-r--r--lib/librte_pmd_enic/vnic/vnic_dev.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/librte_pmd_enic/vnic/vnic_dev.h b/lib/librte_pmd_enic/vnic/vnic_dev.h
index 8cc036b..d1373a5 100644
--- a/lib/librte_pmd_enic/vnic/vnic_dev.h
+++ b/lib/librte_pmd_enic/vnic/vnic_dev.h
@@ -48,14 +48,14 @@
#ifndef readq
static inline u64 readq(void __iomem *reg)
{
- return ((u64)readl(reg + 0x4UL) << 32) |
+ return ((u64)readl((char *)reg + 0x4UL) << 32) |
(u64)readl(reg);
}
static inline void writeq(u64 val, void __iomem *reg)
{
writel(val & 0xffffffff, reg);
- writel(val >> 32, reg + 0x4UL);
+ writel(val >> 32, (char *)reg + 0x4UL);
}
#endif