From mboxrd@z Thu Jan 1 00:00:00 1970 From: johannes@sipsolutions.net (Johannes Berg) Date: Mon, 25 Jun 2018 22:33:52 +0200 Subject: [Cocci] Parse error with genl-const.cocci In-Reply-To: References: <925f98d2-047f-785f-4162-21b53a77cd62@gmail.com> <1512116859.25588.4.camel@sipsolutions.net> <1512120542.25588.7.camel@sipsolutions.net> Message-ID: <1529958832.10347.5.camel@sipsolutions.net> To: cocci@systeme.lip6.fr List-Id: cocci@systeme.lip6.fr Julia, > I updated the github version of Coccinelle such that > patches/0027-genl-const/genl-const.cocci > will almost parse correctly. The only thing that remains is to change > attribute into attribute name. I'm not sure why, but for some reason I thought back then (https://git.k ernel.org/pub/scm/linux/kernel/git/backports/backports.git/commit/?id=98 272f479c2126a135dfcb12484e93d5888164ab) that the following would work with 1.0.6: @@ attribute name __genl_const; @@ ( -const struct genl_multicast_group +__genl_const struct genl_multicast_group | -const struct genl_ops +__genl_const struct genl_ops ) However, Hauke pointed out it doesn't, and I can confirm. On 1.0.6, I can't get this to work at all, it refuses to parse "attribute name" and it refuses to parse the patch part with just "attribute". Is there any way to get this to work again? johannes