Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2301BC001DC for ; Mon, 31 Jul 2023 06:06:46 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id A27544029B; Mon, 31 Jul 2023 06:06:46 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org A27544029B Authentication-Results: smtp2.osuosl.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=tz5rVBBN X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5BmZnyPqUno0; Mon, 31 Jul 2023 06:06:45 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [IPv6:2605:bc80:3010:104::8cd3:938]) by smtp2.osuosl.org (Postfix) with ESMTPS id 8D05140545; Mon, 31 Jul 2023 06:06:45 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 8D05140545 Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 5A426C0072; Mon, 31 Jul 2023 06:06:45 +0000 (UTC) Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138]) by lists.linuxfoundation.org (Postfix) with ESMTP id 1BE30C0032 for ; Mon, 31 Jul 2023 06:06:44 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id E3D79817F2 for ; Mon, 31 Jul 2023 06:06:43 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org E3D79817F2 Authentication-Results: smtp1.osuosl.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=tz5rVBBN X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1rChuJkhq_Cj for ; Mon, 31 Jul 2023 06:06:42 +0000 (UTC) Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by smtp1.osuosl.org (Postfix) with ESMTPS id 8DEC7817C3 for ; Mon, 31 Jul 2023 06:06:42 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 8DEC7817C3 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 2F86D60E93; Mon, 31 Jul 2023 06:06:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 206ECC433C8; Mon, 31 Jul 2023 06:06:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1690783600; bh=qlOloexHmK5azai4yKU65ocCjL+u2EAET1zxfp24q+c=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=tz5rVBBNBN6dzaxDuHwsTDdX+Z+Iqna32Hfp9JkSQzXAos6VrCKmbDAyQj3bNHxEi iZBIZ0VkC4i7juI+RXgF9hK33UtLHzL1LoOv/iXLXREWhVYvfaVSmOVnskd+UMai2s XYHOQIpWyD6xLJVmCqsARR15NH1oelrdXgeMilbI= Date: Mon, 31 Jul 2023 08:06:35 +0200 From: Greg KH To: Atul Raut Subject: Re: [PATCH] mtd: rawnand: Replace zero-length arrays with DECLARE_FLEX_ARRAY() helper Message-ID: <2023073114-hummus-unmapped-99b9@gregkh> References: <20230731020014.23951-1-rauji.raut@gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20230731020014.23951-1-rauji.raut@gmail.com> Cc: linux-kernel-mentees@lists.linuxfoundation.org, dev@lynxeye.de, stefan@agner.ch X-BeenThere: linux-kernel-mentees@lists.linuxfoundation.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-kernel-mentees-bounces@lists.linuxfoundation.org Sender: "Linux-kernel-mentees" On Sun, Jul 30, 2023 at 07:00:14PM -0700, Atul Raut wrote: > Zero-length arrays are deprecated, and we are moving towards adopting > C99 flexible-array members, instead. So, replace zero-length arrays > declarations alone in structs with the new DECLARE_FLEX_ARRAY() > helper macro. But again, you are not modifying a 0 length array, so why say this? _______________________________________________ Linux-kernel-mentees mailing list Linux-kernel-mentees@lists.linuxfoundation.org https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees