[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <6b70eecb1f571e51d772baea63fe66a92454b870.camel@redhat.com>
Date: Thu, 12 Oct 2023 15:32:30 +0200
From: Paolo Abeni <pabeni@...hat.com>
To: Willem de Bruijn <willemdebruijn.kernel@...il.com>, Florian Westphal
<fw@...len.de>
Cc: netdev@...r.kernel.org, Willem de Bruijn <willemb@...gle.com>, Tasmiya
Nalatwad <tasmiya@...ux.vnet.ibm.com>
Subject: Re: [PATCH net-next] net: gso_test: fix build with gcc-12 and
earlier
On Thu, 2023-10-12 at 08:15 -0400, Willem de Bruijn wrote:
> On Thu, Oct 12, 2023 at 8:09 AM Florian Westphal <fw@...len.de> wrote:
> >
> > gcc 12 errors out with:
> > net/core/gso_test.c:58:48: error: initializer element is not constant
> > 58 | .segs = (const unsigned int[]) { gso_size },
> >
> > This version isn't old (2022), so switch to preprocessor-bsaed constant
> > instead of 'static const int'.
> >
> > Cc: Willem de Bruijn <willemb@...gle.com>
> > Reported-by: Tasmiya Nalatwad <tasmiya@...ux.vnet.ibm.com>
> > Closes: https://lore.kernel.org/netdev/79fbe35c-4dd1-4f27-acb2-7a60794bc348@linux.vnet.ibm.com/
> > Fixes: 1b4fa28a8b07 ("net: parametrize skb_segment unit test to expand coverage")
> > Signed-off-by: Florian Westphal <fw@...len.de>
>
> Reviewed-by: Willem de Bruijn <willemb@...gle.com>
>
> Thanks for the fix, Florian!
>
> Note to self to not only rely on my default compiler.
Unless someone barks very loudly in the next 5', I'm going to
exceptionally apply this one well before the 24h grace period, for
obvious reasons.
Cheers,
Paolo
Powered by blists - more mailing lists