mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
zfs_onexit_add_cb: make action_handle point to a uintptr_t
Avoid assuming than a uint64_t can hold a pointer and reduce the number of casts in the process. Reviewed-by: Matthew Ahrens <mahrens@delphix.com> Reviewed-by: Richard Yao <richard.yao@alumni.stonybrook.edu> Signed-off-by: Brooks Davis <brooks.davis@sri.com> Closes #14131
This commit is contained in:
committed by
Brian Behlendorf
parent
d96303cb07
commit
250b2bac78
@@ -1001,7 +1001,7 @@ zfs_onexit_fd_rele(zfs_file_t *fp)
|
||||
|
||||
int
|
||||
zfs_onexit_add_cb(minor_t minor, void (*func)(void *), void *data,
|
||||
uint64_t *action_handle)
|
||||
uintptr_t *action_handle)
|
||||
{
|
||||
(void) minor, (void) func, (void) data, (void) action_handle;
|
||||
return (0);
|
||||
|
||||
Reference in New Issue
Block a user