]> www.infradead.org Git - users/jedix/linux-maple.git/commit
gcc-plugins: Remove duplicate included header file stringpool.h
authorThorsten Blum <thorsten.blum@toblux.com>
Sat, 29 Jun 2024 23:36:09 +0000 (01:36 +0200)
committerKees Cook <kees@kernel.org>
Mon, 8 Jul 2024 19:20:32 +0000 (12:20 -0700)
commit18c18b1ff6c648ea62571554dfd698110757f894
tree82db649cbd7a2017f3567a560a96179ac6948b4e
parentef40d28f17bd384d7e0b630c7d83f108a526351b
gcc-plugins: Remove duplicate included header file stringpool.h

The header file stringpool.h is included for GCC version >= 8 and then
again for all versions.

Since the header file stringpool.h was added in GCC 4.9 and the kernel
currently requires GCC 5.1 as a minimum, remove the conditional include.

Including the header file only once removes the following warning
reported by make includecheck:

  stringpool.h is included more than once

However, it's important to include stringpool.h before attribs.h
because attribs.h uses some of its functions.

Compile-tested with GCC 14.

Signed-off-by: Thorsten Blum <thorsten.blum@toblux.com>
Link: https://lore.kernel.org/r/20240629233608.278028-2-thorsten.blum@toblux.com
Signed-off-by: Kees Cook <kees@kernel.org>
scripts/gcc-plugins/gcc-common.h