Re: sparse preprocessing confused

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

 



Morten Welinder wrote:-

> On 4/25/07, Randy Dunlap <rdunlap@xxxxxxxxxxxx> wrote:
> >Although this may just be a case of "it's fugly, kill it".
> >
> >In net/core/skbuff.c (2.6.21-rc7-mm1), we have:
> >
> >        memcpy(data + nhead, skb->head,
> >#ifdef NET_SKBUFF_DATA_USES_OFFSET
> >                skb->tail);
> >#else
> >                skb->tail - skb->head);
> >#endif
> 
> If memcpy happens to be a macro, that is not valid C.

It's undefined rather than invalid.  GCC makes an effort to
do "what you'd expect".

Neil.
-
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux