Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp22121022rwd; Fri, 30 Jun 2023 04:17:01 -0700 (PDT) X-Google-Smtp-Source: APBJJlEn0OIn2ZNr8TErUv6nPePWOQQaxAcBN0v4e37vpuGo0JBMUHQAn/y8JXJFnjroGNRyIbu3 X-Received: by 2002:a05:6a00:1823:b0:67e:18c6:d2c6 with SMTP id y35-20020a056a00182300b0067e18c6d2c6mr3600548pfa.5.1688123820725; Fri, 30 Jun 2023 04:17:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688123820; cv=none; d=google.com; s=arc-20160816; b=kXgmP3Nm7w8F5unur2BJsSzeKmNDuaUEN+QhkXsQy7rZoVM2gaSgcLLfZN4gbH+LIA Cslc7TzCyti/JbWK4BF4U5MevAqvgBAM3noUzINT5Q6mZN+DFX0CF/VWd5BH3bs3qp9Y ZFfqOS0abiDIoxwPCKv6vzD2hDlOq3wecq9iDjBBMBHWldq7im29EsLLwSJkmGtYNh6n ERMC7R/0qMNU2R50FYtHaT9RsxnihnE7ztxG7CDeQWBWei2A05W/h4Djm0OqcEXxxBIX mHnlMukrYvTBFUtLRmo2pTUDX758TY7NqGkMHvXvis/Szdihq4IWZj8W2jZClpMF+AUq lCxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=hxMpD/5XOW76aD39wA/W7ukA9ZArCWCS+E9ROxpU0bE=; fh=tx5viwV3JsEC2BiiDaUvzl7wVVT7+tKnr1XZPesdzrY=; b=hKswnZu/xSm+O8HaEwC3q0eoUslKL3INBR/da733QOgFRJZfoI2Z5HPAOgCQtbshXQ 0fmcrsuXe/EOu0yo8SqZ08zKlR0ip3uR5XVNENWSwwPLUnsht+2HKm5Hxjba6ek+KRx6 rhaHbCT7t0+Vl0KxwLbQvMsgTSaMzqGYCIA/ddZH6JR3XPu2OXLKqaqF9FIPtelni2kY 3lM90h/yMuvs3yWAnYofKpMp8U4ORIeD0Ukzd6z7mEErTzW6YL3TX1bt/ccVMPyDpX+e Y0NJp4FjDqRSaTUFJe0sTZSrx1gfLJ/IO1/5xe+gozrOt3/AxfWIVzQZxMyGXHsH6psD 4/Og== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f4-20020a056a0022c400b006724753efe8si11140628pfj.192.2023.06.30.04.16.47; Fri, 30 Jun 2023 04:17:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232094AbjF3LFk convert rfc822-to-8bit (ORCPT + 99 others); Fri, 30 Jun 2023 07:05:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232911AbjF3LFE (ORCPT ); Fri, 30 Jun 2023 07:05:04 -0400 Received: from mail-lj1-f175.google.com (mail-lj1-f175.google.com [209.85.208.175]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9610E3C24; Fri, 30 Jun 2023 04:04:30 -0700 (PDT) Received: by mail-lj1-f175.google.com with SMTP id 38308e7fff4ca-2b6993fd7d5so4504231fa.1; Fri, 30 Jun 2023 04:04:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688123069; x=1690715069; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=A07KMdYL5lwtSiNQs9uf0BCUOmidGfNE7gu5dbduzz4=; b=DNrVCKS5Kc3xxH5m/ynAJlGrLXEuy2+JKhVclkWMh+GMM7x2ORRxYjjRd8Xqf2j9Ig ZvoP2LrSr5hbgiVtR7SlS8shzVy1ntWBiriNXNsE+h+qgFhmMXDE1mPtwAZfEoABgwFR KxxhMUJbuf6kG88F9aQIH1/72jEOwQZbWkQjpoAygeWXkYNAoFTW3JVPO+yZb+SL74Gj WcDASAYgKh4jx83eEdQe6GzvhIUE4mRrHKsXdiyd10T9JXgEKEGy+Oc93mkCDuFd45Lk IvxUvJppAi55+Dw1BOZdm4vmW1Ai2JhO78/VWlbeUT22rrFScnDQOtt8LWAvXnHNbutL ApNg== X-Gm-Message-State: ABy/qLZEZGZiAr8jkllOug9yzereleBKMV/fUkLkn3XT+jFZ8qdWlsXx tZ7djXStNUMSQQJ19euNSKb93a3wiML/W0sr7H8= X-Received: by 2002:a2e:a41a:0:b0:2b6:9ebc:d8c4 with SMTP id p26-20020a2ea41a000000b002b69ebcd8c4mr1748262ljn.0.1688123068602; Fri, 30 Jun 2023 04:04:28 -0700 (PDT) MIME-Version: 1.0 References: <20230616165034.3630141-1-michal.wilczynski@intel.com> <20230616165034.3630141-9-michal.wilczynski@intel.com> <699b327d-acea-c51d-874a-85133b74a73c@intel.com> In-Reply-To: <699b327d-acea-c51d-874a-85133b74a73c@intel.com> From: "Rafael J. Wysocki" Date: Fri, 30 Jun 2023 13:04:17 +0200 Message-ID: Subject: Re: [PATCH v5 08/10] acpi/nfit: Improve terminator line in acpi_nfit_ids To: "Wilczynski, Michal" Cc: "Rafael J. Wysocki" , linux-acpi@vger.kernel.org, dan.j.williams@intel.com, vishal.l.verma@intel.com, lenb@kernel.org, dave.jiang@intel.com, ira.weiny@intel.com, rui.zhang@intel.com, linux-kernel@vger.kernel.org, nvdimm@lists.linux.dev Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 30, 2023 at 11:52 AM Wilczynski, Michal wrote: > > > > On 6/29/2023 6:14 PM, Rafael J. Wysocki wrote: > > On Fri, Jun 16, 2023 at 6:51 PM Michal Wilczynski > > wrote: > >> Currently terminator line contains redunant characters. > > Well, they are terminating the list properly AFAICS, so they aren't > > redundant and the size of it before and after the change is actually > > the same, isn't it? > > This syntax is correct of course, but we have an internal guidelines specifically > saying that terminator line should NOT contain a comma at the end. Justification: > > "Terminator line is established for the data structure arrays which may have unknown, > to the caller, sizes. The purpose of it is to stop iteration over an array and avoid > out-of-boundary access. Nevertheless, we may apply a bit more stricter rule to avoid > potential, but unlike, event of adding the entry after terminator, already at compile time. > This will be achieved by not putting comma at the end of terminator line" This certainly applies to any new code. The existing code, however, is what it is and the question is how much of an improvement the given change makes. So yes, it may not follow the current rules for new code, but then it may not be worth changing to follow these rules anyway.