projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f7bc6a
)
drm/qxl: fix build with debugfs turned off.
author
Dave Airlie
<airlied@redhat.com>
Thu, 18 Apr 2013 01:47:40 +0000
(11:47 +1000)
committer
Dave Airlie
<airlied@redhat.com>
Thu, 18 Apr 2013 01:47:40 +0000
(11:47 +1000)
Reported-by: Randy Dunlap
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/qxl/qxl_ttm.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpu/drm/qxl/qxl_ttm.c
b/drivers/gpu/drm/qxl/qxl_ttm.c
index 1a86242eedb00bf74f0f0e6f029a45a9897aa12e..489cb8cece4da553b9f5c36c4dc9c610e617c3ea 100644
(file)
--- a/
drivers/gpu/drm/qxl/qxl_ttm.c
+++ b/
drivers/gpu/drm/qxl/qxl_ttm.c
@@
-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)
{
+#if defined(CONFIG_DEBUG_FS)
static struct drm_info_list qxl_mem_types_list[QXL_DEBUGFS_MEM_TYPES];
static char qxl_mem_types_names[QXL_DEBUGFS_MEM_TYPES][32];
unsigned i;
@@
-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);
+#else
+ return 0;
+#endif
}