Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2769715rwl; Thu, 13 Apr 2023 10:34:13 -0700 (PDT) X-Google-Smtp-Source: AKy350ZEgmAmc5pTetpocs2NnRSaFiXcL8yXrlPBgT1X6B92VpX/T4HgkTYZmnaR+3qWbzKsYCyr X-Received: by 2002:a17:902:fb85:b0:1a6:6fe3:df91 with SMTP id lg5-20020a170902fb8500b001a66fe3df91mr2806508plb.50.1681407253534; Thu, 13 Apr 2023 10:34:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681407253; cv=none; d=google.com; s=arc-20160816; b=wXnLNDTwgnXLjRVzcFyl5sHcek+AUaKUTufY7gsbxn6PIZY2Atfa5VEaK21k02Gc6Z oN8LTU0FqT/FXqdORmb35VoYGzRmtVf6s6gadKIchiNxsILtM/4UJS6+7z1VKz+we38n Q5mGR2P+HCAAbpEtn8GGWkI/DqOCEyZly8tinbxNM1nowh5fvS2IY7dBCCtqcANPJDCn 6CGy/kR7H4YGhvt2/3/gu3u9Z/Fpt+I+4A9tDfXn9NaG62AbSCnZst20m1ZnZxVDPqe3 OxQO47YhasZf1AFZi/x4x4uyvmbqpnNBVATradRPetYC74sKKdaqPZ1J8Nly+oPhVHnc itbw== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=VbjPdnWQN+ySXfNKcLkj6sUJE/6oEKFUvqDGBcwXmZE=; b=I2ibZ1OynRGhxXanrUZ4jpizym8AkD1hz1XhWXpx2DPherqPFJPbhF8WrJemAwUYjO PXkcEj6jcnOlXma67knCxSoVRcozNP8B5ZOXD+lPs/kf89kIpbPo+kqG2AWx8pw6sFKI WzJXyaN17HbrHcDNPv3NabYne641LUQUkQp9v9+/pEPpA3L6Fygno/h9IaRHHC4vbEbT 8sFMXfoOt9ud+gPpeMczCpx+XuK+D+zPyLkUg4I1LcrE6UuYFZmhsol1/+/d9c5h3z+u eDZqTb1cBeOvTkvgbiMSB16A9QNu6RS0HyR9JuDMBWJ97Cm7zjDJ59pFfq4zgfmClfJ5 jmvA== 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 m9-20020a654389000000b00519d69a2340si2405732pgp.862.2023.04.13.10.34.00; Thu, 13 Apr 2023 10:34:13 -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 S229920AbjDMRc7 (ORCPT + 99 others); Thu, 13 Apr 2023 13:32:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56716 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229967AbjDMRc5 (ORCPT ); Thu, 13 Apr 2023 13:32:57 -0400 X-Greylist: delayed 910 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Thu, 13 Apr 2023 10:32:34 PDT Received: from 1wt.eu (ded1.1wt.eu [163.172.96.212]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CAEFB93F2; Thu, 13 Apr 2023 10:32:34 -0700 (PDT) Received: (from willy@localhost) by mail.home.local (8.17.1/8.17.1/Submit) id 33DH8xFb003990; Thu, 13 Apr 2023 19:08:59 +0200 Date: Thu, 13 Apr 2023 19:08:59 +0200 From: Willy Tarreau To: Mark Brown , "Paul E. McKenney" Cc: Thomas =?iso-8859-1?Q?Wei=DFschuh?= , Shuah Khan , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH] tools/nolibc: Fix build of stdio.h due to header ordering Message-ID: References: <20230413-nolibc-stdio-fix-v1-1-fa05fc3ba1fe@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230413-nolibc-stdio-fix-v1-1-fa05fc3ba1fe@kernel.org> 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 Hi Mark, Sorry for this issue, I don't know why it didn't trigger in our tests, maybe due to the includes being explicit in the test program. On Thu, Apr 13, 2023 at 05:26:32PM +0100, Mark Brown wrote: > When we added fd based file streams we created references to STx_FILENO in > stdio.h but these constants are declared in unistd.h which is the last file > included by the top level nolibc.h meaning those constants are not defined > when we try to build stdio.h. This causes programs using nolibc.h to fail > to build. > > Reorder the headers to avoid this issue. > > Fixes: d449546c957f ("tools/nolibc: implement fd-based FILE streams") > Signed-off-by: Mark Brown Acked-by: Willy Tarreau Paul, the commit above is in your rcu/next branch but fortunately not in the series you've prepared for 6.4, so it will be sufficient to pick it on top of next and you can take it directly if you want. Thanks! Willy