Thread (21 messages) 21 messages, 11 authors, 2020-09-12

Re: [GIT] Networking

flat view

From: Julia Lawall <hidden>
Date: 2015-09-03 21:26:31
Also in: lkml


On Thu, 3 Sep 2015, Linus Torvalds wrote:
On Thu, Sep 3, 2015 at 1:55 PM, Julia Lawall [off-list ref] wrote:
quoted
There are 32 2-dimensional arrays in function parameters, and 1
3-dimensional array.  No 4-dimensional arrays.  I didn't check past that.
None of these has a sizeof or ARRAY_SIZE.

The three dimensional array is here: drivers/media/dvb-frontends/stv0367.c
Ok. That actually looks like a valid use of the C function argument
array passing semantics. It's rather much simpler than exposing the
pointers.

So I guess we don't really end up wanting to disallow this, and the
new gcc array sizeof warning is good enough.

Thanks for running the analysis so that I didn't have to look at it ;)
The double arrays also look OK - the uses are also explicit double array 
references.

julia
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help