提交 e1adc78c 编写于 作者: D Dave Airlie

drm/qxl: fix build with debugfs turned off.

Reported-by: Randy Dunlap
Signed-off-by: NDave Airlie <airlied@redhat.com>
上级 9f7bc6ac
...@@ -555,6 +555,7 @@ static int qxl_mm_dump_table(struct seq_file *m, void *data) ...@@ -555,6 +555,7 @@ static int qxl_mm_dump_table(struct seq_file *m, void *data)
static int qxl_ttm_debugfs_init(struct qxl_device *qdev) static int qxl_ttm_debugfs_init(struct qxl_device *qdev)
{ {
#if defined(CONFIG_DEBUG_FS)
static struct drm_info_list qxl_mem_types_list[QXL_DEBUGFS_MEM_TYPES]; static struct drm_info_list qxl_mem_types_list[QXL_DEBUGFS_MEM_TYPES];
static char qxl_mem_types_names[QXL_DEBUGFS_MEM_TYPES][32]; static char qxl_mem_types_names[QXL_DEBUGFS_MEM_TYPES][32];
unsigned i; unsigned i;
...@@ -574,4 +575,7 @@ static int qxl_ttm_debugfs_init(struct qxl_device *qdev) ...@@ -574,4 +575,7 @@ static int qxl_ttm_debugfs_init(struct qxl_device *qdev)
} }
return qxl_debugfs_add_files(qdev, qxl_mem_types_list, i); return qxl_debugfs_add_files(qdev, qxl_mem_types_list, i);
#else
return 0;
#endif
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册