Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 25 Mar 2002 14:52:30 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 25 Mar 2002 14:52:20 -0500 Received: from tmr-02.dsl.thebiz.net ([216.238.38.204]:57102 "EHLO gatekeeper.tmr.com") by vger.kernel.org with ESMTP id ; Mon, 25 Mar 2002 14:52:02 -0500 Date: Mon, 25 Mar 2002 14:49:24 -0500 (EST) From: Bill Davidsen To: "David S. Miller" cc: rusty@rustcorp.com.au, Linux Kernel Mailing List Subject: Re: [patch] smaller kernels In-Reply-To: <20020324.215239.61846157.davem@redhat.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 24 Mar 2002, David S. Miller wrote: > From: Rusty Russell > Date: Mon, 25 Mar 2002 16:56:05 +1100 > > And I'm not sure DaveM'll appreciate this: > > > static inline char *__skb_pull(struct sk_buff *skb, unsigned int len) > > { > > skb->len-=len; > > - if (skb->len < skb->data_len) > > - BUG(); > > return skb->data+=len; > > } > > Rusty's right, I definitely won't take this, it catches problems > %99 of the time in the place that causes it. But, it makes the kernel smaller. And faster! ;-) -- bill davidsen CTO, TMR Associates, Inc Doing interesting things with little computers since 1979. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/