Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp22148288rwd; Fri, 30 Jun 2023 04:40:56 -0700 (PDT) X-Google-Smtp-Source: APBJJlGGSA2MRKsL+4FmW+FB+txcvYiw/upAne3Fi4jqw7hYxPNC95jPluqt4bpaWoo/3h3uEh5J X-Received: by 2002:a05:6a20:841c:b0:112:5404:88cd with SMTP id c28-20020a056a20841c00b00112540488cdmr1741454pzd.60.1688125255864; Fri, 30 Jun 2023 04:40:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688125255; cv=none; d=google.com; s=arc-20160816; b=gN9njr5YTeOVj/kfzvo/sEePwYRnlQ5yYMd8ycIJE7kxoqCSXz/+sn0WLyi3A3J7Vt zYBGvN+Mi5ar9OD4gzIumnSuQtG54uY0o5J5jEqlXDE+nisaz2W1KQGKASufBKOjK/lP UmNA0pEB4VYn6ppGUdSoRR+iQTFIp0X03qTwY//zjEuiu9HrpQTtyBgioug4IQguKdtX 5HvimHO+fE5jiCJxTxcjMpVLq4+2fkaaoQYx8g2FXuR7dJPNyP2niQ11z+U/DOn08jsy 3HqFr6kQc+vPcCGcFY8ZhVkoWXxxIg3WPE6+Xea8wpyAhWHMJ3ShHf059Sno+Wn4/00D fG3A== 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=Z9bmo36VKpxNTlZiApa8IiHFoJ+LG5a8TwlvA9kRHHA=; fh=+rY3BQQEKhGO54abAKXvmjAi7NTW/IYCZ8YIb2BHzhM=; b=ZKMMVXAooVf7Jjlnk9c/WOaeW1d3ThXOJg+5yaoTj+NVuzlM3jWFJ8NESS8U8Hdu5d xnb6qPyhAuEH2kNWzz9Vxc6Z9kE1yjSQQXJxQ38i6/d2YSpo6DiW/0sCUep/u/f61IE2 eL5/1ra4/nYsqM84tLG96c1+elu9TTKu2gxnZ1QjqZdruiwCbUOmBRULdmnAJ/odEXwI okS4jCLT/5ofBgTu3ZHpAEVkDKS9b7eH35s2Na71XT/G9HTj2HAf4BsGvwsfrav5A00H IEegCtLzhT39+uHhuDyBpv8OsaSuKTyxAfyjiPE/gEPkc2D0Vmhz97oBQt7rvXaDOr2p fXlA== 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 l6-20020a170903244600b001b85ab48092si2794089pls.499.2023.06.30.04.40.41; Fri, 30 Jun 2023 04:40:55 -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 S232930AbjF3LON convert rfc822-to-8bit (ORCPT + 99 others); Fri, 30 Jun 2023 07:14:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232948AbjF3LN5 (ORCPT ); Fri, 30 Jun 2023 07:13:57 -0400 Received: from mail-ed1-f46.google.com (mail-ed1-f46.google.com [209.85.208.46]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD1AC3A89; Fri, 30 Jun 2023 04:13:53 -0700 (PDT) Received: by mail-ed1-f46.google.com with SMTP id 4fb4d7f45d1cf-5183075a5ecso323977a12.0; Fri, 30 Jun 2023 04:13:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688123632; x=1690715632; 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=4NqWzpNqz4GejaakdrG2FU3sXjzVzmUMDqfldvIeJWs=; b=SOaPohP63fPAHcw4NkdknlJKI3HRSVKX3AhqZQVAs2IZK/09vJS4soCwAfg6BQixuC 2BGOgu2GcMwlf+Xt2wx3tHL6tj8UL8nl9PI5f/x+WXPz+NCudQ+rH/zQjJdhsMUjuUDp EMXOqc1qeMubB4MhQPi6B7MMpwz8Ud5vW4dzSym/Nlcb4W2g40EPcCebl6R0Y9SGOPxj FAMRAl72dG91NXkGYH8EO5m85g1bkMrMjcquURH6iE1A6hj2TfcyrwVQJI6raTwopThG trbk5DTv2IVN6d4CNKlSGNvuUrdUjHgloh3O/eCwgX3WJC9PdxCyghx4xjVi28OzeSzR AmQA== X-Gm-Message-State: ABy/qLZhyZcS/Cv1pnGXwd/CwQDpaiLdD/205QnLT/3KujRBhFwUIjXN fjIEaT+xkS6v9y/dckGUPb/baJ991ly9nKTRa05EsoPP X-Received: by 2002:a05:6402:8d0:b0:516:463d:8a10 with SMTP id d16-20020a05640208d000b00516463d8a10mr1339755edz.3.1688123632251; Fri, 30 Jun 2023 04:13:52 -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: From: "Rafael J. Wysocki" Date: Fri, 30 Jun 2023 13:13:41 +0200 Message-ID: Subject: Re: [PATCH v5 08/10] acpi/nfit: Improve terminator line in acpi_nfit_ids To: "Wilczynski, Michal" Cc: 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 1:04 PM Rafael J. Wysocki wrote: > > 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. This is a bit like housing in a city. Usually, there are strict requirements that must be followed while constructing a new building, but existing buildings are not reconstructed to follow them in the majority of cases. It may not even be a good idea to do that.