mbox series

[00/12] Fix compilation with gcc 12

Message ID 20220518101657.1230416-1-david.marchand@redhat.com (mailing list archive)
Headers
Series Fix compilation with gcc 12 |

Message

David Marchand May 18, 2022, 10:16 a.m. UTC
  Fedora 36 is out since early may and comes with gcc 12.
This series fixes compilation or waives some checks.

There might be something fishy with rte_memcpy on x86 but, for now,
the rte_memcpy related fixes are on the caller side.

Some "base" drivers have issues, I chose the simple solution of waiving
the checks for them.

Compilation is the only thing checked.
Please driver maintainers, check nothing got broken.
  

Comments

Stephen Hemminger May 20, 2022, 8:13 p.m. UTC | #1
On Wed, 18 May 2022 12:16:45 +0200
David Marchand <david.marchand@redhat.com> wrote:

> Fedora 36 is out since early may and comes with gcc 12.
> This series fixes compilation or waives some checks.
> 
> There might be something fishy with rte_memcpy on x86 but, for now,
> the rte_memcpy related fixes are on the caller side.
> 
> Some "base" drivers have issues, I chose the simple solution of waiving
> the checks for them.
> 
> Compilation is the only thing checked.
> Please driver maintainers, check nothing got broken.
> 


We need to purge all code still using array size of one
instead of proper flex array member.
  
Morten Brørup May 21, 2022, 9:39 a.m. UTC | #2
> From: Stephen Hemminger [mailto:stephen@networkplumber.org]
> Sent: Friday, 20 May 2022 22.14
> 
> On Wed, 18 May 2022 12:16:45 +0200
> David Marchand <david.marchand@redhat.com> wrote:
> 
> > Fedora 36 is out since early may and comes with gcc 12.
> > This series fixes compilation or waives some checks.
> >
> > There might be something fishy with rte_memcpy on x86 but, for now,
> > the rte_memcpy related fixes are on the caller side.
> >
> > Some "base" drivers have issues, I chose the simple solution of
> waiving
> > the checks for them.
> >
> > Compilation is the only thing checked.
> > Please driver maintainers, check nothing got broken.
> >
> 
> 
> We need to purge all code still using array size of one
> instead of proper flex array member.

+1 to that!
  
David Marchand June 15, 2022, 8:49 a.m. UTC | #3
On Wed, May 18, 2022 at 12:17 PM David Marchand
<david.marchand@redhat.com> wrote:
>
> Fedora 36 is out since early may and comes with gcc 12.
> This series fixes compilation or waives some checks.
>
> There might be something fishy with rte_memcpy on x86 but, for now,
> the rte_memcpy related fixes are on the caller side.
>
> Some "base" drivers have issues, I chose the simple solution of waiving
> the checks for them.
>
> Compilation is the only thing checked.
> Please driver maintainers, check nothing got broken.

I applied the patches that got acked and that had no objection or
comment from maintainers (i.e. patch 3, 4, 5, 6, 9, 11).
I also cleaned the mess in bugzilla where we had multiple reports of
the same issues, or stale bugs that I can't reproduce with released
gcc 12.

I'll respin separately the patches for which I have clear comments,
and drop my patches waiving the compiler checks.

We still need to agree on the best approach to handle the new checks.
We have two rfc series from Stephen, how do we move forward?
  
Stephen Hemminger June 15, 2022, 2:45 p.m. UTC | #4
On Wed, 15 Jun 2022 10:49:17 +0200
David Marchand <david.marchand@redhat.com> wrote:

> On Wed, May 18, 2022 at 12:17 PM David Marchand
> <david.marchand@redhat.com> wrote:
> >
> > Fedora 36 is out since early may and comes with gcc 12.
> > This series fixes compilation or waives some checks.
> >
> > There might be something fishy with rte_memcpy on x86 but, for now,
> > the rte_memcpy related fixes are on the caller side.
> >
> > Some "base" drivers have issues, I chose the simple solution of waiving
> > the checks for them.
> >
> > Compilation is the only thing checked.
> > Please driver maintainers, check nothing got broken.  
> 
> I applied the patches that got acked and that had no objection or
> comment from maintainers (i.e. patch 3, 4, 5, 6, 9, 11).
> I also cleaned the mess in bugzilla where we had multiple reports of
> the same issues, or stale bugs that I can't reproduce with released
> gcc 12.
> 
> I'll respin separately the patches for which I have clear comments,
> and drop my patches waiving the compiler checks.
> 
> We still need to agree on the best approach to handle the new checks.
> We have two rfc series from Stephen, how do we move forward?

Lets fix all the bugs and remove any workarounds using pragma's.

Some of them may mean removing rte_memcpy where it is not needed.
  
Thomas Monjalon June 15, 2022, 2:59 p.m. UTC | #5
15/06/2022 16:45, Stephen Hemminger:
> On Wed, 15 Jun 2022 10:49:17 +0200
> David Marchand <david.marchand@redhat.com> wrote:
> 
> > On Wed, May 18, 2022 at 12:17 PM David Marchand
> > <david.marchand@redhat.com> wrote:
> > >
> > > Fedora 36 is out since early may and comes with gcc 12.
> > > This series fixes compilation or waives some checks.
> > >
> > > There might be something fishy with rte_memcpy on x86 but, for now,
> > > the rte_memcpy related fixes are on the caller side.
> > >
> > > Some "base" drivers have issues, I chose the simple solution of waiving
> > > the checks for them.
> > >
> > > Compilation is the only thing checked.
> > > Please driver maintainers, check nothing got broken.  
> > 
> > I applied the patches that got acked and that had no objection or
> > comment from maintainers (i.e. patch 3, 4, 5, 6, 9, 11).
> > I also cleaned the mess in bugzilla where we had multiple reports of
> > the same issues, or stale bugs that I can't reproduce with released
> > gcc 12.
> > 
> > I'll respin separately the patches for which I have clear comments,
> > and drop my patches waiving the compiler checks.
> > 
> > We still need to agree on the best approach to handle the new checks.
> > We have two rfc series from Stephen, how do we move forward?
> 
> Lets fix all the bugs and remove any workarounds using pragma's.
> 
> Some of them may mean removing rte_memcpy where it is not needed.

What about your series Stephen?
Please would you like to respin?
  
Stephen Hemminger June 15, 2022, 3:15 p.m. UTC | #6
On Wed, 15 Jun 2022 16:59:51 +0200
Thomas Monjalon <thomas@monjalon.net> wrote:

> 15/06/2022 16:45, Stephen Hemminger:
> > On Wed, 15 Jun 2022 10:49:17 +0200
> > David Marchand <david.marchand@redhat.com> wrote:
> >   
> > > On Wed, May 18, 2022 at 12:17 PM David Marchand
> > > <david.marchand@redhat.com> wrote:  
> > > >
> > > > Fedora 36 is out since early may and comes with gcc 12.
> > > > This series fixes compilation or waives some checks.
> > > >
> > > > There might be something fishy with rte_memcpy on x86 but, for now,
> > > > the rte_memcpy related fixes are on the caller side.
> > > >
> > > > Some "base" drivers have issues, I chose the simple solution of waiving
> > > > the checks for them.
> > > >
> > > > Compilation is the only thing checked.
> > > > Please driver maintainers, check nothing got broken.    
> > > 
> > > I applied the patches that got acked and that had no objection or
> > > comment from maintainers (i.e. patch 3, 4, 5, 6, 9, 11).
> > > I also cleaned the mess in bugzilla where we had multiple reports of
> > > the same issues, or stale bugs that I can't reproduce with released
> > > gcc 12.
> > > 
> > > I'll respin separately the patches for which I have clear comments,
> > > and drop my patches waiving the compiler checks.
> > > 
> > > We still need to agree on the best approach to handle the new checks.
> > > We have two rfc series from Stephen, how do we move forward?  
> > 
> > Lets fix all the bugs and remove any workarounds using pragma's.
> > 
> > Some of them may mean removing rte_memcpy where it is not needed.  
> 
> What about your series Stephen?
> Please would you like to respin?
> 
> 

Yes will recollate based on current main branch.