From: Rob Clark Date: Mon, 1 Jul 2024 21:23:29 +0000 (-0700) Subject: drm/msm/a6xx: Add missing __always_unused X-Git-Tag: v6.11-rc1~141^2~4^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ad7f52996bcd5a6ce489bb70e0f01a9b1cb76d78;p=thirdparty%2Fkernel%2Flinux.git drm/msm/a6xx: Add missing __always_unused The __build_asserts() function only exists to have a place to put build-time asserts. Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202407010401.rfunrBSx-lkp@intel.com/ Signed-off-by: Rob Clark Reviewed-by: Dmitry Baryshkov Patchwork: https://patchwork.freedesktop.org/patch/601606/ --- diff --git a/drivers/gpu/drm/msm/adreno/a6xx_catalog.c b/drivers/gpu/drm/msm/adreno/a6xx_catalog.c index bdafca7267a80..68ba9aed5506e 100644 --- a/drivers/gpu/drm/msm/adreno/a6xx_catalog.c +++ b/drivers/gpu/drm/msm/adreno/a6xx_catalog.c @@ -1249,7 +1249,7 @@ static const struct adreno_info a7xx_gpus[] = { }; DECLARE_ADRENO_GPULIST(a7xx); -static inline void __build_asserts(void) +static inline __always_unused void __build_asserts(void) { BUILD_BUG_ON(a630_protect.count > a630_protect.count_max); BUILD_BUG_ON(a650_protect.count > a650_protect.count_max);