From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f179.google.com (mail-pg1-f179.google.com [209.85.215.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 57D3637F00D for ; Sun, 26 Jul 2026 10:13:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785060815; cv=none; b=pJrUv/tMYa7+fozN8u/0T2/awbW7urG7wRlyij0TaB5yiHtuT8WYDC9MieeBwbCmCdjCiQMfljSgkBzMkdend1PbcMCRdFDDIdFLU+i29dwoapqv0WAuCDgAv6RqkbrWjO+STzoUf0VCx5+AJC1rVPxOx6JoAF8SpLWEfrEuezY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785060815; c=relaxed/simple; bh=9yh2PeC9iH2ehGJhAogCXH1OX690Q3HSkoCKr4p5te0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=n6Bgb677zpohRqkfX7yiqdkbVsC7a0YnuEfr35dQQElPIy+/B9gdTEhfiuhbne+LPSNVkxsgAgVxRQJgu3NJ+6Wg7bQXM0P5yQhNCWoNb7fetMbT/hVNKshtEdunVe2YAT3MS6m5FwyjAmSZK7d7JqFRX2kfzlfgVhXHMbqyyXk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=openresty.com; spf=pass smtp.mailfrom=openresty.com; dkim=pass (2048-bit key) header.d=openresty.com header.i=@openresty.com header.b=k36wezwx; arc=none smtp.client-ip=209.85.215.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=openresty.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=openresty.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=openresty.com header.i=@openresty.com header.b="k36wezwx" Received: by mail-pg1-f179.google.com with SMTP id 41be03b00d2f7-c9e0b89e228so1227865a12.1 for ; Sun, 26 Jul 2026 03:13:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=openresty.com; s=google; t=1785060811; x=1785665611; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=CrlASkg3aEU6DCVKYIVsNYyPT/klq2H1IARTdtVshro=; b=k36wezwx03n85ERYhgKuZaVjZng9syKhwGGhfwQoq5dyRbUPJwIfaO9M8KWWLS399F 62i0+OKvGL8NyZlwxQcec2RWohamDquZCsezuUJT2CLHGe8TvPttLLeBeYXvjAc5oAma gIOM21ETW5oMCUjmoMwlYY/44gmmCnAQ3qmj4/GRjEZRi18mhSX/J8zpaqQkom9roau/ Otz63XZ+X65QG1Rs/Ypv+lpu9PMfuu81wzsJAvlT1ya47VpkgbLnaRgynFDQ9lyoKE2X qb6KOHer4GzwzCC/5i61g/jSqQlJvZS9ha6pWIEIVnf+F6L6izohO2aiOAiyuC4sGsCE YvGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785060811; x=1785665611; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=CrlASkg3aEU6DCVKYIVsNYyPT/klq2H1IARTdtVshro=; b=oFEXD6DuGGF8kscTzTMEKVf2PodRBLIqEdmjRSIovx6NnOLGrvGEeOg3fq7+cOYdJ5 SfXuuB4aTkDGKt1k5cxgOYGdpBk8G+T7UVpQhoeIgiCXFpqxJ6OBL2Py3TCw/bM2gsxc yQ+1lisMO8w7iX8TlYs8Ye9XBglOvtBs4yLk6Kw0RTBK58HmeCxsol6V8pRNVu1s/Iyn 5MNeCP41Lcvr4y0D3hcaxHqJqX6GxAAQuiEse4lrI0rM8KLtcr+kk+DKdSByZyw1ws1E teMusXSr6uRs9t5l+BsObBn8rD4m+MxbRZwee3YCdmZGmJq1N2/ywF5ntw1bDOINNiMB XdXA== X-Forwarded-Encrypted: i=1; AHgh+Rrp6t0JtPPHEkwVf+q9vWrzZEkEqfAWL4bi9v1pvClzkN0UjrCpGcu+sWBiqdFVJmVIZBgQb82cio0UZo0=@vger.kernel.org X-Gm-Message-State: AOJu0YyGiFHuEhmGG3foAodMi2hxBEY+Bu1qY4pMjT0h/NUOONmW0V6z p+fnGABtJttqGXQvysPBMKKmf+7GKpsHSmUm/MuTtFGbnX81QRPgGUwVs+kK+9NvIFQ= X-Gm-Gg: AR+sD10bEaR4y4IDsBSLL0D5u0BNBXn8yLtWI0dACHSpyfVexA3Ltj4IrJuk+M6DAku q93nbYHBU7ybz8Mb1OIgN/McaPi+ktj/m1b5uz9uoEt6QZWT0h7zx3X/mboAY4L4or9n4pUci1r dHVA9XQne7vna3Es25OVr/T6P2ovfUz1eDfYE8f522rvnV8fN0XvNfYFkqi9+gliDzTAmWwPGfI xUzVnPtL/NGbLvC3q3Q5dZA9n+39o249p1EaGZDZqB9tF07gLo6TAXOuLQ8pR0eGjV1MHrtQL2r zf1UFTE7M0zCu+hwuPXKRwRW6XK7zjyKKbLvUHBJziNxfQWM/p6f4OSLNfybo0sm/ufxGD8yXOf zhQPdCdRtfdCfNtN50cNKG67hBwR3vsMwPX08gEaa5DZF96WXFFzTJZ4F7esqTL/5NEfqCRM2wL CxwnRG8YDanCdpTg== X-Received: by 2002:a05:6a20:2d11:b0:3c3:824d:5200 with SMTP id adf61e73a8af0-3c67df2e412mr4352320637.41.1785060811108; Sun, 26 Jul 2026 03:13:31 -0700 (PDT) Received: from integral2.. ([2402:8780:1329:2779:9db7:a8ec:2e1c:53e1]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-314bc59e9fesm17243981eec.27.2026.07.26.03.13.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Jul 2026 03:13:30 -0700 (PDT) From: Ammar Faizi To: Willy Tarreau , =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= Cc: Ammar Faizi , Linux Kernel Mailing List , Linux Kselftest Mailing List , LLVM Mailing List , Yichun Zhang , Alviro Iskandar Setiawan , Shuah Khan , Nathan Chancellor , Nick Desaulniers , Bill Wendling , Justin Stitt , gwml@gnuweeb.org Subject: [PATCH 4/4] tools/nolibc: remove dead __ARCH_WANT_SYS_OLD_SELECT Date: Sun, 26 Jul 2026 17:13:05 +0700 Message-Id: <20260726101306.3772237-5-ammarfaizi2@openresty.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260726101306.3772237-1-ammarfaizi2@openresty.com> References: <20260726101306.3772237-1-ammarfaizi2@openresty.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The macro lost its last user when select() was reimplemented on top of pselect6 for every architecture; sys/select.h no longer looks at it, and nothing else in the tree does either. See commit 668e43737279 ("tools/nolibc/select: drop non-pselect based implementations"). The comment that goes with it is stale for the same reason, as neither architecture can end up calling old_select any more. Drop both from arch-x86.h and arch-arm.h. Cc: Alviro Iskandar Setiawan Signed-off-by: Ammar Faizi --- tools/include/nolibc/arch-arm.h | 3 --- tools/include/nolibc/arch-x86.h | 3 --- 2 files changed, 6 deletions(-) diff --git a/tools/include/nolibc/arch-arm.h b/tools/include/nolibc/arch-arm.h index 8681922e05ca..b88686fb19c4 100644 --- a/tools/include/nolibc/arch-arm.h +++ b/tools/include/nolibc/arch-arm.h @@ -33,10 +33,7 @@ * with r7 before calling svc, and r6 is marked as clobbered. * We're just using any regular register which we assign to r7 after saving * it. - * - * Also, ARM supports the old_select syscall if newselect is not available */ -#define __ARCH_WANT_SYS_OLD_SELECT #if (defined(__THUMBEB__) || defined(__THUMBEL__)) && \ !defined(NOLIBC_OMIT_FRAME_POINTER) diff --git a/tools/include/nolibc/arch-x86.h b/tools/include/nolibc/arch-x86.h index fe152ac2650b..577e9b682eb3 100644 --- a/tools/include/nolibc/arch-x86.h +++ b/tools/include/nolibc/arch-x86.h @@ -25,10 +25,7 @@ * don't have to experience issues with register constraints. * - the syscall number is always specified last in order to allow to force * some registers before (gcc refuses a %-register at the last position). - * - * Also, i386 supports the old_select syscall if newselect is not available */ -#define __ARCH_WANT_SYS_OLD_SELECT #define __nolibc_syscall0(num) \ ({ \ -- Ammar Faizi