Skip to content

Commit 1032a2a

Browse files
committed
drm/i915: use upstream version of header tests
Throw out our local hacks of header tests now that the more generic kbuild versions are upstream. At least for now, continue to keep the header tests behind CONFIG_DRM_I915_WERROR=y knob. Cc: Chris Wilson <[email protected]> Reviewed-by: Chris Wilson <[email protected]> Signed-off-by: Jani Nikula <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 301efe9 commit 1032a2a

File tree

11 files changed

+7
-96
lines changed

11 files changed

+7
-96
lines changed

drivers/gpu/drm/i915/Kconfig.debug

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ config DRM_I915_WERROR
77
# We use the dependency on !COMPILE_TEST to not be enabled in
88
# allmodconfig or allyesconfig configurations
99
depends on !COMPILE_TEST
10+
select HEADER_TEST
1011
default n
1112
help
1213
Add -Werror to the build flags for (and only for) i915.ko.

drivers/gpu/drm/i915/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ subdir-ccflags-y += \
3333
$(call as-instr,movntdqa (%eax)$(comma)%xmm0,-DCONFIG_AS_MOVNTDQA)
3434

3535
# Extra header tests
36-
include $(src)/Makefile.header-test
36+
header-test-pattern-$(CONFIG_DRM_I915_WERROR) := *.h
3737

3838
subdir-ccflags-y += -I$(srctree)/$(src)
3939

drivers/gpu/drm/i915/Makefile.header-test

Lines changed: 0 additions & 27 deletions
This file was deleted.

drivers/gpu/drm/i915/display/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
subdir-ccflags-y += -I$(srctree)/$(src)/..
33

44
# Extra header tests
5-
include $(src)/Makefile.header-test
5+
header-test-pattern-$(CONFIG_DRM_I915_WERROR) := *.h
6+
header-test- := intel_vbt_defs.h

drivers/gpu/drm/i915/display/Makefile.header-test

Lines changed: 0 additions & 16 deletions
This file was deleted.

drivers/gpu/drm/i915/gem/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
subdir-ccflags-y += -I$(srctree)/$(src)/..
33

44
# Extra header tests
5-
include $(src)/Makefile.header-test
5+
header-test-pattern-$(CONFIG_DRM_I915_WERROR) := *.h

drivers/gpu/drm/i915/gem/Makefile.header-test

Lines changed: 0 additions & 16 deletions
This file was deleted.

drivers/gpu/drm/i915/gt/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
subdir-ccflags-y += -I$(srctree)/$(src)/..
33

44
# Extra header tests
5-
include $(src)/Makefile.header-test
5+
header-test-pattern-$(CONFIG_DRM_I915_WERROR) := *.h

drivers/gpu/drm/i915/gt/Makefile.header-test

Lines changed: 0 additions & 16 deletions
This file was deleted.

drivers/gpu/drm/i915/gt/uc/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
subdir-ccflags-y += -I$(srctree)/$(src)/../..
33

44
# Extra header tests
5-
include $(src)/Makefile.header-test
5+
header-test-pattern-$(CONFIG_DRM_I915_WERROR) := *.h

0 commit comments

Comments
 (0)