Lines Matching +full:- +full:- +full:enable +full:- +full:werror

1 # SPDX-License-Identifier: GPL-2.0
6 # Add a set of useful warning flags and enable -Werror for CI to prevent
8 # any patch that isn't warning clean, so turning on -Wall -Wextra (or W=1) we
12 # Note the danger in using -Wall -Wextra is that when CI updates gcc we
15 subdir-ccflags-y := -Wall -Wextra
16 subdir-ccflags-y += -Wno-format-security
17 subdir-ccflags-y += -Wno-unused-parameter
18 subdir-ccflags-y += -Wno-type-limits
19 subdir-ccflags-y += -Wno-missing-field-initializers
20 subdir-ccflags-y += -Wno-sign-compare
21 subdir-ccflags-y += -Wno-shift-negative-value
22 subdir-ccflags-y += $(call cc-option, -Wunused-but-set-variable)
23 subdir-ccflags-y += $(call cc-disable-warning, frame-address)
24 subdir-ccflags-$(CONFIG_DRM_I915_WERROR) += -Werror
27 CFLAGS_i915_pci.o = $(call cc-disable-warning, override-init)
28 CFLAGS_display/intel_display_device.o = $(call cc-disable-warning, override-init)
29 CFLAGS_display/intel_fbdev.o = $(call cc-disable-warning, override-init)
31 subdir-ccflags-y += -I$(srctree)/$(src)
36 i915-y += i915_driver.o \
65 i915-y += \
71 i915-y += \
79 i915-$(CONFIG_COMPAT) += i915_ioc32.o
80 i915-$(CONFIG_DEBUG_FS) += \
85 i915-$(CONFIG_PERF_EVENTS) += i915_pmu.o
88 gt-y += \
142 # x86 intel-gtt module support
143 gt-$(CONFIG_X86) += gt/intel_ggtt_gmch.o
145 gt-y += \
150 i915-y += $(gt-y)
153 gem-y += \
180 i915-y += \
181 $(gem-y) \
197 # general-purpose microcontroller (GuC) support
198 i915-y += \
224 i915-y += gt/intel_gsc.o
227 i915-$(CONFIG_HWMON) += i915_hwmon.o
230 i915-y += \
294 i915-$(CONFIG_ACPI) += \
297 i915-$(CONFIG_DRM_FBDEV_EMULATION) += \
301 i915-y += \
344 i915-y += i915_perf.o
347 i915-y += \
352 i915-$(CONFIG_DRM_I915_PXP) += \
360 # Post-mortem debug and GPU hang state capture
361 i915-$(CONFIG_DRM_I915_CAPTURE_ERROR) += i915_gpu_error.o
362 i915-$(CONFIG_DRM_I915_SELFTEST) += \
377 i915-y += i915_vgpu.o
379 i915-$(CONFIG_DRM_I915_GVT) += \
384 obj-$(CONFIG_DRM_I915) += i915.o
385 obj-$(CONFIG_DRM_I915_GVT_KVMGT) += kvmgt.o
387 # kernel-doc test
389 # Enable locally for CONFIG_DRM_I915_WERROR=y. See also scripts/Makefile.build
391 cmd_checkdoc = $(srctree)/scripts/kernel-doc -none -Werror $<
397 no-header-test := \
400 always-$(CONFIG_DRM_I915_WERROR) += \
401 $(patsubst %.h,%.hdrtest, $(filter-out $(no-header-test), \
402 $(shell cd $(srctree)/$(src) && find * -name '*.h')))
405 …cmd_hdrtest = $(CC) $(filter-out $(CFLAGS_GCOV), $(c_flags)) -S -o /dev/null -x c /dev/null -inclu…
406 $(srctree)/scripts/kernel-doc -none -Werror $<; touch $@