diff options
Diffstat (limited to 'drivers/gpu/drm/i915/Makefile')
| -rw-r--r-- | drivers/gpu/drm/i915/Makefile | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/drivers/gpu/drm/i915/Makefile b/drivers/gpu/drm/i915/Makefile index 4eee91a3a236..4c6adae23e18 100644 --- a/drivers/gpu/drm/i915/Makefile +++ b/drivers/gpu/drm/i915/Makefile | |||
| @@ -12,12 +12,16 @@ | |||
| 12 | # Note the danger in using -Wall -Wextra is that when CI updates gcc we | 12 | # Note the danger in using -Wall -Wextra is that when CI updates gcc we |
| 13 | # will most likely get a sudden build breakage... Hopefully we will fix | 13 | # will most likely get a sudden build breakage... Hopefully we will fix |
| 14 | # new warnings before CI updates! | 14 | # new warnings before CI updates! |
| 15 | subdir-ccflags-y := -Wall -Wextra | 15 | subdir-ccflags-y := -Wall -Wextra -Wvla |
| 16 | subdir-ccflags-y += $(call cc-disable-warning, unused-parameter) | 16 | subdir-ccflags-y += $(call cc-disable-warning, unused-parameter) |
| 17 | subdir-ccflags-y += $(call cc-disable-warning, type-limits) | 17 | subdir-ccflags-y += $(call cc-disable-warning, type-limits) |
| 18 | subdir-ccflags-y += $(call cc-disable-warning, missing-field-initializers) | 18 | subdir-ccflags-y += $(call cc-disable-warning, missing-field-initializers) |
| 19 | subdir-ccflags-y += $(call cc-disable-warning, implicit-fallthrough) | 19 | subdir-ccflags-y += $(call cc-disable-warning, implicit-fallthrough) |
| 20 | subdir-ccflags-y += $(call cc-disable-warning, unused-but-set-variable) | 20 | subdir-ccflags-y += $(call cc-disable-warning, unused-but-set-variable) |
| 21 | # clang warnings | ||
| 22 | subdir-ccflags-y += $(call cc-disable-warning, sign-compare) | ||
| 23 | subdir-ccflags-y += $(call cc-disable-warning, sometimes-uninitialized) | ||
| 24 | subdir-ccflags-y += $(call cc-disable-warning, initializer-overrides) | ||
| 21 | subdir-ccflags-$(CONFIG_DRM_I915_WERROR) += -Werror | 25 | subdir-ccflags-$(CONFIG_DRM_I915_WERROR) += -Werror |
| 22 | 26 | ||
| 23 | # Fine grained warnings disable | 27 | # Fine grained warnings disable |
| @@ -43,7 +47,8 @@ i915-y := i915_drv.o \ | |||
| 43 | intel_csr.o \ | 47 | intel_csr.o \ |
| 44 | intel_device_info.o \ | 48 | intel_device_info.o \ |
| 45 | intel_pm.o \ | 49 | intel_pm.o \ |
| 46 | intel_runtime_pm.o | 50 | intel_runtime_pm.o \ |
| 51 | intel_workarounds.o | ||
| 47 | 52 | ||
| 48 | i915-$(CONFIG_COMPAT) += i915_ioc32.o | 53 | i915-$(CONFIG_COMPAT) += i915_ioc32.o |
| 49 | i915-$(CONFIG_DEBUG_FS) += i915_debugfs.o intel_pipe_crc.o | 54 | i915-$(CONFIG_DEBUG_FS) += i915_debugfs.o intel_pipe_crc.o |
| @@ -66,11 +71,11 @@ i915-y += i915_cmd_parser.o \ | |||
| 66 | i915_gem_shrinker.o \ | 71 | i915_gem_shrinker.o \ |
| 67 | i915_gem_stolen.o \ | 72 | i915_gem_stolen.o \ |
| 68 | i915_gem_tiling.o \ | 73 | i915_gem_tiling.o \ |
| 69 | i915_gem_timeline.o \ | ||
| 70 | i915_gem_userptr.o \ | 74 | i915_gem_userptr.o \ |
| 71 | i915_gemfs.o \ | 75 | i915_gemfs.o \ |
| 72 | i915_query.o \ | 76 | i915_query.o \ |
| 73 | i915_request.o \ | 77 | i915_request.o \ |
| 78 | i915_timeline.o \ | ||
| 74 | i915_trace_points.o \ | 79 | i915_trace_points.o \ |
| 75 | i915_vma.o \ | 80 | i915_vma.o \ |
| 76 | intel_breadcrumbs.o \ | 81 | intel_breadcrumbs.o \ |
| @@ -79,7 +84,8 @@ i915-y += i915_cmd_parser.o \ | |||
| 79 | intel_lrc.o \ | 84 | intel_lrc.o \ |
| 80 | intel_mocs.o \ | 85 | intel_mocs.o \ |
| 81 | intel_ringbuffer.o \ | 86 | intel_ringbuffer.o \ |
| 82 | intel_uncore.o | 87 | intel_uncore.o \ |
| 88 | intel_wopcm.o | ||
| 83 | 89 | ||
| 84 | # general-purpose microcontroller (GuC) support | 90 | # general-purpose microcontroller (GuC) support |
| 85 | i915-y += intel_uc.o \ | 91 | i915-y += intel_uc.o \ |
| @@ -152,7 +158,8 @@ i915-y += dvo_ch7017.o \ | |||
| 152 | i915-$(CONFIG_DRM_I915_CAPTURE_ERROR) += i915_gpu_error.o | 158 | i915-$(CONFIG_DRM_I915_CAPTURE_ERROR) += i915_gpu_error.o |
| 153 | i915-$(CONFIG_DRM_I915_SELFTEST) += \ | 159 | i915-$(CONFIG_DRM_I915_SELFTEST) += \ |
| 154 | selftests/i915_random.o \ | 160 | selftests/i915_random.o \ |
| 155 | selftests/i915_selftest.o | 161 | selftests/i915_selftest.o \ |
| 162 | selftests/igt_flush_test.o | ||
| 156 | 163 | ||
| 157 | # virtual gpu code | 164 | # virtual gpu code |
| 158 | i915-y += i915_vgpu.o | 165 | i915-y += i915_vgpu.o |
| @@ -171,7 +178,8 @@ i915-y += i915_perf.o \ | |||
| 171 | i915_oa_glk.o \ | 178 | i915_oa_glk.o \ |
| 172 | i915_oa_cflgt2.o \ | 179 | i915_oa_cflgt2.o \ |
| 173 | i915_oa_cflgt3.o \ | 180 | i915_oa_cflgt3.o \ |
| 174 | i915_oa_cnl.o | 181 | i915_oa_cnl.o \ |
| 182 | i915_oa_icl.o | ||
| 175 | 183 | ||
| 176 | ifeq ($(CONFIG_DRM_I915_GVT),y) | 184 | ifeq ($(CONFIG_DRM_I915_GVT),y) |
| 177 | i915-y += intel_gvt.o | 185 | i915-y += intel_gvt.o |
