validation: In context test, make conditional acquire return a status
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.
Signed-off-by Josh Triplett <[email protected]>
--- validation/context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
validation/context.c +1 -1
@@ -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