From 13182e50b027c70bd63f53ca43598557d6b41e2e Mon Sep 17 00:00:00 2001 From: Joe Lawrence Date: Tue, 27 Sep 2022 16:41:48 -0400 Subject: [PATCH 103/108] gcc-plugin: update headers for gcc-12 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix build error seen on gcc (GCC) 12.1.1 20220507 (Red Hat 12.1.1-1): g++ -MMD -MP -I../kmod/patch -Iinsn -Wall -Wsign-compare -Wno-sign-conversion -g -Werror -shared -I/usr/lib/gcc/ppc64le-redhat-linux/12/plugin/include -Igcc-plugins -fPIC -fno-rtti -O2 -Wall gcc-plugins/ppc64le-plugin.c -o gcc-plugins/ppc64le-plugin.so In file included from /usr/include/features.h:490, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from /usr/lib/gcc/ppc64le-redhat-linux/12/plugin/include/system.h:46, from /usr/lib/gcc/ppc64le-redhat-linux/12/plugin/include/gcc-plugin.h:28, from gcc-plugins/gcc-common.h:6, from gcc-plugins/ppc64le-plugin.c:1: /usr/include/bits/error-ldbl.h:23:1: error: type of ‘error’ is unknown 23 | __LDBL_REDIR_DECL (error) | ^~~~~~~~~~~~~~~~~ /usr/include/bits/error-ldbl.h:23:1: error: ‘int error’ redeclared as different kind of entity 23 | __LDBL_REDIR_DECL (error) | ^~~~~~~~~~~~~~~~~ In file included from gcc-plugins/ppc64le-plugin.c:2: /usr/include/error.h:31:13: note: previous declaration ‘void error(int, int, const char*, ...)’ 31 | extern void error (int __status, int __errnum, const char *__format, ...) | ^~~~~ make[1]: *** [Makefile:39: gcc-plugins/ppc64le-plugin.so] Error 1 Signed-off-by: Joe Lawrence --- kpatch-build/gcc-plugins/ppc64le-plugin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kpatch-build/gcc-plugins/ppc64le-plugin.c b/kpatch-build/gcc-plugins/ppc64le-plugin.c index e3ec20f..ba4a01e 100644 --- a/kpatch-build/gcc-plugins/ppc64le-plugin.c +++ b/kpatch-build/gcc-plugins/ppc64le-plugin.c @@ -1,5 +1,5 @@ -#include "gcc-common.h" #include +#include "gcc-common.h" #define PLUGIN_NAME "ppc64le-plugin" -- 2.37.3