diff options
author | Brian Behlendorf <[email protected]> | 2020-11-02 21:39:50 +0000 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2020-11-03 09:51:15 -0800 |
commit | 54f10674f358d2eb53b4f3f2f4e0a1134979b13d (patch) | |
tree | c0c917c37d641ae35094a58b514817cf7af868e4 /include | |
parent | f8460e7e6210d7bbd5c2d5ff1fb421b6319e00cf (diff) |
Linux 5.10 compat: frame.h renamed objtool.h
In Linux 5.10 the linux/frame.h header was renamed linux/objtool.h.
Add a configure check to detect and use the correctly named header.
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #11085
Diffstat (limited to 'include')
-rw-r--r-- | include/sys/frame.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/sys/frame.h b/include/sys/frame.h index b6bbaa79b..caae85142 100644 --- a/include/sys/frame.h +++ b/include/sys/frame.h @@ -25,7 +25,11 @@ extern "C" { #if defined(__KERNEL__) && defined(HAVE_KERNEL_OBJTOOL) && \ defined(HAVE_STACK_FRAME_NON_STANDARD) +#if defined(HAVE_KERNEL_OBJTOOL_HEADER) +#include <linux/objtool.h> +#else #include <linux/frame.h> +#endif #else #define STACK_FRAME_NON_STANDARD(func) #endif |