Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp4646558rwr; Mon, 8 May 2023 10:28:59 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6eHQixP3LL7V+kRMNV4BzGaKL2cltshTA4Ir4SbHSghV8I+6QZBeLJXLLjveag6gwEB+DJ X-Received: by 2002:a05:6a00:891:b0:643:b4d5:e3db with SMTP id q17-20020a056a00089100b00643b4d5e3dbmr10998022pfj.4.1683566939279; Mon, 08 May 2023 10:28:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683566939; cv=none; d=google.com; s=arc-20160816; b=w96NlcwL5Af+IiisixYev36BY3ll7w4kyf4hF6FjT9WnBrYQqCKD0aCT2XZc+n7M1E TCpbigRtrNImP+dDXM70SFVMov+kt/3pYa7m5CeBRwC/fGa/GV17GelcG/AeoIKrgo10 xqgL7NBekP8pb53GeUxZzVPGfecfatXV75xrKRqgag16NNkXMyoRupYZ/9einZMHi+pq zXAxL5aZ65r+yaGLne55hD+ufRBc7z/abgumjqPNMAI6gJJzmw4xkJbk/RrU1ZJuvAQL F6e1DOeMmaXsDz6d6YfkxjqHBoaEkVY2JGw3Dmp96Lj/T/4Eakq778ZPMeS079jy1CyY ot7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=FPp2h4EDEYJ2YkjNK6Cz8A2OUZJ0t46AiKfKnDtxUn8=; b=yD2Pl8FTjYwz7l6nlS1QXzxsTeTtBqXMRl753TLnBkWE1BN7o53yza2+Z8MdRR2l32 214BXKYNgxOQURPbEa+yMK+tZSRvHCtvdRkK03i181cY4DMm2yhCYbyi7kECNmcy/2os 9UeqE2B/484+Y8TJxU2FjeSx0evAExENsKzcW6Mwp/Pfe7DJ1mCP5cOlvPOiUI0OW4hv dfkS6m2dhNMOL+PiwfXaZa3vXmxn4o1yFg/y7XAxqelbsBaoyotrNce7LttI71fP+YCI sfpOGaPCQF3XS3cNQMVfXdXnuEiOpOXgYMhdXzLh/UcPE4NoPVqgXmkhGmn9qO9Bmq0W /OlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=MVqaHBGW; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a13-20020aa7970d000000b006281ec442absi314455pfg.309.2023.05.08.10.28.44; Mon, 08 May 2023 10:28:59 -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; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=MVqaHBGW; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233234AbjEHRTF (ORCPT + 99 others); Mon, 8 May 2023 13:19:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36348 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233235AbjEHRS7 (ORCPT ); Mon, 8 May 2023 13:18:59 -0400 Received: from mail-io1-xd33.google.com (mail-io1-xd33.google.com [IPv6:2607:f8b0:4864:20::d33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B485B1BE9 for ; Mon, 8 May 2023 10:18:36 -0700 (PDT) Received: by mail-io1-xd33.google.com with SMTP id ca18e2360f4ac-760dff4b701so29762239f.0 for ; Mon, 08 May 2023 10:18:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; t=1683566316; x=1686158316; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=FPp2h4EDEYJ2YkjNK6Cz8A2OUZJ0t46AiKfKnDtxUn8=; b=MVqaHBGWzrfD00BXHCzkU7L4rPa8Z4ZtNfxO+vupCgS5WRXclzYBRUU/918dVqHyL/ LMhWXLaI5V9OVsio8TIK6chz1W4i1uQv2AFJeFOQnQNvp2zAKc8g7e6qd/HDMhbZzZO7 75vVkJfoR3aJO0XaNjwz01VK8Wh1t8VVzFX4M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683566316; x=1686158316; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=FPp2h4EDEYJ2YkjNK6Cz8A2OUZJ0t46AiKfKnDtxUn8=; b=Wm9mELxBpiX0A8AQ83G3xHKsDxT/3ft/eC7kCp1id6GQnFOwBkQqjau3pDbKYMsEPT 3yhziBNfamYvwcUPelIU7bNRIBu4MeUg3jgyyQWh4r2RwLxWzo3wsAB0VavGtriMPDxi 6VYBqCvltoI3N3OKoYL35tVPiN4tkDNW4oEBxrOSOnsUNhp/k88DAEXNZXBUNAiVc1wb 8k52HVJookjkzWroQp4RNx0rIJUDetnEG4+4bI45hv77kJSlk2B3H2gyvgRjjnPiN0z7 KRf/vQ7BngBuWO3Ik3PKP7P0K++zBog+i0AqMOiSQLH6wW5rQQqnfzxwJYBtaQoNHjtb ApeA== X-Gm-Message-State: AC+VfDxSTRazw15zq6eL3+xnu+1i4nm6bSuIV+xxOTx4QgKuFujoR2vP OPUgDFMgwBTAvalBVIW/HuRcr5a5VlJxj453Wns= X-Received: by 2002:a05:6e02:582:b0:332:fcce:c26d with SMTP id c2-20020a056e02058200b00332fccec26dmr4949876ils.0.1683566316035; Mon, 08 May 2023 10:18:36 -0700 (PDT) Received: from [192.168.1.128] ([38.15.45.1]) by smtp.gmail.com with ESMTPSA id q1-20020a920501000000b0033181097e9esm2474757ile.51.2023.05.08.10.18.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 08 May 2023 10:18:35 -0700 (PDT) Message-ID: <31510739-c069-56fc-a1d2-43a0c86aeb2c@linuxfoundation.org> Date: Mon, 8 May 2023 11:18:35 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH v2] tools/nolibc: Fix build of stdio.h due to header ordering Content-Language: en-US To: Mark Brown , Willy Tarreau , "Paul E. McKenney" , =?UTF-8?Q?Thomas_Wei=c3=9fschuh?= Cc: Shuah Khan , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, Shuah Khan References: <20230413-nolibc-stdio-fix-v2-1-6b6bbb045a80@kernel.org> From: Shuah Khan In-Reply-To: <20230413-nolibc-stdio-fix-v2-1-6b6bbb045a80@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 5/8/23 07:30, 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") > Acked-by: Willy Tarreau > Signed-off-by: Mark Brown > --- Applied now to linux-kselftest fixes for 6.4-rc2 thanks, -- Shuah