From: Carlo Landmeter Date: Tue, 1 Mar 2016 14:32:52 +0000 (+0100) Subject: Ensure correct return value type X-Git-Tag: zfs-0.7.0-rc1~216 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1a01c207cbf12a4a7934e327b94104ed4f8edb47;p=zfs Ensure correct return value type When compiling with musl libc the return type will be incorrect. Signed-off-by: Carlo Landmeter Signed-off-by: Brian Behlendorf Closes #4454 --- diff --git a/include/sys/zfs_context.h b/include/sys/zfs_context.h index cc626fdaa..e68223eb3 100644 --- a/include/sys/zfs_context.h +++ b/include/sys/zfs_context.h @@ -637,7 +637,7 @@ extern void delay(clock_t ticks); #define maxclsyspri -20 #define defclsyspri 0 -#define CPU_SEQID (pthread_self() & (max_ncpus - 1)) +#define CPU_SEQID ((uintptr_t)pthread_self() & (max_ncpus - 1)) #define kcred NULL #define CRED() NULL