Re: -Wsizeof-array-div warnings in ethernet drivers

2019-09-17 Thread Lendacky, Thomas
On 9/17/19 2:32 AM, Nathan Chancellor wrote: > Hi all, > > Clang recently added a new diagnostic in r371605, -Wsizeof-array-div, > that tries to warn when sizeof(X) / sizeof(Y) does not compute the > number of elements in an array X (i.e., sizeof(Y) is wrong). See that > commit for more details: >

Re: -Wsizeof-array-div warnings in ethernet drivers

2019-09-17 Thread Nick Desaulniers
On Tue, Sep 17, 2019 at 6:27 AM Jose Abreu wrote: > > From: David Laight > Date: Sep/17/2019, 11:36:21 (UTC+00:00) > > > From: Jose Abreu > > > Sent: 17 September 2019 08:59 > > > From: Nathan Chancellor > > > Date: Sep/17/2019, 08:32:32 (UTC+00:00) > > > > > > > Hi all, > > > > > > > > Clang re

RE: -Wsizeof-array-div warnings in ethernet drivers

2019-09-17 Thread Jose Abreu
From: David Laight Date: Sep/17/2019, 11:36:21 (UTC+00:00) > From: Jose Abreu > > Sent: 17 September 2019 08:59 > > From: Nathan Chancellor > > Date: Sep/17/2019, 08:32:32 (UTC+00:00) > > > > > Hi all, > > > > > > Clang recently added a new diagnostic in r371605, -Wsizeof-array-div, > > > that

RE: -Wsizeof-array-div warnings in ethernet drivers

2019-09-17 Thread David Laight
From: Jose Abreu > Sent: 17 September 2019 08:59 > From: Nathan Chancellor > Date: Sep/17/2019, 08:32:32 (UTC+00:00) > > > Hi all, > > > > Clang recently added a new diagnostic in r371605, -Wsizeof-array-div, > > that tries to warn when sizeof(X) / sizeof(Y) does not compute the > > number of ele

RE: -Wsizeof-array-div warnings in ethernet drivers

2019-09-17 Thread Jose Abreu
From: Nathan Chancellor Date: Sep/17/2019, 08:32:32 (UTC+00:00) > Hi all, > > Clang recently added a new diagnostic in r371605, -Wsizeof-array-div, > that tries to warn when sizeof(X) / sizeof(Y) does not compute the > number of elements in an array X (i.e., sizeof(Y) is wrong). See that > commi