OpenCloudOS-Kernel/drivers/gpu/drm/msm/adreno
Arnd Bergmann 288e5c8898 drm/msm: fix building without debugfs
The adreno driver stopped building when CONFIG_DEBUGFS is disabled:

drivers/gpu/drm/msm/adreno/adreno_device.c: In function 'adreno_load_gpu':
drivers/gpu/drm/msm/adreno/adreno_device.c:153:16: error: 'const struct msm_gpu_funcs' has no member named 'debugfs_init'
  if (gpu->funcs->debugfs_init) {
                ^~
drivers/gpu/drm/msm/adreno/adreno_device.c:154:13: error: 'const struct msm_gpu_funcs' has no member named 'debugfs_init'
   gpu->funcs->debugfs_init(gpu, dev->primary);
             ^~

This adds an #ifdef around the code that references the hidden
pointer.

Fixes: 331dc0bc19 ("drm/msm: add a5xx specific debugfs")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Rob Clark <robdclark@gmail.com>
2018-03-19 06:33:39 -04:00
..
a2xx.xml.h drm/msm: update generated headers 2017-06-16 11:16:07 -04:00
a3xx.xml.h drm/msm: update generated headers 2017-06-16 11:16:07 -04:00
a3xx_gpu.c drm/msm: Trigger fence completion from GPU 2018-03-19 06:33:36 -04:00
a3xx_gpu.h drm/msm: Remove uneeded platform dev members 2017-08-02 07:57:02 -04:00
a4xx.xml.h drm/msm: update generated headers 2017-06-16 11:16:07 -04:00
a4xx_gpu.c drm/msm: Trigger fence completion from GPU 2018-03-19 06:33:36 -04:00
a4xx_gpu.h drm/msm: Remove uneeded platform dev members 2017-08-02 07:57:02 -04:00
a5xx.xml.h drm/msm: update generated headers 2017-06-16 11:16:07 -04:00
a5xx_debugfs.c drm/msm/adreno/a5xx_debugfs: fix potential NULL pointer dereference 2018-03-19 06:33:34 -04:00
a5xx_gpu.c drm/msm/adreno: Use generic function to load firmware to a buffer object 2018-02-20 10:41:22 -05:00
a5xx_gpu.h drm/msm: add a5xx specific debugfs 2018-02-20 10:41:20 -05:00
a5xx_power.c drm/msm/adreno: Define a list of firmware files to load per target 2018-02-20 10:41:22 -05:00
a5xx_preempt.c treewide: setup_timer() -> timer_setup() 2017-11-21 15:57:07 -08:00
adreno_common.xml.h drm/msm: update generated headers 2017-06-16 11:16:07 -04:00
adreno_device.c drm/msm: fix building without debugfs 2018-03-19 06:33:39 -04:00
adreno_gpu.c drm/msm: Trigger fence completion from GPU 2018-03-19 06:33:36 -04:00
adreno_gpu.h drm/msm/adreno: Use generic function to load firmware to a buffer object 2018-02-20 10:41:22 -05:00
adreno_pm4.xml.h drm/msm: update generated headers 2017-06-16 11:16:07 -04:00