From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark McLoughlin Subject: Re: [PATCH] Fix COMPAT_csum_offset #endif in virtio_net.c Date: Wed, 10 Sep 2008 18:35:16 +0100 Message-ID: <1221068116.31151.11.camel@blaa> References: <20080825124235.GA27216@tolk.kyne.com.au> Reply-To: Mark McLoughlin Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org To: Mark Pulford Return-path: Received: from mx2.redhat.com ([66.187.237.31]:43888 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751232AbYIJRhH (ORCPT ); Wed, 10 Sep 2008 13:37:07 -0400 In-Reply-To: <20080825124235.GA27216@tolk.kyne.com.au> Sender: kvm-owner@vger.kernel.org List-ID: On Mon, 2008-08-25 at 22:12 +0930, Mark Pulford wrote: > Fix COMPAT_csum_offset #else/#endif block in virtio_net.c. The #endif > was being output 1 line too early. > > Signed-off-by: Mark Pulford > > diff --git a/hack-module.awk b/hack-module.awk > index a3275fa..7cb9381 100644 > --- a/hack-module.awk > +++ b/hack-module.awk > @@ -134,6 +134,9 @@ > print "\t\thdr->csum_start = skb->h.raw - skb->data;"; > print "\t\thdr->csum_offset = skb->csum;"; > print "#else" > +} > + > +/hdr->csum_offset = skb->csum_offset/ { > need_endif = 1; > } This looks right to me; I had a slightly uglier version that I forgot to upstream. Acked-by: Mark McLoughlin Cheers, Mark.