From patchwork Mon Feb 12 17:59:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Askar Safin X-Patchwork-Id: 1897913 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=zohomail.com header.i=safinaskar@zohomail.com header.a=rsa-sha256 header.s=zm2022 header.b=SNtVPxme; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4TYXW63qKqz23hw for ; Tue, 13 Feb 2024 05:08:02 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 7ACDB3858C29 for ; Mon, 12 Feb 2024 18:08:00 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from sender4-pp-o94.zoho.com (sender4-pp-o94.zoho.com [136.143.188.94]) by sourceware.org (Postfix) with ESMTPS id 9243B3858CDB for ; Mon, 12 Feb 2024 18:07:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9243B3858CDB Authentication-Results: sourceware.org; dmarc=pass (p=reject dis=none) header.from=zohomail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=zohomail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 9243B3858CDB Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=136.143.188.94 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1707761264; cv=pass; b=DmVi3goKN4PocKpWruXC66gTWZkLbGBZtcPRccdgkjVcUsh8l7tz3KZk6bhfJdcPN+T6ymu/BOZM88DkQag1ojoA35Rgdc45goVeTO426QaFTiP+N9qgtnARh3iTFcqqWRCVCJ8RIixgJNxZdyphKxQIWFxWgVG9u8yCKwpKflI= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1707761264; c=relaxed/simple; bh=6j4W7kvDhJyRmYM2PZMkC1PmaeqLgxoXaWH8QNhk5Bs=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=j0lQ1wW86hE15HhNb0U3B7VkOTIj5B5Vm2PGHbhZROD7xaW0bssh69DllgXoAQzoZuvwp/JTgwWYrAdVSMsThH18RcIWgkcaitR/p2OIxNDc/sdHOz4dt2KBkIkZsWWwLpB8M+Fm23ETRgOmJEJ7O3uGHILuYy+93GgYI14cpzk= ARC-Authentication-Results: i=2; server2.sourceware.org ARC-Seal: i=1; a=rsa-sha256; t=1707761260; cv=none; d=zohomail.com; s=zohoarc; b=bnCWWC/J6EHdyZK0AEwj2JQ0y3qTlWdi8DKV3+UoE/AEXMNJ5IwGPZCXvLWn28bGvMa8S8JOI5g8g0Bs1HBpPzn5G8ifqpG94Fznk345PRzhOXt6yXcizCRjkfEna0laP38lHCyM5u4C8u9JAND9nXOfL2U+ez2c0zlsF75oJp8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1707761260; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:MIME-Version:Message-ID:Subject:Subject:To:To:Message-Id:Reply-To; bh=n3vmvXq7tsa/ChW6qVfM+RTq4VjPlFQNajK23XviL6E=; b=CuWe/WGVHDyjbaFPsSxUZLotP/f49fK+VhdIAtzWuZvSrlrPNXMVAy69CxDpH8AXDEaCfO9mfSLmAB+CbtxYNAo7cFmgK+/i+d15XRWYv0UmgQufqry2b2zupPchBqvoQrYjmOgUtADMnfAszR+dCpUfj8U8rnNwV4CmQi/ZvA0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=zohomail.com; spf=pass smtp.mailfrom=safinaskar@zohomail.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1707761260; s=zm2022; d=zohomail.com; i=safinaskar@zohomail.com; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-ID:MIME-Version:Content-Transfer-Encoding:Feedback-ID:Message-Id:Reply-To; bh=n3vmvXq7tsa/ChW6qVfM+RTq4VjPlFQNajK23XviL6E=; b=SNtVPxmegYSPyLxXL/i+NGZqnG0INX0hsC9bsbjdhbkIaipMVql5yVkIt6O0hN+y USeT31Zes8F7z1TIDfjkVGNqXWv2F+nc9yQ+uyjowmbWGl4FZYabn3h78+o5WSkrXS/ 1oXaeB0mOXwMawuTKRbOAKnMTzRQEESCtgmd0TP4= Received: from localhost.localdomain (212.73.77.98 [212.73.77.98]) by mx.zohomail.com with SMTPS id 170776125866376.57535067818799; Mon, 12 Feb 2024 10:07:38 -0800 (PST) From: Askar Safin To: carlos@redhat.com Cc: libc-alpha@sourceware.org, adhemerval.zanella@linaro.org, dalias@libc.org, fweimer@redhat.com Subject: [PATCH] sysdeps/unix/sysv/linux/syscall.c is not referenced anywhere, let's remove it Date: Mon, 12 Feb 2024 20:59:51 +0300 Message-ID: <20240212180728.19099-1-safinaskar@zohomail.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Feedback-ID: rr080112279074accb67afd3f71f3be0bc0000ba68a2f5983d617982c62bce35b7d3391005d70f9824e652ab:zu080112275d3f1a6b94300e8505e427db000075a1d0a71faef1923cb7adb85808e907a17f580fd48f582dcb:rf0801122ca11af95060a02d0e080618bf000060c9711d40ca9a99ee2fe81b28aad963ba36db869e7c922d5c8a4ca02416:ZohoMail X-ZohoMailClient: External X-Spam-Status: No, score=-10.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, 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 server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org sysdeps/unix/sysv/linux/syscall.c is not referenced anywhere. In particular, it is not referenced in sysdeps/unix/sysv/linux/Makefile . So, this syscall.c is dead code, let's remove it. Compile-tested on Linux x86_64 Signed-off-by: Askar Safin --- This is another small issue I found when I was writing that "syscall_no_errno" patch sysdeps/unix/sysv/linux/syscall.c | 43 ------------------------------- 1 file changed, 43 deletions(-) delete mode 100644 sysdeps/unix/sysv/linux/syscall.c diff --git a/sysdeps/unix/sysv/linux/syscall.c b/sysdeps/unix/sysv/linux/syscall.c deleted file mode 100644 index 3cff1d970a..0000000000 --- a/sysdeps/unix/sysv/linux/syscall.c +++ /dev/null @@ -1,43 +0,0 @@ -/* Indirect system call. Linux generic implementation. - Copyright (C) 1997-2024 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library. If not, see - . */ - -#include -#include - -long int -syscall (long int number, ...) -{ - va_list args; - - va_start (args, number); - long int a0 = va_arg (args, long int); - long int a1 = va_arg (args, long int); - long int a2 = va_arg (args, long int); - long int a3 = va_arg (args, long int); - long int a4 = va_arg (args, long int); - long int a5 = va_arg (args, long int); - va_end (args); - - long int r = INTERNAL_SYSCALL_NCS_CALL (number, a0, a1, a2, a3, a4, a5); - if (__glibc_unlikely (INTERNAL_SYSCALL_ERROR_P (r))) - { - __set_errno (-r); - return -1; - } - return r; -}