Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp1269209rwb; Sat, 5 Aug 2023 10:42:36 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHzlW13D+IN0FzDTyZpd4LnogTlBgYNbGeE3U9H3WRcji5lLk5nVbtPilbmD8GuHKX19MVp X-Received: by 2002:a05:6512:31d6:b0:4f8:7772:3dfd with SMTP id j22-20020a05651231d600b004f877723dfdmr3635756lfe.11.1691257355869; Sat, 05 Aug 2023 10:42:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691257355; cv=none; d=google.com; s=arc-20160816; b=SSUrnBr3ckiUoIql9xbM8CBYJQP0qA5yRgZk+pkkYe4EtIzwjLPWpYQRZ3OtvqiXYm pMWkA5SGplrwi1QqhY44L2kOl8/KsZ7BoxnBb3jh3VaE75qJ6bATiuq1I16qxl2JGLWS jnyTHK01rf9U1ks1W8mEAU1Rd2GR1ETofINSY2fg0ndfr+uIKHnmyacV0/gPfzIabkPG OQMagUyg68+JTIPW3VfbIKpHB2EEMPILnqF5+3LrAVyhwjyJIsLXb6pYgFLdkK1rM8iA rq4j/GqYbI0rqhDTNnlkOjxY4Hlqpeqz+ZGWHuutRHglx/aW4nYi8dm4IzUMcHtZW4X/ KCPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=m5jguEeGYe1YYFDNXSY4+z0C2JLX5N3OGXtfs8EGxbs=; fh=TTF1lt49Sby0rKay1qRjEqWFbUkg3/0Ba8LROUDUaGE=; b=lTpfrLN/VUxvUBB/tbg2vnbAGcInJ1sFS0/up29KauH2xE9N27rBzveGE0y9XnxC/w uDYgqEhildVMqPhXdJHmBE+J0AMq+Yxe7WTJMDgxEgemlvgKQtjf8wIMl8nhzUg1asPl 6jXNmW9KhA/jGfLQon6ae+PKWem2ll2HBRg3UvgiBbbQqdEgDAlJZX+AYG416TpjbtfJ UxLQYWlqHY9ZbGzt4rrTUe4DSHAJlR4ilNxQEFCAyJ32+EOfcuuiDf5++mEzu63sL5+y oCAxYTWPIXzFZCV0CdGR8kf4Js2CHPEbRL/hcujqdLSOFT/+/cEGRO6tPLsO0wAt1F1y /E+g== 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 be18-20020a0564021a3200b0052240dd74f4si2021553edb.616.2023.08.05.10.42.08; Sat, 05 Aug 2023 10:42:35 -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 S229976AbjHEQzQ (ORCPT + 99 others); Sat, 5 Aug 2023 12:55:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229545AbjHEQzP (ORCPT ); Sat, 5 Aug 2023 12:55:15 -0400 Received: from 1wt.eu (ded1.1wt.eu [163.172.96.212]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id EF5AFE6A; Sat, 5 Aug 2023 09:55:13 -0700 (PDT) Received: (from willy@localhost) by pcw.home.local (8.15.2/8.15.2/Submit) id 375GssGA025616; Sat, 5 Aug 2023 18:54:54 +0200 Date: Sat, 5 Aug 2023 18:54:54 +0200 From: Willy Tarreau To: Thomas =?iso-8859-1?Q?Wei=DFschuh?= Cc: Shuah Khan , linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Yuan Tan , Zhangjin Wu Subject: Re: [PATCH v3 00/14] tools/nolibc: enable compiler warnings Message-ID: <20230805165454.GE15284@1wt.eu> References: <20230803-nolibc-warnings-v3-0-bcc1a096ae02@weissschuh.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230803-nolibc-warnings-v3-0-bcc1a096ae02@weissschuh.net> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,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 Thu, Aug 03, 2023 at 09:28:44AM +0200, Thomas Wei?schuh wrote: > To help the developers to avoid mistakes and keep the code smaller let's > enable compiler warnings. All the series looks good, I've now queued it, thanks! > I stuck with __attribute__((unused)) over __maybe_unused in > nolibc-test.c for consistency with nolibc proper. > If we want to add a define it needs to be added twice once for nolibc > proper and once for nolibc-test otherwise libc-test wouldn't build > anymore. I tend to prefer to avoid spreading macros in nolibc itself unless strictly necessary as we'd need to put them under a "nolibc" namespace to avoid a risk of clash, and it becomes less interesting in terms of number of characters saved per line when everything is prefixed with "nolibc_" or so. It's convenient however when there are multiple choices to be replicated at multiple places. So let's keep it like this for now. Cheers, Willy