fix conditional context test case with void
commitd1de74fffc9dcc7cd5eecf05b69d3df8091a4b3b
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>
Sun, 29 Jan 2017 11:34:07 +0000 (29 12:34 +0100)
committerChristopher Li <sparse@chrisli.org>
Mon, 13 Feb 2017 01:34:45 +0000 (13 09:34 +0800)
tree4c91ecde63254a296e14152aa5ce0dbbc2ef2a05
parentc6bbdaf57222d77d9c64b53b784372f8bfe70eda
fix conditional context test case with void

The test file for context checking contains a few test cases
with a conditional, mimicking kernels's __cond_lock().
But the macro involved use as condition the return value of
a function, _ca(), which itself returns void ...

Fix the test by giving _ca() a return type of 'int'.

CC: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Signed-off-by: Christopher Li <sparse@chrisli.org>
validation/context.c