On Thu, 15 Sep 2016, Waldemar Rymarkiewicz wrote:
> On 15 September 2016 at 08:41, Waldemar Rymarkiewicz
> wrote:
> >> OK, thanks I will look into it. At least in the last case, that is not
> >> the intended behavior.
> >>
> >
> > One more, I use 1.0.2 version
On 15 September 2016 at 08:41, Waldemar Rymarkiewicz
wrote:
>> OK, thanks I will look into it. At least in the last case, that is not
>> the intended behavior.
>>
>
> One more, I use 1.0.2 version as I had a problem with 1.0.5
> compilation previously.
> I will
> OK, thanks I will look into it. At least in the last case, that is not
> the intended behavior.
>
One more, I use 1.0.2 version as I had a problem with 1.0.5
compilation previously.
I will try bump to 1.0. 5 anyway and check the behavior.
/Waldek
On Thu, 15 Sep 2016, Waldemar Rymarkiewicz wrote:
> >
> > Could you send the exact semantic patch that you tried? Coccinelle should
> > allos parsing #defines.
>
> Simply
>
> @@
> @@
> -#define pr_fmt(fmt) KBUILD_MODNAME
>
> works, but
>
> @@
> @@
> -#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
On Wed, 14 Sep 2016, Waldemar Rymarkiewicz wrote:
> Hi,
>
> I'm new to cocci and try to understand how all this things work. I
> have a problem with matching a #define in a patch.
>
> I wan to match local definition
>
>#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
>
> and add #undef it