Morten Welinder wrote:-

> On 4/25/07, Randy Dunlap <[EMAIL PROTECTED]> 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 [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to