Search Linux Wireless

Re: [RFC] networking: add and use skb_put_u8()

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

 



On Fri, 2017-06-16 at 12:16 +0200, Arend van Spriel wrote:
> 
> >      @@
> >      expression SKB, C, S;
> >      typedef u8;
> >      identifier fn = {skb_put};
> >      fresh identifier fn2 = fn ## "_u8";
> >      @@
> >      - *(u8 *)fn(SKB, S) = C;
> >      + fn2(SKB, C);
> > 
> > Note that due to the "C", the spatch isn't perfect, it should
> > have checked that C is 1, but there's also places that use a
> 
> Don't you mean "S" here?

Indeed, I mean S, will fix.

johannes



[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux