Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp559847lqp; Thu, 21 Mar 2024 08:54:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUn0Ek9PWNkDG/6AfBxaTDaFrLOhrVR/4XadM2SbSUOxiVeOM3fyQ2ZtnafPB3xTd41R/T3FytzW/N/CUA3DCe0yewz+8JDVOM39JZH7Q== X-Google-Smtp-Source: AGHT+IF+y77ZkHmgLyu8j5/OAv0jVRCZglPxrRX8ENtkuMt7yjkHjbSptgZ9msgl1W6TBzctotke X-Received: by 2002:a05:6a21:6d86:b0:1a1:66cf:c52c with SMTP id wl6-20020a056a216d8600b001a166cfc52cmr6811140pzb.12.1711036454671; Thu, 21 Mar 2024 08:54:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711036454; cv=pass; d=google.com; s=arc-20160816; b=XC2I/i9Pr9KFCZhVjib7m8oGjtp6PUtkxvGccRtyop6DDqrGApHY2OEuShi3i8V0Ou OVip6BTZ1QGbKcSPArHvmxrEAq+L2b0KOOWv0nk5gFXFbiopgdQSe/tq5ajBQTjPfh/H T+J52yuORpnde9qfBAiD0Pp//iRJrvV4bWASyziV5nQ68aLMEvIMJnlgujJ7nznIw+f7 bS1HEL/hJaG6IGb6p6nExHxYynHgmEt4h/R13G/pbC+7KZabTAptRY+ByRAl67CWrJDd hz1TZa/fDif3nqLxeA4i1aQ/QcFkCgxBNShkyoE4VIYzZs5hpS/Pd3FSzghbPu2F5Ra/ oArQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:in-reply-to:subject:cc:to:from:date :feedback-id:dkim-signature:dkim-signature; bh=74R41r958QIJgb+sYpqH2zLkkkSNydXL94h/nGSYDtA=; fh=/xDlPxyUnotUTKAMTqlMPznpiqFr9o7nSANxQTgvA6E=; b=NHCB6PFAYUEOiTQdVw4jSIjk6+jFM5JYd7wfX5t2A+r3g2wgBa0Bf31thfltyZTWuE mNisqVM3mpFSAEHBtFnVnatrRDur1yaPpKP0zYp8z8bHDw3xIj8hesgBrPLzkMEkYuqe CiX4ozOyXvVMiUTYcis/mySjfWv5Aprs1lwf3DhZR9YidqMYzrcrfhCMy85iRwLdM4fj iJxofuIpo24qnsupxP3exl82FAc9dVS9LtUKzICqxlZj+OBaZz6xXju85NP6aKt6Vaz5 XTBrwU+5hBbUJDkka0urMNdSqsnKrcuWW8SQPRD1evn4m8z7GgXeQtfd1YngcEyCQkNa fB9w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@dotat.at header.s=fm3 header.b=pm4Y72zA; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=P3ZjLmKa; arc=pass (i=1 spf=pass spfdomain=dotat.at dkim=pass dkdomain=dotat.at dkim=pass dkdomain=messagingengine.com); spf=pass (google.com: domain of linux-kernel+bounces-110286-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-110286-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id u9-20020a170902a60900b001e06c23024fsi2093915plq.145.2024.03.21.08.54.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Mar 2024 08:54:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-110286-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@dotat.at header.s=fm3 header.b=pm4Y72zA; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=P3ZjLmKa; arc=pass (i=1 spf=pass spfdomain=dotat.at dkim=pass dkdomain=dotat.at dkim=pass dkdomain=messagingengine.com); spf=pass (google.com: domain of linux-kernel+bounces-110286-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-110286-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id D78F1285CE7 for ; Thu, 21 Mar 2024 15:54:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4DDB11292CE; Thu, 21 Mar 2024 15:54:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=dotat.at header.i=@dotat.at header.b="pm4Y72zA"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="P3ZjLmKa" Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 282CC8528F; Thu, 21 Mar 2024 15:54:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=66.111.4.25 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711036448; cv=none; b=kY5SbYmK6pnwHXcEvxaoWB09KU22FGK7hzyZaGzmG4iNp/hn5cz26YqHd25EedTsFIAqul89R2QZcBy4BU6iqYgKjYkbWskSkanOo7nk0+akJhQPeO9TN1dqqE76doMfhHQmHX++CBEgjHxijSIFmQfpEvmUxnMekP+CNl2Wh7k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711036448; c=relaxed/simple; bh=lZh6FJjCNw8BxJ1mYjcCZc2XnOoGrsVZuAlW6za1z0M=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References: MIME-Version:Content-Type; b=fPlqwYtfulkaF5TdLgjo/jExxGnuembn/qJblX3N+2L3KMRtMaOojQhlGXb6hoyTnM2TdzZV517oNCBKhiNn6QYtDd859CYPbrDfalfHLKgFFOPBUPHrwEtghbqQXA+yvUAXWEwDeEn0OWqROjm1ubT2xQIeXK9YyVndWL8s34Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=dotat.at; spf=pass smtp.mailfrom=dotat.at; dkim=pass (2048-bit key) header.d=dotat.at header.i=@dotat.at header.b=pm4Y72zA; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=P3ZjLmKa; arc=none smtp.client-ip=66.111.4.25 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=dotat.at Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=dotat.at Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 410C05C0073; Thu, 21 Mar 2024 11:54:04 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Thu, 21 Mar 2024 11:54:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dotat.at; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm3; t=1711036444; x=1711122844; bh=74R41r958Q IJgb+sYpqH2zLkkkSNydXL94h/nGSYDtA=; b=pm4Y72zAof26ffjI4nSoqGoTsr rWSujizkxjOTwyHAHRzmug6yuB1nUN5a7JlXQi5hKf46ctFqdVTBtrFiyXGE6Y2w L81XzNk1wzWzk3Cd4Z56f1EDnJzxFraZW3oETLeQv3fiUZTgcomjDV6ie8dPekWb 110di22AhtineDpNuimpudYA0tuUIHyeXAkSiGudgL8l70bThzw69cRs/xfVD2HZ XRC3DHulQ/R/NmNE9sZscDZCOtxHF4qxP2AT7YSAWEPcjS1UaxILfoF863gFJht1 axUX5W9eVkoYGoiYU6ZjRkytVQj+CDuY5lue1Lu8KaiNkTjN26mdBkgofCgA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1711036444; x=1711122844; bh=74R41r958QIJgb+sYpqH2zLkkkSN ydXL94h/nGSYDtA=; b=P3ZjLmKaezUgXZeTPx9PF3NZ0m6hW0Mr/SnzolPtZhY1 6MED3WhzeKWh/7hJ9Vz4TVz6szmy9GDXYAGE0JhIWEN7jTgel7qALpC6vpfgHDlf zDxt4IMqt4LjQa7zZEHMFsOFLE0KKH/ip9NFfwuAZH+u/pDtTpQDYcJd/mHtrFy8 gj0k7WZN4BV+TU8A+PcKZiBnGDtoMatTXm00gXW8Ly3TaaaqEBDUvl2w9d/ByXRv 7Qv9VjLsX5VlK1nZxzbOFiQ5DMIMzZmtu4b7jvlzFsRSeS1YICteNHzkHL5ibDck WoJS8UBeP9ZVtvlcJm4F5WJ0LSuS+3UNSSBOyaz9iQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrleejgddvtdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvvefujgfkfhggtgesthdtredttddtvdenucfhrhhomhepvfhonhihucfh ihhntghhuceoughothesughothgrthdrrghtqeenucggtffrrghtthgvrhhnpeetffejue ehieekveegffduleelfefhtdekheehfeeuheduleehieeigfduffduvdenucffohhmrghi nhepohhpvghnqdhsthgurdhorhhgpdguohhtrghtrdgrthenucevlhhushhtvghrufhiii gvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpeguohhtseguohhtrghtrdgrth X-ME-Proxy: Feedback-ID: i7158435c:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 21 Mar 2024 11:54:01 -0400 (EDT) Date: Thu, 21 Mar 2024 15:53:59 +0000 From: Tony Finch To: Arnd Bergmann cc: Sam Ravnborg , Arnd Bergmann , Masahiro Yamada , Nathan Chancellor , Nicolas Schier , linux-kbuild@vger.kernel.org, Michal Marek , linux-kernel@vger.kernel.org Subject: Re: [PATCH] scripts/unifdef: avoid constexpr keyword In-Reply-To: <20240320180134.100863-1-arnd@kernel.org> Message-ID: <196e71e0-6b17-f970-c034-4452e0c44052@dotat.at> References: <20240320180134.100863-1-arnd@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Arnd Bergmann wrote: > > Starting with c23, 'constexpr' is a keyword in C like in C++ and cannot > be used as an identifier: So it is! Can you please incorporate the fixup patch below? Other than that, LGTM. Reviewed-By: Tony Finch PS. I've been reviewing some other details of C23 recently. According to the Editor's Report https://open-std.org/jtc1/sc22/wg14/www/docs/n3221.htm the working draft that is closest to the official C23 Draft International Standard is https://open-std.org/jtc1/sc22/wg14/www/docs/n3220.pdf (There were significant changes and fixes even quite late in the process so don't rely on earlier versions - I encoutered a bug when I did!) --- scripts/unifdef.c +++ scripts/unifdef.c @@ -819,7 +819,7 @@ static const struct ops { /* * Function for evaluating the innermost parts of expressions, * viz. !expr (expr) number defined(symbol) symbol - * We reset the constexpr flag in the last two cases. + * We reset the constexpression flag in the last two cases. */ static Linetype eval_unary(const struct ops *ops, int *valp, const char **cpp) -- Tony Finch https://dotat.at/ South Utsire: Variable 2 to 4 becoming south or southwest 5 to 7. Moderate or rough. Rain or showers. Moderate or good, occasionally poor.