Re: [PATCH] drm/i915: fix build issue when using clang

2022-02-14 Thread Tong Zhang
On Sun, Feb 13, 2022 at 10:39 AM Nathan Chancellor wrote: > > On Sat, Feb 12, 2022 at 10:51:06PM -0800, Tong Zhang wrote: > > drm/i915 target adds some extra cflags, especially it does re-apply -Wall. > > In clang this will override -Wno-format-security and cause the build to > > fail when CONFIG_

Re: [PATCH] drm/i915: fix build issue when using clang

2022-02-13 Thread Nathan Chancellor
On Sat, Feb 12, 2022 at 10:51:06PM -0800, Tong Zhang wrote: > drm/i915 target adds some extra cflags, especially it does re-apply -Wall. > In clang this will override -Wno-format-security and cause the build to > fail when CONFIG_DRM_I915_WERROR=y. While with GCC this does not happen. > We reapply

[PATCH] drm/i915: fix build issue when using clang

2022-02-12 Thread Tong Zhang
drm/i915 target adds some extra cflags, especially it does re-apply -Wall. In clang this will override -Wno-format-security and cause the build to fail when CONFIG_DRM_I915_WERROR=y. While with GCC this does not happen. We reapply -Wno-format-security here to get around this issue. drivers/gpu/drm