From: Ville Syrjälä <[email protected]> The fallback path in tilcdc_write64() stores the result of __cpu_to_le64() through a volatile u64 pointer. That assigns a __le64 to a plain u64 and makes sparse complain about the differing base types. Use a volatile __le64 pointer for the store instead, so the types match.
Cc: Jyri Sarha <[email protected]> Cc: Tomi Valkeinen <[email protected]> Signed-off-by: Ville Syrjälä <[email protected]> --- drivers/gpu/drm/tilcdc/tilcdc_regs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/tilcdc/tilcdc_regs.h b/drivers/gpu/drm/tilcdc/tilcdc_regs.h index 23746b134c42..9dc3e1b9e20e 100644 --- a/drivers/gpu/drm/tilcdc/tilcdc_regs.h +++ b/drivers/gpu/drm/tilcdc/tilcdc_regs.h @@ -130,7 +130,7 @@ static inline void tilcdc_write64(struct drm_device *dev, u32 reg, u64 data) __iowmb(); #endif /* This compiles to strd (=64-bit write) on ARM7 */ - *(volatile u64 __force *)addr = __cpu_to_le64(data); + *(volatile __le64 __force *)addr = __cpu_to_le64(data); #endif } -- 2.56.0
