forked from wolfSSL/wolfssl
Merge pull request #8654 from douzzer/20250409-linuxkm-fortify_panic-6v8
20250409-linuxkm-fortify_panic-6v8
This commit is contained in:
@@ -137,7 +137,13 @@
|
|||||||
* fortify_panic().
|
* fortify_panic().
|
||||||
*/
|
*/
|
||||||
extern void __my_fortify_panic(const char *name) __noreturn __cold;
|
extern void __my_fortify_panic(const char *name) __noreturn __cold;
|
||||||
#define fortify_panic __my_fortify_panic
|
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6,8,0)
|
||||||
|
/* see linux 3d965b33e40d9 */
|
||||||
|
#define fortify_panic(func, write, avail, size, retfail) \
|
||||||
|
__my_fortify_panic(#func)
|
||||||
|
#else
|
||||||
|
#define fortify_panic __my_fortify_panic
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* the _FORTIFY_SOURCE macros and implementations for several string
|
/* the _FORTIFY_SOURCE macros and implementations for several string
|
||||||
|
Reference in New Issue
Block a user