Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/msm: Fix undefined "rd_full" link error

rd_full should be defined outside the CONFIG_DEBUG_FS region, in order
to be able to link the msm driver even when CONFIG_DEBUG_FS is disabled.

Fixes: e515af8d4a6f ("drm/msm: devcoredump should dump MSM_SUBMIT_BO_DUMP buffers")
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Reviewed-by: Rob Clark <robdclark@gmail.com>
Signed-off-by: Rob Clark <robdclark@chromium.org>

authored by

Bjorn Andersson and committed by
Rob Clark
20aebe83 ab723b7a

+2 -2
+2 -2
drivers/gpu/drm/msm/msm_rd.c
··· 29 29 * or shader programs (if not emitted inline in cmdstream). 30 30 */ 31 31 32 - #ifdef CONFIG_DEBUG_FS 33 - 34 32 #include <linux/circ_buf.h> 35 33 #include <linux/debugfs.h> 36 34 #include <linux/kfifo.h> ··· 44 46 bool rd_full = false; 45 47 MODULE_PARM_DESC(rd_full, "If true, $debugfs/.../rd will snapshot all buffer contents"); 46 48 module_param_named(rd_full, rd_full, bool, 0600); 49 + 50 + #ifdef CONFIG_DEBUG_FS 47 51 48 52 enum rd_sect_type { 49 53 RD_NONE,