From: Josh Triplett <josh@joshtriplett.org>
To: linux-sparse@vger.kernel.org
Subject: [PATCH] validation: In context test, make conditional acquire return a status
Date: Sat, 1 Feb 2014 10:33:40 -0800 [thread overview]
Message-ID: <20140201183335.GA9697@leaf> (raw)
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
reply other threads:[~2014-02-01 18:33 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140201183335.GA9697@leaf \
--to=josh@joshtriplett.org \
--cc=linux-sparse@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).