diff options
author | David Rientjes <rientjes@google.com> | 2013-04-28 17:09:25 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2013-04-29 20:00:27 -0400 |
commit | caaa0352c41f0e21b48b902894ae8e585435587d (patch) | |
tree | 68e0a9a453da738beed191d97e5915f979d83776 /drivers/gpu | |
parent | 8e9c40382fb820c3f002928ccc7d9fdbf33ef975 (diff) |
drivers, drm: fix qxl build error when debugfs is disabled
Fix build error when CONFIG_DEBUG_FS is disabled:
drivers/gpu/drm/qxl/qxl_debugfs.c: In function 'qxl_debugfs_init':
drivers/gpu/drm/qxl/qxl_debugfs.c:76:2: error: implicit declaration of function 'drm_debugfs_create_files'
drivers/gpu/drm/qxl/qxl_debugfs.c: In function 'qxl_debugfs_takedown':
drivers/gpu/drm/qxl/qxl_debugfs.c:84:2: error: implicit declaration of function 'drm_debugfs_remove_files'
Signed-off-by: David Rientjes <rientjes@google.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/qxl/qxl_debugfs.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/qxl/qxl_debugfs.c b/drivers/gpu/drm/qxl/qxl_debugfs.c index c630152f2d2f..c3c2bbdc6674 100644 --- a/drivers/gpu/drm/qxl/qxl_debugfs.c +++ b/drivers/gpu/drm/qxl/qxl_debugfs.c | |||
@@ -35,6 +35,7 @@ | |||
35 | #include "qxl_object.h" | 35 | #include "qxl_object.h" |
36 | 36 | ||
37 | 37 | ||
38 | #if defined(CONFIG_DEBUG_FS) | ||
38 | static int | 39 | static int |
39 | qxl_debugfs_irq_received(struct seq_file *m, void *data) | 40 | qxl_debugfs_irq_received(struct seq_file *m, void *data) |
40 | { | 41 | { |
@@ -69,20 +70,25 @@ static struct drm_info_list qxl_debugfs_list[] = { | |||
69 | { "qxl_buffers", qxl_debugfs_buffers_info, 0, NULL }, | 70 | { "qxl_buffers", qxl_debugfs_buffers_info, 0, NULL }, |
70 | }; | 71 | }; |
71 | #define QXL_DEBUGFS_ENTRIES ARRAY_SIZE(qxl_debugfs_list) | 72 | #define QXL_DEBUGFS_ENTRIES ARRAY_SIZE(qxl_debugfs_list) |
73 | #endif | ||
72 | 74 | ||
73 | int | 75 | int |
74 | qxl_debugfs_init(struct drm_minor *minor) | 76 | qxl_debugfs_init(struct drm_minor *minor) |
75 | { | 77 | { |
78 | #if defined(CONFIG_DEBUG_FS) | ||
76 | drm_debugfs_create_files(qxl_debugfs_list, QXL_DEBUGFS_ENTRIES, | 79 | drm_debugfs_create_files(qxl_debugfs_list, QXL_DEBUGFS_ENTRIES, |
77 | minor->debugfs_root, minor); | 80 | minor->debugfs_root, minor); |
81 | #endif | ||
78 | return 0; | 82 | return 0; |
79 | } | 83 | } |
80 | 84 | ||
81 | void | 85 | void |
82 | qxl_debugfs_takedown(struct drm_minor *minor) | 86 | qxl_debugfs_takedown(struct drm_minor *minor) |
83 | { | 87 | { |
88 | #if defined(CONFIG_DEBUG_FS) | ||
84 | drm_debugfs_remove_files(qxl_debugfs_list, QXL_DEBUGFS_ENTRIES, | 89 | drm_debugfs_remove_files(qxl_debugfs_list, QXL_DEBUGFS_ENTRIES, |
85 | minor); | 90 | minor); |
91 | #endif | ||
86 | } | 92 | } |
87 | 93 | ||
88 | int qxl_debugfs_add_files(struct qxl_device *qdev, | 94 | int qxl_debugfs_add_files(struct qxl_device *qdev, |