From: Ville Syrjälä <[email protected]> ioread64() and iowrite64() are provided by asm-generic/io.h on 64bit architectures that use it, such as arm64, but not on all architectures. Include linux/io-64-nonatomic-lo-hi.h, which only supplies them when the architecture doesn't, so the driver can be built with COMPILE_TEST=y elsewhere. There is no functional change on architectures that provide native 64-bit accessors.
Cc: Alessio Belle <[email protected]> Cc: Luigi Santivetti <[email protected]> Cc: [email protected] Signed-off-by: Ville Syrjälä <[email protected]> --- drivers/gpu/drm/imagination/pvr_device.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/imagination/pvr_device.h b/drivers/gpu/drm/imagination/pvr_device.h index c246122b4caf..975b4e671418 100644 --- a/drivers/gpu/drm/imagination/pvr_device.h +++ b/drivers/gpu/drm/imagination/pvr_device.h @@ -19,6 +19,7 @@ #include <linux/compiler_types.h> #include <linux/device.h> #include <linux/io.h> +#include <linux/io-64-nonatomic-lo-hi.h> #include <linux/iopoll.h> #include <linux/kernel.h> #include <linux/math.h> -- 2.56.0
