Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp5465741rdb; Sat, 16 Sep 2023 20:02:09 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGCAqCjnImnwcfMdECmpFMUyOI0kvN5jJ9906rjHtL6IX6dSXcWpde4xy4d1Bt7IlCuQNBx X-Received: by 2002:a17:903:1cf:b0:1b5:522a:1578 with SMTP id e15-20020a17090301cf00b001b5522a1578mr12587248plh.29.1694919728665; Sat, 16 Sep 2023 20:02:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694919728; cv=none; d=google.com; s=arc-20160816; b=gp6V7ISg+/jBgm6h86139bskP2329sLHMVOxLiC3byLtXYOkkyMWvCEVLpUu7qKyue ufvOfyguLw9099NGFRh1nYglEAmAIV16Vzd7EHudheT9R044lZT1mNrCrHUI9iWvtI0G meyCZZTmhUwM/uF9svXv3LGHsfux+ofM3L4/iSukzVT9kCr0YKtxuZgNykrdzuBAYkEh SxZ/wYj0dTX2+ge5GBCBAVPCaVkfPdv/2jR2eWa23JK5daBXaxbqKSDOtgS7nsFfRNTp BwWuUoEMKy2OoaAMIwY6Pg2XxbN+rM0FZCD+BnRfknwZ1rincnrDzkdJYOfSc1O2y7af yPhw== 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=eu7RKUBIu5xWempYYT5KhK6yVspEwxqDFgc/8ATUkGA=; fh=q3eJ70+nPBBOurH5DI6uivZtkSdfT1YhlPrRDAlF5bE=; b=sp2G3ZiEtNcjYQ65Zxa8WuBn8QiBr1c/a1yQMb3fu8rNfalPXyHKUJ+iqZofPQ5gkp v4QE4Y6FUZ3BJIz2prdjj+dJudc4aHhY188jRIppqKwcMSoOratNQ1LWtjRXSsponZsB YBoZasltiI2JD5E+Gp+jkCwg0e1W08TqH69n0LCYeDfn5LoLx1H1Ab/O4M4W01dHrfhg kraIAFDey1AKdixd42li8LlZh9gz4ol0M7CK4A6yS6hQ/2CNIH4uuVI0O8MwtJGEl0n8 pLHzwnURjm9LxzicUzblBGy0yfuTRl7cLClF0f29difOinLO7vdvtBi3XxDUwRDfmgKa nNJQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id e13-20020a65678d000000b00569466198b0si5802901pgr.821.2023.09.16.20.02.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Sep 2023 20:02:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 52B2B83B16EE; Sat, 16 Sep 2023 20:01:26 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230409AbjIQDAW (ORCPT + 99 others); Sat, 16 Sep 2023 23:00:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230166AbjIQDAG (ORCPT ); Sat, 16 Sep 2023 23:00:06 -0400 Received: from 1wt.eu (ded1.1wt.eu [163.172.96.212]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 19917CDC; Sat, 16 Sep 2023 19:59:59 -0700 (PDT) Received: (from willy@localhost) by pcw.home.local (8.15.2/8.15.2/Submit) id 38H2xjpm009886; Sun, 17 Sep 2023 04:59:45 +0200 Date: Sun, 17 Sep 2023 04:59:45 +0200 From: Willy Tarreau To: Thomas =?iso-8859-1?Q?Wei=DFschuh?= Cc: Paul Walmsley , Palmer Dabbelt , Albert Ou , Shuah Khan , linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH 3/4] tools/nolibc: don't define new syscall number Message-ID: <20230917025945.GF9646@1wt.eu> References: <20230914-nolibc-syscall-nr-v1-0-e50df410da11@weissschuh.net> <20230914-nolibc-syscall-nr-v1-3-e50df410da11@weissschuh.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230914-nolibc-syscall-nr-v1-3-e50df410da11@weissschuh.net> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Sat, 16 Sep 2023 20:01:26 -0700 (PDT) On Thu, Sep 14, 2023 at 06:01:19PM +0200, Thomas Wei?schuh wrote: > All symbols created by nolibc are also visible to user code. > Syscall constants are expected to come from the kernel headers and > should not be made up by nolibc. > > Refactor the logic to avoid defining syscall numbers. > Also the new code is easier to understand. > > Signed-off-by: Thomas Wei?schuh Yeah that's a good point! Acked-by: Willy Tarreau Willy