Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 66350C4332D for ; Thu, 21 Jan 2021 07:40:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3C684238EE for ; Thu, 21 Jan 2021 07:40:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727499AbhAUHka (ORCPT ); Thu, 21 Jan 2021 02:40:30 -0500 Received: from wtarreau.pck.nerim.net ([62.212.114.60]:49255 "EHLO 1wt.eu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727354AbhAUHVx (ORCPT ); Thu, 21 Jan 2021 02:21:53 -0500 Received: (from willy@localhost) by pcw.home.local (8.15.2/8.15.2/Submit) id 10L7KhjJ023833; Thu, 21 Jan 2021 08:20:43 +0100 From: Willy Tarreau To: "Paul E. McKenney" Cc: Mark Rutland , valentin.schneider@arm.com, linux-kernel@vger.kernel.org, Willy Tarreau Subject: [PATCH 7/9] tools/nolibc: remove incorrect definitions of __ARCH_WANT_* Date: Thu, 21 Jan 2021 08:20:29 +0100 Message-Id: <20210121072031.23777-8-w@1wt.eu> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20210121072031.23777-1-w@1wt.eu> References: <20210121072031.23777-1-w@1wt.eu> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org These definitions were added with support for aarch64 when some syscall definitions were missing (__NR_dup2, __NR_fork, __NR_getpgrp, etc), but these were actually wrong because these syscalls do not exist on this platform, and definiting these resulted in exposing invalid definitions. The missing syscalls were since implemented based on the newer ones (__NR_dup3, __NR_clone, __NR_getpgid) so these incorrect defintions are definitely not needed anymore. Thanks to Mark Rutland for spotting this incorrect analysis and explaining why it was wrong. [This is nolibc's upstream commit 00b1b0d9b2a4] Reported-by: Mark Rutland Link: https://lore.kernel.org/lkml/20210119153147.GA5083@paulmck-ThinkPad-P72 Cc: "Paul E. McKenney" Cc: valentin.schneider@arm.com Signed-off-by: Willy Tarreau --- tools/include/nolibc/nolibc.h | 8 -------- 1 file changed, 8 deletions(-) diff --git a/tools/include/nolibc/nolibc.h b/tools/include/nolibc/nolibc.h index 611d9d15899d..475d956ed1d6 100644 --- a/tools/include/nolibc/nolibc.h +++ b/tools/include/nolibc/nolibc.h @@ -81,14 +81,6 @@ * */ -/* Some archs (at least aarch64) don't expose the regular syscalls anymore by - * default, either because they have an "_at" replacement, or because there are - * more modern alternatives. For now we'd rather still use them. - */ -#define __ARCH_WANT_SYSCALL_NO_AT -#define __ARCH_WANT_SYSCALL_NO_FLAGS -#define __ARCH_WANT_SYSCALL_DEPRECATED - #include #include #include -- 2.28.0