* [PATCH] validation: In context test, make conditional acquire return a status
@ 2014-02-01 18:33 Josh Triplett
0 siblings, 0 replies; only message in thread
From: Josh Triplett @ 2014-02-01 18:33 UTC (permalink / raw)
To: linux-sparse
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 <josh@joshtriplett.org>
---
validation/context.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/validation/context.c b/validation/context.c
index 33b70b8..b9500dc 100644
--- a/validation/context.c
+++ b/validation/context.c
@@ -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)
--
1.9.rc1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2014-02-01 18:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-01 18:33 [PATCH] validation: In context test, make conditional acquire return a status Josh Triplett
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).