From: julia.lawall@lip6.fr (Julia Lawall)
To: cocci@systeme.lip6.fr
Subject: [Cocci] using "attribute" in - context?
Date: Thu, 9 Feb 2017 13:47:00 +0100 (CET) [thread overview]
Message-ID: <alpine.DEB.2.20.1702091346030.2006@hadrien> (raw)
In-Reply-To: <1486640886.17671.0.camel@sipsolutions.net>
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.
julia
>
>
> Thanks,
> johannes
> _______________________________________________
> Cocci mailing list
> Cocci at systeme.lip6.fr
> https://systeme.lip6.fr/mailman/listinfo/cocci
>
next prev parent reply other threads:[~2017-02-09 12:47 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 [this message]
2017-02-09 13:03 ` Johannes Berg
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=alpine.DEB.2.20.1702091346030.2006@hadrien \
--to=julia.lawall@lip6.fr \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.