Skip to content

Commit 280489d

Browse files
arndbrobclark
authored andcommitted
drm/msm: adreno: fix build error without debugfs
The newly added a5xx support fails to build when debugfs is diabled: drivers/gpu/drm/msm/adreno/a5xx_gpu.c:849:4: error: 'struct msm_gpu_funcs' has no member named 'show' drivers/gpu/drm/msm/adreno/a5xx_gpu.c:849:11: error: 'a5xx_show' undeclared here (not in a function); did you mean 'a5xx_irq'? This adds a missing #ifdef. Fixes: b5f103a ("drm/msm: gpu: Add A5XX target support") Cc: [email protected] Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: Rob Clark <[email protected]>
1 parent 3a2d782 commit 280489d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/gpu/drm/msm/adreno/a5xx_gpu.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -860,7 +860,9 @@ static const struct adreno_gpu_funcs funcs = {
860860
.idle = a5xx_idle,
861861
.irq = a5xx_irq,
862862
.destroy = a5xx_destroy,
863+
#ifdef CONFIG_DEBUG_FS
863864
.show = a5xx_show,
865+
#endif
864866
},
865867
.get_timestamp = a5xx_get_timestamp,
866868
};

0 commit comments

Comments
 (0)