Messages in this thread Patch in this message | | | Date | Wed, 18 Oct 2023 09:55:56 -0700 | From | Nathan Chancellor <> | Subject | Re: [PATCH] lib: Kconfig: disable dynamic sanitizers for test builds |
| |
On Wed, Oct 18, 2023 at 06:22:14PM +0200, Marco Elver wrote: > On Wed, 18 Oct 2023 at 17:32, 'Hamza Mahfooz' via kasan-dev > <kasan-dev@googlegroups.com> wrote:
<snip>
> > diff --git a/lib/Kconfig.kmsan b/lib/Kconfig.kmsan > > index ef2c8f256c57..eb05c885d3fd 100644 > > --- a/lib/Kconfig.kmsan > > +++ b/lib/Kconfig.kmsan > > @@ -13,6 +13,7 @@ config KMSAN > > depends on HAVE_ARCH_KMSAN && HAVE_KMSAN_COMPILER > > depends on SLUB && DEBUG_KERNEL && !KASAN && !KCSAN > > depends on !PREEMPT_RT > > + depends on !COMPILE_TEST > > KMSAN already selects FRAME_WARN of 0 and should not cause you any > issues during build testing.
Yeah, this particular case is a bug in the AMDGPU dml2 Makefile, where CONFIG_FRAME_WARN=0 is not respected.
diff --git a/drivers/gpu/drm/amd/display/dc/dml2/Makefile b/drivers/gpu/drm/amd/display/dc/dml2/Makefile index f35ed8de260d..66431525f2a0 100644 --- a/drivers/gpu/drm/amd/display/dc/dml2/Makefile +++ b/drivers/gpu/drm/amd/display/dc/dml2/Makefile @@ -61,7 +61,7 @@ ifneq ($(CONFIG_FRAME_WARN),0) frame_warn_flag := -Wframe-larger-than=2048 endif -CFLAGS_$(AMDDALPATH)/dc/dml2/display_mode_core.o := $(dml2_ccflags) -Wframe-larger-than=2048 +CFLAGS_$(AMDDALPATH)/dc/dml2/display_mode_core.o := $(dml2_ccflags) $(frame_warn_flag) CFLAGS_$(AMDDALPATH)/dc/dml2/display_mode_util.o := $(dml2_ccflags) CFLAGS_$(AMDDALPATH)/dc/dml2/dml2_wrapper.o := $(dml2_ccflags) CFLAGS_$(AMDDALPATH)/dc/dml2/dml2_utils.o := $(dml2_ccflags) I will try to send that patch soon, unless one of the AMDGPU folks wants to beat me to it.
Cheers, Nathan
| |