[Cocci] Setting the section for a function with SmPL

SF Markus Elfring elfring at users.sourceforge.net
Thu Nov 2 16:00:48 CET 2017

>> @section_specification@
>> type T;
>> @@
>>  T rcar_pcie_enable_msi(...)
>> + __attribute__((section ("my_update")))
> I don't see any evidence that kernel developers would welcome this change
> in this form.

There is no welcome needed by them because the shown addition would be
nice for testing purposes.

I tried out if section specifications can be also supported by
the semantic patch language.
Does such functionality fit into the Coccinelle software?


More information about the Cocci mailing list