linux-sparse.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Josh Triplett <josh@freedesktop.org>
To: sylvain nahas <sylvain.nahas@googlemail.com>
Cc: linux-sparse@vger.kernel.org
Subject: Re: [PATCH] activate context checking when context input and output values in __attribute__() are the same and different of zero
Date: Mon, 21 Apr 2008 12:17:33 -0700	[thread overview]
Message-ID: <480CE84D.3020102@freedesktop.org> (raw)
In-Reply-To: <b98a45740802041242h35874d1fr563b92a122d30139@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 509 bytes --]

sylvain nahas wrote:
> the following patch activates context checking when context input and
> output values are the same and different of zero in
> __attribute__((context())), by making the parser generate a OP_CONTEXT
> pseudo instruction.
> 
> Use case: specify that a function needs to be called in locked context.

I have applied a patch from Johannes Berg which should also address this
problem.  Could you confirm that current Sparse from Git has the behavior
you want?

- Josh Triplett


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 252 bytes --]

      reply	other threads:[~2008-04-21 19:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-04 20:42 [PATCH] activate context checking when context input and output values in __attribute__() are the same and different of zero sylvain nahas
2008-04-21 19:17 ` Josh Triplett [this message]

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=480CE84D.3020102@freedesktop.org \
    --to=josh@freedesktop.org \
    --cc=linux-sparse@vger.kernel.org \
    --cc=sylvain.nahas@googlemail.com \
    /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).