Re: [PATCH 1/2] kbuild: remove redundant $(wildcard ) for rm-files

From: Nicolas Schier
Date: Tue May 07 2024 - 05:49:34 EST


On Sun, Apr 28, 2024 at 12:32:52AM +0900, Masahiro Yamada wrote:
> The $(wildcard ) is called in quiet_cmd_rmfiles.
>
> Signed-off-by: Masahiro Yamada <masahiroy@xxxxxxxxxx>
> ---
>
> Makefile | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/Makefile b/Makefile
> index a1c19979e13e..62557fabfee5 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -1512,7 +1512,7 @@ clean: archclean vmlinuxclean resolve_btfids_clean
>
> # mrproper - Delete all generated files, including .config
> #
> -mrproper: rm-files := $(wildcard $(MRPROPER_FILES))
> +mrproper: rm-files := $(MRPROPER_FILES)
> mrproper-dirs := $(addprefix _mrproper_,scripts)
>
> PHONY += $(mrproper-dirs) mrproper
> --
> 2.40.1
>

Reviewed-by: Nicolas Schier <n.schier@xxxxxx>