Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

fortify: move test_fortify.sh to lib/test_fortify/

This script is only used in lib/test_fortify/.

There is no reason to keep it in scripts/.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Link: https://lore.kernel.org/r/20240727150302.1823750-3-masahiroy@kernel.org
Signed-off-by: Kees Cook <kees@kernel.org>

authored by

Masahiro Yamada and committed by
Kees Cook
5a8d0c46 4e9903b0

+2 -3
-1
MAINTAINERS
··· 8772 8772 F: lib/fortify_kunit.c 8773 8773 F: lib/memcpy_kunit.c 8774 8774 F: lib/test_fortify/* 8775 - F: scripts/test_fortify.sh 8776 8775 K: \b__NO_FORTIFY\b 8777 8776 8778 8777 FPGA DFL DRIVERS
+2 -2
lib/test_fortify/Makefile
··· 3 3 ccflags-y := $(call cc-disable-warning,fortify-source) 4 4 5 5 quiet_cmd_test_fortify = TEST $@ 6 - cmd_test_fortify = $(CONFIG_SHELL) $(srctree)/scripts/test_fortify.sh \ 6 + cmd_test_fortify = $(CONFIG_SHELL) $(src)/test_fortify.sh \ 7 7 $< $@ "$(NM)" $(CC) $(c_flags) -DKBUILD_EXTRA_WARN1 8 8 9 - $(obj)/%.log: $(src)/%.c $(srctree)/scripts/test_fortify.sh \ 9 + $(obj)/%.log: $(src)/%.c $(src)/test_fortify.sh \ 10 10 $(src)/test_fortify.h \ 11 11 $(srctree)/include/linux/fortify-string.h \ 12 12 FORCE
scripts/test_fortify.sh lib/test_fortify/test_fortify.sh