Skip to content

Commit 4e59869

Browse files
nickdesaulnierstorvalds
authored andcommitted
compiler-gcc.h: drop checks for older GCC versions
Now that GCC 5.1 is the minimally supported default, drop the values we don't use. Signed-off-by: Nick Desaulniers <ndesaulniers@google.com> Reviewed-by: Kees Cook <keescook@chromium.org> Reviewed-by: Nathan Chancellor <nathan@kernel.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 156102f commit 4e59869

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

‎include/linux/compiler-gcc.h‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,8 @@
9898

9999
#if GCC_VERSION >= 70000
100100
#define KASAN_ABI_VERSION 5
101-
#elif GCC_VERSION >= 50000
101+
#else
102102
#define KASAN_ABI_VERSION 4
103-
#elif GCC_VERSION >= 40902
104-
#define KASAN_ABI_VERSION 3
105103
#endif
106104

107105
#if __has_attribute(__no_sanitize_address__)

‎tools/include/linux/compiler-gcc.h‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@
1616
# define __fallthrough __attribute__ ((fallthrough))
1717
#endif
1818

19-
#if GCC_VERSION >= 40300
20-
# define __compiletime_error(message) __attribute__((error(message)))
21-
#endif /* GCC_VERSION >= 40300 */
19+
#define __compiletime_error(message) __attribute__((error(message)))
2220

2321
/* &a[0] degrades to a pointer: a different type from an array */
2422
#define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))

0 commit comments

Comments
 (0)