string.h: move fortified functions definitions in a dedicated header.
authorFrancis Laniel <laniel_francis@privacyrequired.com>
Fri, 26 Feb 2021 01:21:20 +0000 (17:21 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 26 Feb 2021 17:41:04 +0000 (09:41 -0800)
commita28a6e860c6cf231cf3c5171c75c342adcd00406
treea738c834c1dae47f29156701c163cad61074eecd
parent0e24465d3313832e82f8bd9ee2439da1367dd2e5
string.h: move fortified functions definitions in a dedicated header.

This patch adds fortify-string.h to contain fortified functions
definitions.  Thus, the code is more separated and compile time is
approximately 1% faster for people who do not set CONFIG_FORTIFY_SOURCE.

Link: https://lkml.kernel.org/r/20210111092141.22946-1-laniel_francis@privacyrequired.com
Link: https://lkml.kernel.org/r/20210111092141.22946-2-laniel_francis@privacyrequired.com
Signed-off-by: Francis Laniel <laniel_francis@privacyrequired.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/fortify-string.h [new file with mode: 0644]
include/linux/string.h