From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.6 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4043BC38A2A for ; Fri, 8 May 2020 19:38:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 11162218AC for ; Fri, 8 May 2020 19:38:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1588966739; bh=TVF1tf6NxsU/ettA9htZ19+xz7qF2EXHonAMXoKKwVE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=12W9OYVIIlVcCYZch1qBWzuHIJlOeIAzICE92/utktyeGpr3/TTSGCGJ9wMNoKU7e HAFxO60XjfGxZHUldEPpGjz9szmtg7x5Ry2p2i4UhltxRSwExjnXsYSadHUjzTuY5g rz7tXhdN2w9WZsZlOq92J1DDEdt3gwCmNZLl7iTU= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726825AbgEHTi6 (ORCPT ); Fri, 8 May 2020 15:38:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:37476 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726767AbgEHTi6 (ORCPT ); Fri, 8 May 2020 15:38:58 -0400 Received: from embeddedor (unknown [189.207.59.248]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7A4DC20725; Fri, 8 May 2020 19:38:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1588966737; bh=TVF1tf6NxsU/ettA9htZ19+xz7qF2EXHonAMXoKKwVE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=fEUa2hpQEVZ/5oNp1fr5qsCBw8GHgtMEJvhk+5/bCZYLMkOiF7tcXsTfELHccv7bK gaBqJ8v8aRf2VzYARtx9NSsWuSkEQtr52uc4DiUh/tLlhaQaM4jx9XCFmRcC867Uvh P8onb0BGagZbzRt//WbMxOJknZofArfkbeEQOkaw= Date: Fri, 8 May 2020 14:43:25 -0500 From: "Gustavo A. R. Silva" To: Bjorn Helgaas Cc: Bjorn Helgaas , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Kees Cook Subject: Re: [PATCH] PCI: Replace zero-length array with flexible-array Message-ID: <20200508194325.GD23375@embeddedor> References: <20200507190544.GA15633@embeddedor> <20200507201544.GA23633@bjorn-Precision-5520> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200507201544.GA23633@bjorn-Precision-5520> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org On Thu, May 07, 2020 at 03:15:44PM -0500, Bjorn Helgaas wrote: > On Thu, May 07, 2020 at 02:05:44PM -0500, Gustavo A. R. Silva wrote: > > The current codebase makes use of the zero-length array language > > extension to the C90 standard, but the preferred mechanism to declare > > variable-length types such as these ones is a flexible array member[1][2], > > introduced in C99: > > > > struct foo { > > int stuff; > > struct boo array[]; > > }; > > > > Signed-off-by: Gustavo A. R. Silva > > Applied to pci/misc for v5.8, thanks! > > I assume this takes care of everything in drivers/pci/, right? I'd > like to do them all at once, so if there are others, send another > patch and I'll squash them. I took a quick look but didn't see any. > Yep. I can confirm that these are the last zero-length arrays in drivers/pci/ :) Thanks -- Gustavo