Skip to contentSkip to conversation

validation: In context test, make conditional acquire return a status

PATCH New Josh Triplett 1 participant 1 message Feb 1, 2014 Sparse checker

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 validation: In context test, make conditional acquire return a status

The context test defines and tests a __cond_lock mechanism similar to the kernel, but then applies it to a function that returns void. Change that to int.

---
 validation/context.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
validation/context.c +1 -1
index 33b70b8..b9500dc 100644
@@ -10,7 +10,7 @@ static void r(void) __attribute__((context(1,0)))
 	__context__(-1);
 }
 
-extern void _ca(int fail);
+extern int _ca(int fail);
 #define ca(fail) __cond_lock(_ca(fail))
 
 static void good_paired1(void)
Signature · 1 line
1.9.rc1