]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
gcc-plugins: randstruct: Remove GCC 4.7 or newer requirement
authorThorsten Blum <thorsten.blum@toblux.com>
Tue, 23 Jul 2024 16:53:31 +0000 (18:53 +0200)
committerKees Cook <kees@kernel.org>
Mon, 5 Aug 2024 21:34:23 +0000 (14:34 -0700)
Since the kernel currently requires GCC 5.1 as a minimum, remove the
unnecessary GCC version >= 4.7 check.

Signed-off-by: Thorsten Blum <thorsten.blum@toblux.com>
Link: https://lore.kernel.org/r/20240723165332.1947-1-thorsten.blum@toblux.com
Signed-off-by: Kees Cook <kees@kernel.org>
scripts/gcc-plugins/randomize_layout_plugin.c

index 746ff2d272f25667d31dbe2299ce00e2f9ea000a..5694df3da2e95b0a606f7174acdd89adc9b1a9e0 100644 (file)
 #include "gcc-common.h"
 #include "randomize_layout_seed.h"
 
-#if BUILDING_GCC_MAJOR < 4 || (BUILDING_GCC_MAJOR == 4 && BUILDING_GCC_MINOR < 7)
-#error "The RANDSTRUCT plugin requires GCC 4.7 or newer."
-#endif
-
 #define ORIG_TYPE_NAME(node) \
        (TYPE_NAME(TYPE_MAIN_VARIANT(node)) != NULL_TREE ? ((const unsigned char *)IDENTIFIER_POINTER(TYPE_NAME(TYPE_MAIN_VARIANT(node)))) : (const unsigned char *)"anonymous")