[Cocci] Adjustment for const qualification

Julia Lawall julia.lawall at lip6.fr
Wed Aug 15 11:28:07 CEST 2018



On Wed, 15 Aug 2018, SF Markus Elfring wrote:

> > https://git.kernel.org/pub/scm/linux/kernel/git/backports/backports.git/tree/patches/0027-genl-const/genl-const.cocci
>
> How do you think about to try the following SmPL script variant out?
>
> @replacement@
> @@
> -const
> +__genl_const
>  struct
> (
>  genl_multicast_group
> |genl_ops
> )

This is rejected by the semantic patch parser.

julia


More information about the Cocci mailing list