diff options
author | Don Brady <[email protected]> | 2018-02-15 10:53:04 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2018-02-15 09:53:04 -0800 |
commit | 62d5c5531334c25918dad7f2b303eefe33da4f5a (patch) | |
tree | 1a488e1bf67a89ca6a2487a95db6a9500215dd3a | |
parent | ec7c1b914c096ff0ca95c8b04af07ca6d2be3c7a (diff) |
Address objtool check failures in lua module
The use of void __attribute__((noreturn)) in kernel builds
was causing lots of warnings if CONFIG_STACK_VALIDATION
is active. For now we just remove this attribute to achieve
clean builds for the Lua module. There was no significant
increase in the time to run the full channel_program ZTS tests.
Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: George Melikov <[email protected]>
Signed-off-by: Don Brady <[email protected]>
Closes #7173
-rw-r--r-- | module/lua/llimits.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/module/lua/llimits.h b/module/lua/llimits.h index 7d9e13797..eee8f0c2d 100644 --- a/module/lua/llimits.h +++ b/module/lua/llimits.h @@ -97,8 +97,10 @@ typedef LUAI_UACNUMBER l_uacNumber; /* ** non-return type +** +** Supress noreturn attribute in kernel builds to avoid objtool check warnings */ -#if defined(__GNUC__) +#if defined(__GNUC__) && !defined(_KERNEL) #define l_noret void __attribute__((noreturn)) #elif defined(_MSC_VER) #define l_noret void __declspec(noreturn) |