Commit a57750f2 authored by Jani Nikula's avatar Jani Nikula Committed by Daniel Vetter

drm/i915: only build i915_debugfs.c when CONFIG_DEBUG_FS is enabled

The whole file is wrapped around in #if defined(CONFIG_DEBUG_FS) anyway,
so skip the file at the build level already.
Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent f3c5fe97
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
ccflags-y := -Iinclude/drm ccflags-y := -Iinclude/drm
i915-y := i915_drv.o i915_dma.o i915_irq.o \ i915-y := i915_drv.o i915_dma.o i915_irq.o \
i915_debugfs.o \
i915_gpu_error.o \ i915_gpu_error.o \
i915_suspend.o \ i915_suspend.o \
i915_gem.o \ i915_gem.o \
...@@ -55,6 +54,8 @@ i915-$(CONFIG_ACPI) += intel_acpi.o ...@@ -55,6 +54,8 @@ i915-$(CONFIG_ACPI) += intel_acpi.o
i915-$(CONFIG_DRM_I915_FBDEV) += intel_fbdev.o i915-$(CONFIG_DRM_I915_FBDEV) += intel_fbdev.o
i915-$(CONFIG_DEBUG_FS) += i915_debugfs.o
obj-$(CONFIG_DRM_I915) += i915.o obj-$(CONFIG_DRM_I915) += i915.o
CFLAGS_i915_trace_points.o := -I$(src) CFLAGS_i915_trace_points.o := -I$(src)
...@@ -40,8 +40,6 @@ ...@@ -40,8 +40,6 @@
#include <drm/i915_drm.h> #include <drm/i915_drm.h>
#include "i915_drv.h" #include "i915_drv.h"
#if defined(CONFIG_DEBUG_FS)
enum { enum {
ACTIVE_LIST, ACTIVE_LIST,
INACTIVE_LIST, INACTIVE_LIST,
...@@ -3282,5 +3280,3 @@ void i915_debugfs_cleanup(struct drm_minor *minor) ...@@ -3282,5 +3280,3 @@ void i915_debugfs_cleanup(struct drm_minor *minor)
drm_debugfs_remove_files(info_list, 1, minor); drm_debugfs_remove_files(info_list, 1, minor);
} }
} }
#endif /* CONFIG_DEBUG_FS */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment