]> Git Repo - linux.git/commit
treewide: remove meaningless assignments in Makefiles
authorMasahiro Yamada <[email protected]>
Wed, 21 Feb 2024 13:42:01 +0000 (22:42 +0900)
committerNamhyung Kim <[email protected]>
Fri, 23 Feb 2024 22:19:07 +0000 (14:19 -0800)
commitc2bd08ba20a57e0ed55777a9d1724647a0f53e88
treec9f80489171a7722b8ae41206a374b8847ea643d
parent25412c0364f7110faa6053c73e3fd47ca956b8c3
treewide: remove meaningless assignments in Makefiles

In Makefiles, $(error ), $(warning ), and $(info ) expand to the empty
string, as explained in the GNU Make manual [1]:
 "The result of the expansion of this function is the empty string."

Therefore, they are no-op except for logging purposes.

$(shell ...) expands to the output of the command. It expands to the
empty string when the command does not print anything to stdout.
Hence, $(shell mkdir ...) is no-op except for creating the directory.

Remove meaningless assignments.

[1]: https://www.gnu.org/software/make/manual/make.html#Make-Control-Functions

Signed-off-by: Masahiro Yamada <[email protected]>
Reviewed-by: Arnaldo Carvalho de Melo <[email protected]>
Reviewed-by: Ian Rogers <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Namhyung Kim <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Adrian Hunter <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
tools/perf/Makefile.config
tools/perf/Makefile.perf
tools/perf/arch/arm64/Makefile
tools/perf/arch/loongarch/Makefile
tools/perf/arch/mips/Makefile
tools/perf/arch/powerpc/Makefile
tools/perf/arch/s390/Makefile
tools/perf/arch/x86/Makefile
tools/scripts/Makefile.include
tools/testing/selftests/kvm/Makefile
This page took 0.068043 seconds and 4 git commands to generate.