Skip to content

Commit

Permalink
drm/msm: Fix undefined "rd_full" link error
Browse files Browse the repository at this point in the history
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: e515af8 ("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>
  • Loading branch information
Bjorn Andersson authored and Rob Clark committed May 18, 2020
1 parent ab723b7 commit 20aebe8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/gpu/drm/msm/msm_rd.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@
* or shader programs (if not emitted inline in cmdstream).
*/

#ifdef CONFIG_DEBUG_FS

#include <linux/circ_buf.h>
#include <linux/debugfs.h>
#include <linux/kfifo.h>
Expand All @@ -47,6 +45,8 @@ bool rd_full = false;
MODULE_PARM_DESC(rd_full, "If true, $debugfs/.../rd will snapshot all buffer contents");
module_param_named(rd_full, rd_full, bool, 0600);

#ifdef CONFIG_DEBUG_FS

enum rd_sect_type {
RD_NONE,
RD_TEST, /* ascii text */
Expand Down

0 comments on commit 20aebe8

Please sign in to comment.