public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] gpu/drm/amdgpu: Include <linux/debugfs.h> only if CONFIG_DEBUG_FS is set
@ 2015-07-13 11:03 Alexander Kuleshov
  2015-07-14  5:11 ` Alex Deucher
  0 siblings, 1 reply; 5+ messages in thread
From: Alexander Kuleshov @ 2015-07-13 11:03 UTC (permalink / raw)
  To: David Airlie, Alex Deucher, Christian König, Jammy Zhou,
	yanyang1, Marek Olšák, Maninder Singh
  Cc: dri-devel, linux-kernel, Alexander Kuleshov

We have no need to include <linux/debugfs.h> if the CONFIG_DEBUG_FS option
is not set.

Signed-off-by: Alexander Kuleshov <kuleshovmail@gmail.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
index ba46be3..23dbfa4 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
@@ -27,7 +27,6 @@
  */
 #include <linux/console.h>
 #include <linux/slab.h>
-#include <linux/debugfs.h>
 #include <drm/drmP.h>
 #include <drm/drm_crtc_helper.h>
 #include <drm/amdgpu_drm.h>
@@ -44,2 +43,2 @@
 #include "vi.h"
 #include "bif/bif_4_1_d.h"

+#ifdef CONFIG_DEBUG_FS
+#include <linux/debugfs.h>
+#endif
+
 static int amdgpu_debugfs_regs_init(struct amdgpu_device *adev);
 static void amdgpu_debugfs_regs_cleanup(struct amdgpu_device *adev);

--
2.5.0-rc1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-07-14 14:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-13 11:03 [PATCH] gpu/drm/amdgpu: Include <linux/debugfs.h> only if CONFIG_DEBUG_FS is set Alexander Kuleshov
2015-07-14  5:11 ` Alex Deucher
2015-07-14  8:18   ` Alexander Kuleshov
2015-07-14  8:23     ` Christian König
2015-07-14 14:29     ` Alex Deucher

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox