aboutsummaryrefslogtreecommitdiffstats
path: root/include/sys/zfs_context.h
diff options
context:
space:
mode:
authorCarlo Landmeter <[email protected]>2016-03-01 15:32:52 +0100
committerBrian Behlendorf <[email protected]>2016-03-29 18:33:17 -0700
commit1a01c207cbf12a4a7934e327b94104ed4f8edb47 (patch)
tree161096e95fa0289d29c377993bf8056854884fc7 /include/sys/zfs_context.h
parent6d723925cf7d4d489f87d55c4907cbb9e6257196 (diff)
Ensure correct return value type
When compiling with musl libc the return type will be incorrect. Signed-off-by: Carlo Landmeter <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes #4454
Diffstat (limited to 'include/sys/zfs_context.h')
-rw-r--r--include/sys/zfs_context.h2
1 files changed, 1 insertions, 1 deletions
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