From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-6.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by gnuweeb.org (Postfix) with ESMTPS id 45F1A8140F for ; Tue, 21 Mar 2023 01:11:44 +0000 (UTC) Authentication-Results: gnuweeb.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=L8BJx1+A; dkim-atps=neutral Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 1A5CECE1741; Tue, 21 Mar 2023 01:11:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AF668C433AC; Tue, 21 Mar 2023 01:11:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1679361099; bh=itvMBi7pFpfn0c4qRiVR8pvpX/hmzHY5DmYgarYKaSw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=L8BJx1+AEBiHc0wfeKuAUlx3OngTqlX0g/MaHyny/AlE1iY2Dp1PKx1gxo3l9RoZV aHGvhbJo5yMZPISC/y2wU6A7gT1T2BKXVBLJf+5OIk3SpQGJjaUcyyt5fbvc0SlZxw iolVyajuIqPUIUXo2s8wO7IrFGruD29UKDtuxeBaT3+zvrh+D45Gc0AS7++6nxuHos f64IWQD5xLoVDfSIGHDm7n3QdYUr+YmVkWwEqlcXQ7O5HuBEhiU7rLXa5tALj3gO0h Dg99tU6yWh1CIz799dnj/WWr96vTHEjQThXJu8XEvW7xS48eY4mc6tR3RK7i8wmNpz 0yNGHH/uc+vSw== Received: by paulmck-ThinkPad-P72.home (Postfix, from userid 1000) id F358A15403A2; Mon, 20 Mar 2023 18:11:38 -0700 (PDT) From: "Paul E. McKenney" To: linux-kernel@vger.kernel.org Cc: gwml@vger.gnuweeb.org, kernel-team@meta.com, w@lwt.eu, Feiyang Chen , Huacai Chen , Willy Tarreau , "Paul E . McKenney" Subject: [PATCH nolibc 10/14] tools/nolibc: Include linux/fcntl.h and remove duplicate code Date: Mon, 20 Mar 2023 18:11:33 -0700 Message-Id: <20230321011137.51837-10-paulmck@kernel.org> X-Mailer: git-send-email 2.40.0.rc2 In-Reply-To: <6a3206d0-e5cd-4990-9604-444a24a8207c@paulmck-laptop> References: <6a3206d0-e5cd-4990-9604-444a24a8207c@paulmck-laptop> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: From: Feiyang Chen Include linux/fcntl.h for O_* and AT_*. asm/fcntl.h is included by linux/fcntl.h, so it can be safely removed. Signed-off-by: Feiyang Chen Acked-by: Huacai Chen Signed-off-by: Willy Tarreau Signed-off-by: Paul E. McKenney --- tools/include/nolibc/sys.h | 2 +- tools/include/nolibc/types.h | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/tools/include/nolibc/sys.h b/tools/include/nolibc/sys.h index 115579e7f1db..41cad6d6137e 100644 --- a/tools/include/nolibc/sys.h +++ b/tools/include/nolibc/sys.h @@ -11,7 +11,6 @@ #include "std.h" /* system includes */ -#include // for O_* #include #include // for SIGCHLD #include @@ -20,6 +19,7 @@ #include #include #include +#include // for O_* and AT_* #include "arch.h" #include "errno.h" diff --git a/tools/include/nolibc/types.h b/tools/include/nolibc/types.h index 47a0997d2d74..10823e5ac44b 100644 --- a/tools/include/nolibc/types.h +++ b/tools/include/nolibc/types.h @@ -81,11 +81,6 @@ #define MAXPATHLEN (PATH_MAX) #endif -/* Special FD used by all the *at functions */ -#ifndef AT_FDCWD -#define AT_FDCWD (-100) -#endif - /* whence values for lseek() */ #define SEEK_SET 0 #define SEEK_CUR 1 -- 2.40.0.rc2