Linux 6.10 compat: Fix tracepoints definitions

__string field definition includes the source variable for a value
of the string when the TP hits; in 6.10+ kernels, __assign_str()
uses that to copy a value from src to the string, with older
kernels, __assign_str still accepted src as a second parameter.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Pavel Snajdr <snajpa@snajpa.net>
Co-authored-by: Tony Hutter <hutter2@llnl.gov>
Closes #16475
Closes #16515
This commit is contained in:
Pavel Snajdr
2024-09-17 22:38:02 +02:00
committed by Tony Hutter
parent f4e66db401
commit b2bef90465
6 changed files with 131 additions and 19 deletions
+6
View File
@@ -83,4 +83,10 @@ typedef struct user_namespace zidmap_t;
extern zidmap_t *zfs_init_idmap;
#ifdef HAVE_1ARG_ASSIGN_STR
#define __assign_str_impl(a, b) __assign_str(a)
#else
#define __assign_str_impl(a, b) __assign_str(a, b)
#endif
#endif /* _SPL_TYPES_H */