mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 10:37:35 +03:00
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:
committed by
Tony Hutter
parent
f4e66db401
commit
b2bef90465
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user