All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/i915: Ignore frequent clang warnings
@ 2017-11-07 19:06 Chris Wilson
  2017-11-07 19:11 ` Chris Wilson
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Chris Wilson @ 2017-11-07 19:06 UTC (permalink / raw)
  To: intel-gfx

In order to reduce the flood of common errors reported by clang, add
them to the exclusion list in the Makefile. The plan is to taken them
slowly, most of the -Wsign-compare fixes should be trivial, and may even
find a bug or two!

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
---
 drivers/gpu/drm/i915/Makefile | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/i915/Makefile b/drivers/gpu/drm/i915/Makefile
index 177404462386..03c08be30a1c 100644
--- a/drivers/gpu/drm/i915/Makefile
+++ b/drivers/gpu/drm/i915/Makefile
@@ -17,11 +17,16 @@ subdir-ccflags-y += $(call cc-disable-warning, unused-parameter)
 subdir-ccflags-y += $(call cc-disable-warning, type-limits)
 subdir-ccflags-y += $(call cc-disable-warning, missing-field-initializers)
 subdir-ccflags-y += $(call cc-disable-warning, implicit-fallthrough)
+subdir-ccflags-y += $(call cc-disable-warning, sign-compare)
+subdir-ccflags-y += $(call cc-disable-warning, ignored-attributes)
 subdir-ccflags-$(CONFIG_DRM_I915_WERROR) += -Werror
 
 # Fine grained warnings disable
-CFLAGS_i915_pci.o = $(call cc-disable-warning, override-init)
-CFLAGS_intel_fbdev.o = $(call cc-disable-warning, override-init)
+allow_init_inheritance := \
+	$(call cc-disable-warning, override-init) \
+	$(call cc-disable-warning, initializer-overrides)
+CFLAGS_i915_pci.o = $(allow_init_inheritance)
+CFLAGS_intel_fbdev.o = $(allow_init_inheritance)
 
 subdir-ccflags-y += \
 	$(call as-instr,movntdqa (%eax)$(comma)%xmm0,-DCONFIG_AS_MOVNTDQA)
-- 
2.15.0

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

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

end of thread, other threads:[~2017-11-08 12:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-07 19:06 [PATCH] drm/i915: Ignore frequent clang warnings Chris Wilson
2017-11-07 19:11 ` Chris Wilson
2017-11-08  8:56 ` ✗ Fi.CI.BAT: failure for " Patchwork
2017-11-08 12:23 ` ✓ Fi.CI.BAT: success " Patchwork

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.