All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm: enable warnings on unused static inlines
@ 2024-09-04 12:38 Jani Nikula
  2024-09-04 12:55 ` ✓ CI.Patch_applied: success for " Patchwork
                   ` (10 more replies)
  0 siblings, 11 replies; 14+ messages in thread
From: Jani Nikula @ 2024-09-04 12:38 UTC (permalink / raw)
  To: dri-devel; +Cc: intel-gfx, intel-xe, jani.nikula, Nathan Chancellor

We enable most W=1 warnings by default subsystem wide. Also enable
warnings on unused static inlines when building with clang.

See also commit 6863f5643dd7 ("kbuild: allow Clang to find unused static
inline functions for W=1 build").

Cc: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
---
 drivers/gpu/drm/Makefile | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/gpu/drm/Makefile b/drivers/gpu/drm/Makefile
index 784229d4504d..6bd2cdb08be7 100644
--- a/drivers/gpu/drm/Makefile
+++ b/drivers/gpu/drm/Makefile
@@ -19,6 +19,9 @@ subdir-ccflags-y += $(call cc-option, -Wformat-overflow)
 # FIXME: fix -Wformat-truncation warnings and uncomment
 #subdir-ccflags-y += $(call cc-option, -Wformat-truncation)
 subdir-ccflags-y += $(call cc-option, -Wstringop-truncation)
+
+subdir-ccflags-y += -DKBUILD_EXTRA_WARN1
+
 # The following turn off the warnings enabled by -Wextra
 ifeq ($(findstring 2, $(KBUILD_EXTRA_WARN)),)
 subdir-ccflags-y += -Wno-missing-field-initializers
-- 
2.39.2


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

end of thread, other threads:[~2024-09-10 10:05 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-04 12:38 [PATCH] drm: enable warnings on unused static inlines Jani Nikula
2024-09-04 12:55 ` ✓ CI.Patch_applied: success for " Patchwork
2024-09-04 12:55 ` ✓ CI.checkpatch: " Patchwork
2024-09-04 12:56 ` ✓ CI.KUnit: " Patchwork
2024-09-04 13:08 ` ✓ CI.Build: " Patchwork
2024-09-04 13:10 ` ✓ CI.Hooks: " Patchwork
2024-09-04 13:12 ` ✗ CI.checksparse: warning " Patchwork
2024-09-04 13:18 ` ✗ Fi.CI.SPARSE: " Patchwork
2024-09-04 13:33 ` ✓ Fi.CI.BAT: success " Patchwork
2024-09-04 22:30 ` [PATCH] " Nathan Chancellor
2024-09-05  7:32   ` Jani Nikula
2024-09-10 10:05     ` Jani Nikula
2024-09-05 12:18 ` ✗ Fi.CI.IGT: failure for " Patchwork
2024-09-06 14:38 ` ✓ CI.FULL: 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.