Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 788804 Details for
Bug 855182
sys-fs/zfs-kmod-2.1.5 with kernel linux-5.18.8-gentoo and 12.1.1_p20220625 - zfs-2.1.5/module/lua/ldo.c:172:9: error: infinite recursion detected [-Werror=infinite-recursion]
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
The patch which is working for this bug
Silence_-Winfinite-recursion_warning_in_luaD_throw.patch (text/plain), 2.21 KB, created by
Furude Rika
on 2022-06-30 00:09:21 UTC
(
hide
)
Description:
The patch which is working for this bug
Filename:
MIME Type:
Creator:
Furude Rika
Created:
2022-06-30 00:09:21 UTC
Size:
2.21 KB
patch
obsolete
>diff --git a/config/always-compiler-options.m4 b/config/always-compiler-options.m4 >index ce84f7e..0913916 100644 >--- a/config/always-compiler-options.m4 >+++ b/config/always-compiler-options.m4 >@@ -184,6 +184,26 @@ AC_DEFUN([ZFS_AC_CONFIG_ALWAYS_CC_IMPLICIT_FALLTHROUGH], [ > AC_SUBST([IMPLICIT_FALLTHROUGH]) > ]) > >+dnl # >+dnl # Check if cc supports -Winfinite-recursion option. >+dnl # >+AC_DEFUN([ZFS_AC_CONFIG_ALWAYS_CC_INFINITE_RECURSION], [ >+ AC_MSG_CHECKING([whether $CC supports -Winfinite-recursion]) >+ saved_flags="$CFLAGS" >+ CFLAGS="$CFLAGS -Werror -Winfinite-recursion" >+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], [])], [ >+ INFINITE_RECURSION=-Winfinite-recursion >+ AC_DEFINE([HAVE_INFINITE_RECURSION], 1, >+ [Define if compiler supports -Winfinite-recursion]) >+ AC_MSG_RESULT([yes]) >+ ], [ >+ INFINITE_RECURSION= >+ AC_MSG_RESULT([no]) >+ ]) >+ CFLAGS="$saved_flags" >+ AC_SUBST([INFINITE_RECURSION]) >+]) >+ > dnl # > dnl # Check if gcc supports -fno-omit-frame-pointer option. > dnl # >diff --git a/config/zfs-build.m4 b/config/zfs-build.m4 >index c60eb01..0f4775b 100644 >--- a/config/zfs-build.m4 >+++ b/config/zfs-build.m4 >@@ -209,6 +209,7 @@ AC_DEFUN([ZFS_AC_CONFIG_ALWAYS], [ > AX_COUNT_CPUS([]) > AC_SUBST(CPU_COUNT) > >+ ZFS_AC_CONFIG_ALWAYS_CC_INFINITE_RECURSION > ZFS_AC_CONFIG_ALWAYS_CC_NO_UNUSED_BUT_SET_VARIABLE > ZFS_AC_CONFIG_ALWAYS_CC_NO_BOOL_COMPARE > ZFS_AC_CONFIG_ALWAYS_CC_IMPLICIT_FALLTHROUGH >diff --git a/module/lua/ldo.c b/module/lua/ldo.c >index f3c3dcb..edae33f 100644 >--- a/module/lua/ldo.c >+++ b/module/lua/ldo.c >@@ -168,6 +168,13 @@ static void seterrorobj (lua_State *L, int errcode, StkId oldtop) { > L->top = oldtop + 1; > } > >+/* >+ * Silence infinite recursion warning which was added to -Wall in gcc 12.1 >+ */ >+#if defined(HAVE_INFINITE_RECURSION) >+#pragma GCC diagnostic push >+#pragma GCC diagnostic ignored "-Winfinite-recursion" >+#endif > > l_noret luaD_throw (lua_State *L, int errcode) { > if (L->errorJmp) { /* thread has an error handler? */ >@@ -191,6 +198,10 @@ l_noret luaD_throw (lua_State *L, int errcode) { > } > > >+#if defined(HAVE_INFINITE_RECURSION) >+#pragma GCC diagnostic pop >+#endif >+ > int luaD_rawrunprotected (lua_State *L, Pfunc f, void *ud) { > unsigned short oldnCcalls = L->nCcalls; > struct lua_longjmp lj;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 855182
:
788798
|
788801
| 788804