--- zzzz-none-000/linux-3.10.107/drivers/gpu/drm/r128/r128_ioc32.c 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/drivers/gpu/drm/r128/r128_ioc32.c 2021-02-04 17:41:59.000000000 +0000 @@ -33,6 +33,7 @@ #include #include +#include "r128_drv.h" typedef struct drm_r128_init32 { int func; @@ -202,7 +203,7 @@ if (nr < DRM_COMMAND_BASE) return drm_compat_ioctl(filp, cmd, arg); - if (nr < DRM_COMMAND_BASE + DRM_ARRAY_SIZE(r128_compat_ioctls)) + if (nr < DRM_COMMAND_BASE + ARRAY_SIZE(r128_compat_ioctls)) fn = r128_compat_ioctls[nr - DRM_COMMAND_BASE]; if (fn != NULL)