Skip to contentSkip to conversation

drm/msm/a6xx: Add missing __always_unused

PATCH In review Rob Clark 2 participants 2 messages Jul 1, 2024 – Jul 2, 2024

Subsystems (4)
lore
Share & tools
lore

Rob Clark

author
#0 lore raw

PATCH 1/1 drm/msm/a6xx: Add missing __always_unused

From: Rob Clark <[email protected]>

The __build_asserts() function only exists to have a place to put build-time asserts.

---
 drivers/gpu/drm/msm/adreno/a6xx_catalog.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/msm/adreno/a6xx_catalog.c +1 -1
index bdafca7267a8..68ba9aed5506 100644
@@ -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);
Signature · 1 line
2.45.2
Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · Rob Clark

From: Rob Clark <[email protected]>

The __build_asserts() function only exists to have a place to put build-time asserts.

Quoted 7 lines
---
 drivers/gpu/drm/msm/adreno/a6xx_catalog.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Signature · 2 lines
With best wishes
Dmitry