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=-8.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT 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 73725C433E0 for ; Tue, 26 May 2020 08:46:50 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3BF292075F for ; Tue, 26 May 2020 08:46:50 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="BLM7FNXi"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=ti.com header.i=@ti.com header.b="MBeddPfv" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3BF292075F Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=ti.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-mtd-bounces+linux-mtd=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=fZmi4YG4510GNCyKWtD04XmgzWdDW/V63uEhfyd8Iuc=; b=BLM7FNXia5rtfv gYOI+4JQEbqfZQPhTtzdKN1yLCl8EjueswWp/DwSC/Wk/jj83NK21tlgBQ7Zifqsnm3aayKTvGJ/y dzY4g68gUPKnwVtvOGbnOG21o6568AigMW3jblFknD7O8w4KeyiS2ZW+4LbSzSPEsYM2OqwKRuFt0 wrIRhlaKCliBRs+HjrDDk+GOrXp/1qNo8IwipO0xnMniw7+S2A1v9ha+SL1riB6YgSZvqfyAnCkk0 AmKFWKVRQMYlu3L5OjU8b87HvL0sMkxa6l6Qu5FI0vzFB6JuPG1iI8s+PYCToSih+s30itHs2tTJE PR6EStUUYOIAHJMzMO+w==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jdVEO-0003zM-Cn; Tue, 26 May 2020 08:46:40 +0000 Received: from lelv0142.ext.ti.com ([198.47.23.249]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jdVEL-0003yk-Bq for linux-mtd@lists.infradead.org; Tue, 26 May 2020 08:46:39 +0000 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 04Q8kT6X068476; Tue, 26 May 2020 03:46:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1590482789; bh=0Y+nhVgwiEkxt0mUjsYykJjEaX7tRpeEpMLVHzZ+DNo=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=MBeddPfvkWYbQK5rg0wdmK+J1K0CaiHvzKIlC2eQ+rLbwImma31zzyfLRHlMNTibG JaMnPviNBJQhbcTHSZrHh5+fcKs54ZWfC7rhsz30mtDNaB8p/r+UM0dx4PZee8lb6N aXLuXXis2fFrBXsCQkZikQIMbTuZKRQQ5HNRv9yY= Received: from DLEE112.ent.ti.com (dlee112.ent.ti.com [157.170.170.23]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 04Q8kTJN097919 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 26 May 2020 03:46:29 -0500 Received: from DLEE102.ent.ti.com (157.170.170.32) by DLEE112.ent.ti.com (157.170.170.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Tue, 26 May 2020 03:46:28 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE102.ent.ti.com (157.170.170.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3 via Frontend Transport; Tue, 26 May 2020 03:46:28 -0500 Received: from a0132425.dhcp.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 04Q8kQPC063391; Tue, 26 May 2020 03:46:27 -0500 From: Vignesh Raghavendra To: Miquel Raynal , "Gustavo A. R. Silva" , Richard Weinberger Subject: Re: [PATCH] mtd: Replace zero-length array with flexible-array Date: Tue, 26 May 2020 14:16:23 +0530 Message-ID: <159048016213.21698.5509230411205527625.b4-ty@ti.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200507190033.GA15215@embeddedor> References: <20200507190033.GA15215@embeddedor> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200526_014637_540980_280E49AF X-CRM114-Status: GOOD ( 10.37 ) X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-mtd@lists.infradead.org, Vignesh Raghavendra , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-mtd" Errors-To: linux-mtd-bounces+linux-mtd=archiver.kernel.org@lists.infradead.org On Thu, 7 May 2020 14:00:33 -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[]; > }; > > [...] Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git cfi/next, thanks! Regards -- Vignesh ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/