]> granicus.if.org Git - zfs/commitdiff
Ensure correct return value type
authorCarlo Landmeter <clandmeter@gmail.com>
Tue, 1 Mar 2016 14:32:52 +0000 (15:32 +0100)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 30 Mar 2016 01:33:17 +0000 (18:33 -0700)
When compiling with musl libc the return type will be incorrect.

Signed-off-by: Carlo Landmeter <clandmeter@gmail.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #4454

include/sys/zfs_context.h

index cc626fdaaae1a8c7ffe2322f360c275b7a744964..e68223eb30e6cfec79411a9a6fb94f2d9557ec89 100644 (file)
@@ -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