From 787555158af55f1051e85d7aa29a8a4d1a24648c Mon Sep 17 00:00:00 2001 From: Zach Brown Date: Tue, 3 Apr 2018 10:58:07 -0700 Subject: [PATCH] scoutfs-utils: builtin rand returns int When we added these externs to silence some spurious sparse warning we forgot to give them a return value. Signed-off-by: Zach Brown --- utils/src/sparse.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/src/sparse.h b/utils/src/sparse.h index 3777e471..34fbbbaa 100644 --- a/utils/src/sparse.h +++ b/utils/src/sparse.h @@ -10,7 +10,7 @@ # undef __sp_biwise # define __sp_biwise __attribute__((bitwise)) /* sparse seems to get confused by some builtins */ -extern __builtin_ia32_rdrand64_step(unsigned long long *); +extern int __builtin_ia32_rdrand64_step(unsigned long long *); extern unsigned int __builtin_ia32_crc32di(unsigned int, unsigned long long); extern unsigned int __builtin_ia32_crc32si(unsigned int, unsigned int); extern unsigned int __builtin_ia32_crc32hi(unsigned int, unsigned short);