Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp418961pxu; Tue, 5 Jan 2021 15:06:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJzB8uCB7H+QJqn92TKMZ7CO+IYgFQJJds2GUyyHIlLRZunv2/2UMVmNRDU/dcrhPgwMb3pw X-Received: by 2002:aa7:cb12:: with SMTP id s18mr2014235edt.125.1609888019672; Tue, 05 Jan 2021 15:06:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609888019; cv=none; d=google.com; s=arc-20160816; b=iiLqevDZ+DamWEcs8vXPTzW0yRz/Cu7Go8dimnxJAB9aP5rtLUEkOZTfZwWYuNnLPS 7zsekfjZ00x/oxhDAOgHpWFYiTC4vxksWdsnpo+n6Y3fdNzON3nSy3+nvywlMBUMdSVK 2NkFFrhVs2Fspt5he2mjrmxsz9qMYefITLLoEUEVZ7X8KoylMcvEiK8N2ws/aCg7AGUd AQa1LsGww3sg/c5N5H8ZEXZZmBry5Q4TO3ao2+T5BNAx0Zt35PUuO7xsq5ki1agRAGsz Y0VGpGQwAwcgyt+Zl/m6Hhut1AXsMmVCixIfLiDEu6Lx9iircdn+BeWWoOhTL/uhUko8 QVuw== 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=azp5R5sIE5akbR86AUgMTb7YlLtMSqlVoZhjPN7aS+Y=; b=p8bE2+xWFJmBk7WJS6h0jXJx2EhTvHbX6o39xJ+ypNItlR+ohT4IEqBcZ/OOIrb8nX 4+wkQezIWX98dleotjSbIXVfBGkury0r7ou+mqxZ+aXplHAw47OQlNUHwd62N4dz014q XPDpNLPDR5Q47+HItm2j3T1GkOvRiWphW4OurTGH6apKQk+njYvHQ6hSutcFCb2FIiHK RKOVpW1DHDKIcHQhNuISyYnh9DM72IKMdQ8/W0jkQ8uFWNFaE9Ir6ORs10J/98/qQgR5 yoSxg30DnO+iYMECnPleVJ0mqqnG7uFbCmIiBJJ/EVWsT2Sby9QdmG8OTFSbV8HvEU0L gjZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=cMncgAy6; 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 r12si226434edo.212.2021.01.05.15.06.34; Tue, 05 Jan 2021 15:06:59 -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=cMncgAy6; 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 S1729510AbhAEVwK (ORCPT + 99 others); Tue, 5 Jan 2021 16:52:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41586 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727414AbhAEVwJ (ORCPT ); Tue, 5 Jan 2021 16:52:09 -0500 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 25497C061793 for ; Tue, 5 Jan 2021 13:51:29 -0800 (PST) Received: by mail-ej1-x629.google.com with SMTP id n26so2499481eju.6 for ; Tue, 05 Jan 2021 13:51:29 -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=azp5R5sIE5akbR86AUgMTb7YlLtMSqlVoZhjPN7aS+Y=; b=cMncgAy6pqzxztVl5zeqBEgkiWWCLXEErKCEI6UQIaRXZcyG2cz9MQvSJrclBYIOxn 2YPqPfCcc6iHayGMNjfpXQOmYSRuDcj/UGTDfYoaB71KOVEq+7uJ+qNGmbfq2RPd51lX aCz0Jm5SeMLydFqfwz50JnLiiSB6lnJQsmaexF+qcYDT/1ZAJlFQDeMFQlfTtIsiNVUG CvPGs26j1gRvSDfItMJ42fcL6bmPq+wLIYeSuzmXkilJ64+2VfPo0rt7DTRiPUUWo2Sw t9ck3g6Xbryu+fFBxzsgmWNQrsCJcBcPTPHYtKdyer81Oo3piddVUeL6GEzgnKSvUQ1P Fqaw== 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=azp5R5sIE5akbR86AUgMTb7YlLtMSqlVoZhjPN7aS+Y=; b=jKjNaPXHq7j9aY+lfAjhZHxJE/ymMUGbcEyUoOpHFa0ifS8G0Xc1BHxYz4onwfI/rV eBOaeO1aTlBLoRVR1LiKYbKPd7gjc1ZI09971CUjliiiNYObNRZ48pD/86TcNx2wwp4M OLnzsconwdDrJF93ScR6aHnhBF79WJzxUzpwBAVpqEMeBRA7nr6M7eYnW3C9WUWYWGPU vFYlDS+kJfAwPSjWk2RsLlgbX35q0BqDa0oa6GAIzn5jPpKdgde7K2zMUHY5eyNMWSIq OiBPFzdCh9A73jfupiDoiMYgDqWSHOIFEoWOUHKfEVa92yX9cfoVyaFY/VFXCaAW3Wzn s8gA== X-Gm-Message-State: AOAM533AML09E1MYY9olgoiD2r1QlolIA2IKSsDdnCYSLM49qTS8InKY e0EdWiJ33PhSLGe3edIdNNOIQoPKICpUsRV72sH07Q== X-Received: by 2002:a17:906:a29a:: with SMTP id i26mr914983ejz.45.1609883487897; Tue, 05 Jan 2021 13:51:27 -0800 (PST) MIME-Version: 1.0 References: <160988059854.2071197.11821323682102566548.stgit@dwillia2-desk3.amr.corp.intel.com> <3c31c3328f569f15f03de9eb8d1b6a9ae4862893.camel@intel.com> In-Reply-To: <3c31c3328f569f15f03de9eb8d1b6a9ae4862893.camel@intel.com> From: Dan Williams Date: Tue, 5 Jan 2021 13:51:16 -0800 Message-ID: Subject: Re: [PATCH] ACPI: NFIT: Fix flexible_array.cocci warnings To: "Verma, Vishal L" Cc: "linux-nvdimm@lists.01.org" , "efremov@linux.com" , "linux-kernel@vger.kernel.org" , lkp , "julia.lawall@inria.fr" , "linux-acpi@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 5, 2021 at 1:28 PM Verma, Vishal L wrote: > > On Tue, 2021-01-05 at 13:03 -0800, Dan Williams wrote: > > Julia and 0day report: > > > > Zero-length and one-element arrays are deprecated, see > > Documentation/process/deprecated.rst > > Flexible-array members should be used instead. > > > > However, a straight conversion to flexible arrays yields: > > > > 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 > > > > Instead, just use plain arrays not embedded a flexible arrays. > > This reads a bit awkwardly, maybe: > > "Just use plain arrays instead of embedded flexible arrays." yeah, umm, I left that extra "a" in there as a test... you passed! :) > > Other than that, the patch looks looks good: > Reviewed-by: Vishal Verma Thanks.