Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp2039642rwe; Sat, 15 Apr 2023 10:14:57 -0700 (PDT) X-Google-Smtp-Source: AKy350b8S2OMOARViNeNLVegycyQHHuDcsCwAQu8So0B3wTSU19KIGaQPPcbO1acAILtgbmGD/ks X-Received: by 2002:a17:902:d3d3:b0:1a6:9289:5b with SMTP id w19-20020a170902d3d300b001a69289005bmr7828993plb.20.1681578897419; Sat, 15 Apr 2023 10:14:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681578897; cv=none; d=google.com; s=arc-20160816; b=TZeQjKqvwE2X7dQUVYs5aHOY9NIOolUsJcD45MFEll/WmulJjvjDLtCo1OyeoIHDBS 4a0OxsbjA9HaU6aDmAjjiekErXzUATv0awsJtQ0MHFOlqhkNYWVCK4EfHCOXjxk+HqTb LEXF9NpLwBaXrrpGuinRtaZax469thwgNvG2Rt41JoE21karOF5K+5bngxLt35hjT+fU PFc892/KaL8XMCUXHHF9Zz1cN1oExYpdCM/digjMgqC7lMXyt03T2bo2sp0d2sE3BTir ea0BwcohzpgGg50/Aai8pZJk18RU2SoK2KUtQ8dC3mXf/nNBzJhy0fiwutBqMFSdSuDc 7naw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=kLkm8zqFab/nvHZ0wVet5dJtT+2aa+iDygLgJMly7JQ=; b=qRuz2bq4Lev0SSbFLmFv3AK28WeU5AjcLqk80cukGxpf4+0BOXWrN19XNHl7rAhOy7 36Wv/f1Su/0aG8erubpeBGD3K5BbFoZUnej5MQ50C93GB83vXuB0FPOovupNQyuSEJfB 7AJBxdMtiFCMn9MKnmaP/Kd7EG5Nj81fpoTZSjeSBy5W9tL0BB00S9tls9wep5AwL7HE fguNpmIvO6jh8hp8v4FLkbaNSsU4BHXkzlqMmaUqc7DsZc6QZr72raOwYwL67QGeOiE8 mgC1R948O5wSQIFD/J/R6zsonKxAiXpK1Y37KaZI5W8V2e63fBk3upufoQiBmkOpg02Z eAZw== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bc7-20020a170902930700b0019935e9b087si7218518plb.234.2023.04.15.10.14.43; Sat, 15 Apr 2023 10:14:57 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229780AbjDORMR (ORCPT + 99 others); Sat, 15 Apr 2023 13:12:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40482 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229574AbjDORMP (ORCPT ); Sat, 15 Apr 2023 13:12:15 -0400 Received: from 1wt.eu (ded1.1wt.eu [163.172.96.212]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 61F7C186; Sat, 15 Apr 2023 10:12:14 -0700 (PDT) Received: (from willy@localhost) by mail.home.local (8.17.1/8.17.1/Submit) id 33FHC7wj020436; Sat, 15 Apr 2023 19:12:07 +0200 Date: Sat, 15 Apr 2023 19:12:07 +0200 From: Willy Tarreau To: Thomas =?iso-8859-1?Q?Wei=DFschuh?= Cc: Shuah Khan , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH v2 00/11] tools/nolibc: -std=c89 compatibility Message-ID: References: <20230328-nolibc-c99-v2-0-c989f2289222@weissschuh.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS autolearn=ham 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 Sat, Apr 15, 2023 at 05:15:27PM +0200, Thomas Wei?schuh wrote: > On 2023-04-15 16:47:03+0200, Willy Tarreau wrote: > > On Sun, Apr 09, 2023 at 11:28:46AM +0200, Willy Tarreau wrote: > > > On Thu, Apr 06, 2023 at 09:54:46PM +0000, Thomas Wei?schuh wrote: > > > > This series replaces the C99 compatibility patch. (See v1 link below). > > > > After the discussion about support C99 and/or GNU89 I came to the > > > > conclusion supporting straight C89 is not very hard. > > > > > > > > Instead of validating both C99 and GNU89 in some awkward way only for > > > > somebody requesting true C89 support let's just do it this way. > > > > > > > > Feel free to squash all the comment syntax patches together if you > > > > prefer. > > > > > > I gave it some thought, at first considering that going lower than GNU89 > > > was possibly not very useful, but given that the changes are very small > > > in the end (mostly comments formating), I think that you're right. The > > > cost of reaching this level of portability is basically zero once the > > > patch is applied so I think it's worth doing it now. However I think I > > > will indeed squash all the comments patch together as you suggest. > > > > I've now squashed the ones about comments together, fixed the declaration > > inside the for statement in nolibc-test and tested with gcc 4.7 & 4.8 and > > confirmed it works as expected. I've queued it there for now: > > > > https://git.kernel.org/pub/scm/linux/kernel/git/wtarreau/nolibc.git/log/?h=20230415-nolibc-updates-4a > > Thanks! > > I noticed today that I did not adapt the comments in arch-s390.h; > because the start() comments were already correct. > > But the last line of arch-s390.h still contains a C99 comment. ah, I must have missed it because I checked using git grep //. > Do you want me to send a patch or could you just push one? > (Or fold it into my patch) I'll do it and force-push. Thanks for checking and notifying me! Cheers, Willy