From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757515AbbICV0b (ORCPT ); Thu, 3 Sep 2015 17:26:31 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:27954 "EHLO mail2-relais-roc.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753615AbbICV02 (ORCPT ); Thu, 3 Sep 2015 17:26:28 -0400 X-IronPort-AV: E=Sophos;i="5.17,464,1437429600"; d="scan'208";a="175958419" Date: Thu, 3 Sep 2015 23:26:26 +0200 (CEST) From: Julia Lawall X-X-Sender: jll@localhost6.localdomain6 To: Linus Torvalds cc: Joe Perches , David Miller , Lorenzo Bianconi , Johannes Berg , Andrew Morton , Network Development , Linux Kernel Mailing List Subject: Re: [GIT] Networking In-Reply-To: Message-ID: References: <20150902.223522.1792493140210966693.davem@davemloft.net> <20150903.104032.767889134756094076.davem@davemloft.net> <1441305296.9666.14.camel@perches.com> User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 3 Sep 2015, Linus Torvalds wrote: > On Thu, Sep 3, 2015 at 1:55 PM, Julia Lawall wrote: > > > > 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