]> www.infradead.org Git - users/jedix/linux-maple.git/commit
fortify: Move remaining fortify helpers into fortify-string.h
authorKees Cook <keescook@chromium.org>
Wed, 14 Apr 2021 22:45:39 +0000 (15:45 -0700)
committerKees Cook <keescook@chromium.org>
Thu, 26 Aug 2021 02:48:15 +0000 (19:48 -0700)
commit1d6422a2ba02c3fcb3e40f66408cb31719176ad5
treeaa59b2dc0f575f69195c944d88ec6276a6b2c9fd
parent434261c89f825b523255efbee6e4c0d12019f475
fortify: Move remaining fortify helpers into fortify-string.h

When commit a28a6e860c6c ("string.h: move fortified functions definitions
in a dedicated header.") moved the fortify-specific code, some helpers
were left behind. Move the remaining fortify-specific helpers into
fortify-string.h so they're together where they're used. This requires
that any FORTIFY helper function prototypes be conditionally built to
avoid "no prototype" warnings. Additionally removes unused helpers.

Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Daniel Axtens <dja@axtens.net>
Cc: Vincenzo Frascino <vincenzo.frascino@arm.com>
Cc: Andrey Konovalov <andreyknvl@google.com>
Cc: Dan Williams <dan.j.williams@intel.com>
Acked-by: Francis Laniel <laniel_francis@privacyrequired.com>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
include/linux/fortify-string.h
include/linux/string.h
lib/string_helpers.c