Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp6719068pxu; Thu, 24 Dec 2020 10:15:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJxEFrn3ltEIHrCQDO2G4038oO1RNuJBSFIsm0BIRmyEE/WJy5iqIMb3sPcNODbWzCrkw/Lr X-Received: by 2002:a17:907:16a7:: with SMTP id hc39mr2372699ejc.460.1608833705608; Thu, 24 Dec 2020 10:15:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608833705; cv=none; d=google.com; s=arc-20160816; b=OLN63Buom5zVEeDbX51mig6Fpa3bz512HHaINk8lvKq3nw6/1gTqjXK4zQqkr+LQIi arUQaPyA666g0vjQwhuVmodC/Q3DNaEl5aOQWV4DQRE+FpmZaO3RulZWUr/yuYJxiZ4E 2VfVbZCAJhpFCmPaflOjxO4ftTq4+fbDMsB239j726bT445vvvilx1IMYVl3rEjshmfS lhRoigyN5LKK63dyo/6r/DfCWhAfYapgD/Xu1/U+M20gPxrZrohpLutcqFA1+1F4LtYL ty1epZPX2+G3yI5+2sGVIVIwidjBkZ+/GlRcfas020c7ZI6NPy4H/BV81DiYkZE8hO+B RZ3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=i/bZV6f3Jgwpe0hsSvhOuCb/+QOJ83g18wcZboghI0Y=; b=nFdBe6IeXujqzgWtksPUY8+kq9MzOBN2xH9XXJZmYoagN6dubJEEX/1nt8HmKhqK9I YaVQjgFLwrIh1UAcAPx7LfSdcGfd17DDnxV3o20CUK1RxbNp7Zb8YygOhCx1xKFSYhzW H6MnKs8Y/r4IpUChXpWcfcOkc7aVYQG42oeWq1Mj8UjZbxnIfi3gujKsqTKnl3d2bKiO 8ELaSWwFqrCvSpKzZ1QPNznw0MuZZFDNT1cZY9e3YWIQ+xjM0YWSe1p8h5LNpqqOYNIh vcfGgeDblXnH3arIWkTOwJn6Dq9M0ZTKTYwkEAFCUNZIECT2mx7VD5+UBKYOoShg6pcP suxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=pWkJ0CXU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s20si10999214eji.61.2020.12.24.10.14.43; Thu, 24 Dec 2020 10:15:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=pWkJ0CXU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728455AbgLXSNf (ORCPT + 99 others); Thu, 24 Dec 2020 13:13:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727184AbgLXSNf (ORCPT ); Thu, 24 Dec 2020 13:13:35 -0500 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 964FCC061575 for ; Thu, 24 Dec 2020 10:12:54 -0800 (PST) Received: by mail-ej1-x62e.google.com with SMTP id lt17so4184608ejb.3 for ; Thu, 24 Dec 2020 10:12:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=i/bZV6f3Jgwpe0hsSvhOuCb/+QOJ83g18wcZboghI0Y=; b=pWkJ0CXUF8MOopXQSCftP9Fm67ZjipXsPCwZm8GMMkKqJtoWlxDJUJYdF2lnKGWXHb YFQdfLFSmHWXVtxbT3IFdFBl2TFMqW88RjwH0eSrF3Xdwctqr5jHx6uMxpPWBpPY8u2l qgCwhmGtXfzNY4oCS1wBMulXx+5hOxrBxSmGuQk+650dKKYwy9Zfy3aQwq0YumaW1xvE mV+BVqGJE49DEVPOctznZcE8Wu+rgKXqMAxML1BSyTXRlceltOFco1UuEIYIfQgtyNtM 6Nudfd1V9upHxx2jcFQPYzw9cWnw2KiTds+22HcXkxhhUJTfDD0XoirOwUq2Ks7Zqd0P FCTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=i/bZV6f3Jgwpe0hsSvhOuCb/+QOJ83g18wcZboghI0Y=; b=OqNuQ4ej2L2dfF/xqI35PFzk4ov1qrXFecw96K3d8B0N1dmHakvuFYV3uD5FUzfchF qOQ4F/YdvQFTtauw8A8P05h+4qWcrYyibEWP5a/dsT+puzndyduYyiMa4HrgaYMVSvUP RUefOTtI5b43KBSUjrIeIx8q4vwdltCLzHyi3gKHDc3IgO2Res2kiv0XQmBAWgr5qBNg s3ognhZmeHdfolSuhWFVja967XMb8QSzt4GG7U6Tu6YBT/mfRTsxi7i3sGNRKbb66pe9 bFooj4eLTeslZj4Y2aGdiFZAl6uEqxE1OSIDIPMO5ikQstA1zS9rHmIsze+mWTLPyk5g /vew== X-Gm-Message-State: AOAM530e8/8ceTH3m1EaAF1gK41IhS7jIKePEDLZPX5+xpieG7VBRmBy J2bYs05I4lMLk+7pWgQoaVdlN3xlAPG5SOZGbiX0aA== X-Received: by 2002:a17:906:a3c7:: with SMTP id ca7mr29715074ejb.523.1608833573249; Thu, 24 Dec 2020 10:12:53 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Dan Williams Date: Thu, 24 Dec 2020 10:12:42 -0800 Message-ID: Subject: Re: [PATCH] ACPI: NFIT: fix flexible_array.cocci warnings To: Julia Lawall Cc: Vishal Verma , Dave Jiang , Ira Weiny , "Rafael J. Wysocki" , Len Brown , linux-nvdimm , Linux ACPI , Denis Efremov , kbuild-all@lists.01.org, Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 22, 2020 at 1:10 PM Julia Lawall wrote: > > From: kernel test robot > > Zero-length and one-element arrays are deprecated, see > Documentation/process/deprecated.rst > Flexible-array members should be used instead. > > Generated by: scripts/coccinelle/misc/flexible_array.cocci > > Fixes: 7b36c1398fb6 ("coccinelle: misc: add flexible_array.cocci script") > CC: Denis Efremov > Reported-by: kernel test robot > Signed-off-by: kernel test robot > Signed-off-by: Julia Lawall Hmm, this triggers: drivers/acpi/nfit/core.c:2276:4: error: flexible array member in a struct with no named members drivers/acpi/nfit/core.c:2287:4: error: flexible array member in a struct with no named members $ gcc --version gcc (GCC) 10.2.1 20201016 (Red Hat 10.2.1-6) I'll need to circle back to this later.