From: Andrew Morton <akpm@linux-foundation.org>
To: Josh Triplett <josh@joshtriplett.org>
Cc: linux-kernel@vger.kernel.org, linux-sparse@vger.kernel.org,
Ed Cashin <ecashin@coraid.com>,
Christopher Li <sparse@chrisli.org>,
Andi Kleen <ak@linux.intel.com>
Subject: Re: [PATCH] linux/compiler.h: Add __must_hold macro for functions called with a lock held
Date: Tue, 9 Oct 2012 13:06:37 -0700 [thread overview]
Message-ID: <20121009130637.5e61078f.akpm@linux-foundation.org> (raw)
In-Reply-To: <20121008020610.GA9197@leaf>
On Sun, 7 Oct 2012 19:06:10 -0700
Josh Triplett <josh@joshtriplett.org> wrote:
> linux/compiler.h has macros to denote functions that acquire or release
> locks, but not to denote functions called with a lock held that return
> with the lock still held. Add a __must_hold macro to cover that case.
hum. How does this work? Any code examples and sample sparse output?
Does it apply to all lock types, etc?
IOW, where is all this stuff documented?
next prev parent reply other threads:[~2012-10-09 20:06 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-08 2:06 [PATCH] linux/compiler.h: Add __must_hold macro for functions called with a lock held Josh Triplett
2012-10-09 20:06 ` Andrew Morton [this message]
2012-10-09 20:35 ` Ed Cashin
2012-10-09 20:36 ` Josh Triplett
2012-10-13 9:41 ` Sam Ravnborg
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=20121009130637.5e61078f.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=ak@linux.intel.com \
--cc=ecashin@coraid.com \
--cc=josh@joshtriplett.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sparse@vger.kernel.org \
--cc=sparse@chrisli.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).