Re: [PATCH] compiler: Use __typeof_unqual__() for __unqual_scalar_typeof()

From: Dan Carpenter

Date: Wed Feb 25 2026 - 03:16:11 EST


On Fri, Jan 16, 2026 at 07:18:16PM +0100, Thomas Gleixner wrote:
> --- a/Makefile
> +++ b/Makefile
> @@ -1178,6 +1178,14 @@ ifdef CONFIG_CC_IS_CLANG
> KBUILD_USERLDFLAGS += --ld-path=$(LD)
> endif
>
> +# Validate the checker is available and functional
> +ifneq ($(KBUILD_CHECKSRC), 0)
> + ifneq ($(shell $(srctree)/scripts/checker-valid.sh $(CHECK)), 1)
> + $(warning C=$(KBUILD_CHECKSRC) specified, but $(CHECK) is not available or not up to date)
> + KBUILD_CHECKSRC = 0
> + endif
> +endif
> +

This means we can't run "CHECK="valgrind smatch -p=kernel" because
valgrind always prints output to stderr. So hopefully we can
eventually remove this check.

regards,
dan carpenter