linuxkm/linuxkm_wc_port.h: on kernel >=6.8, for CONFIG_FORTIFY_SOURCE, use 5-arg fortify_panic() override macro.

This commit is contained in:
Daniel Pouzzner
2025-04-09 18:35:04 +00:00
parent 099eaf582c
commit a22bcc3667

View File

@@ -137,7 +137,13 @@
* fortify_panic().
*/
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
/* the _FORTIFY_SOURCE macros and implementations for several string