Re: [Cocci] Adjustment for const qualification

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> This is rejected by the semantic patch parser.

The software version “Coccinelle 1.0.7-00472-g99fc302b” accepts the following
SmPL script variant.

@replacement@
attribute name __genl_const;
@@
-const
+__genl_const
 struct
(genl_multicast_group
|genl_ops
)


Would it be nice if such a transformation approach can work also without
the specified metavariable?
https://git.kernel.org/pub/scm/linux/kernel/git/backports/backports.git/tree/patches/0027-genl-const/genl-const.cocci?id=694b78f1533eb72c638c83754e0567630a93f456

Regards,
Markus
--
To unsubscribe from this list: send the line "unsubscribe backports" in



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux