x86/boot: Remove unused function __fortify_panic()
authorNikolay Borisov <nik.borisov@suse.com>
Thu, 13 Jun 2024 11:08:37 +0000 (14:08 +0300)
committerBorislav Petkov (AMD) <bp@alien8.de>
Fri, 14 Jun 2024 16:08:45 +0000 (18:08 +0200)
commit71315037cb7d40cdb2f4fbefad31927f6e6caba5
tree5031a1fc634c4c0a5eb619bf3c01f2a5dc72d937
parent9b9eec8dc284f33f505cec48d88b42ebad4da9cc
x86/boot: Remove unused function __fortify_panic()

That function is only used when the kernel is compiled with FORTIFY_SOURCE and
when the kernel proper string.h header is used. The decompressor code doesn't
use the kernel proper header but has local copy which doesn't contain any
fortified implementations of the various string functions. As such
__fortify_panic() can never be called from the decompressor so remove it.

Signed-off-by: Nikolay Borisov <nik.borisov@suse.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/20240613110837.300273-1-nik.borisov@suse.com
arch/x86/boot/compressed/misc.c