From: johannes@sipsolutions.net (Johannes Berg)
To: cocci@systeme.lip6.fr
Subject: [Cocci] using "attribute" in - context?
Date: Thu, 09 Feb 2017 14:03:11 +0100 [thread overview]
Message-ID: <1486645391.17671.1.camel@sipsolutions.net> (raw)
In-Reply-To: <alpine.DEB.2.20.1702091346030.2006@hadrien>
On Thu, 2017-02-09 at 13:47 +0100, Julia Lawall wrote:
>
> On Thu, 9 Feb 2017, Johannes Berg wrote:
>
> > Is there a way to make this work?
> >
> > @@
> > identifier fam;
> > attribute __ro_after_init;
> > attribute __genl_ro_after_init;
> > @@
> > ?struct genl_family fam
> > - __ro_after_init
> > + __genl_ro_after_init
> > ?= {...};
>
> Not currently, I think.??I think that Coccinelle only recognizes
> attributes on function definitions.
Ok, thanks. I'll just define __ro_after_init to nothing then :)
johannes
prev parent reply other threads:[~2017-02-09 13:03 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-09 11:48 [Cocci] using "attribute" in - context? Johannes Berg
2017-02-09 12:47 ` Julia Lawall
2017-02-09 13:03 ` Johannes Berg [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=1486645391.17671.1.camel@sipsolutions.net \
--to=johannes@sipsolutions.net \
--cc=cocci@systeme.lip6.fr \
/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