From patchwork Sun Feb 9 20:20:06 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Weimer X-Patchwork-Id: 37811 X-Patchwork-Delegate: carlos@redhat.com Received: (qmail 19126 invoked by alias); 9 Feb 2020 20:20:14 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 19041 invoked by uid 89); 9 Feb 2020 20:20:14 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-18.8 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy= X-HELO: us-smtp-delivery-1.mimecast.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1581279611; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=buptDIAQ3SJ3kbOEAtFu2NwwY4+0ZlL9N3X/v/JSDVM=; b=BPntqYoXgMz7om88ngfRdEndqVIQLC3D4bCbZo1Vym8mBvEgC32MWE0526XjSk7BYPlxkO NRyKUNUReHlcfFNSjna4AjKpYja2eX/00zkk3rMUjpmqYU92UMveNqyywrQEsWSG0pmIBd vB9zmnL1Z6Iz8WTmWtCIG8d0wIsVMfA= From: Florian Weimer To: libc-alpha@sourceware.org Subject: [PATCH 07/26] Linux: sched_setaffinity syscall number is always available In-Reply-To: References: X-From-Line: 954b0b3eb3c976b0d1144c3b5c7c00f13d572dc7 Mon Sep 17 00:00:00 2001 Message-Id: <954b0b3eb3c976b0d1144c3b5c7c00f13d572dc7.1581279333.git.fweimer@redhat.com> Date: Sun, 09 Feb 2020 21:20:06 +0100 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Due to the built-in tables, __NR_sched_setaffinity is always defined. Reviewed-by: Adhemerval Zanella --- sysdeps/unix/sysv/linux/sched_setaffinity.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/sysdeps/unix/sysv/linux/sched_setaffinity.c b/sysdeps/unix/sysv/linux/sched_setaffinity.c index bc0c42ce52..fc2c692783 100644 --- a/sysdeps/unix/sysv/linux/sched_setaffinity.c +++ b/sysdeps/unix/sysv/linux/sched_setaffinity.c @@ -24,8 +24,6 @@ #include -#ifdef __NR_sched_setaffinity - extern int __sched_setaffinity_new (pid_t, size_t, const cpu_set_t *); libc_hidden_proto (__sched_setaffinity_new) @@ -46,7 +44,7 @@ versioned_symbol (libc, __sched_setaffinity_new, sched_setaffinity, GLIBC_2_3_4); -# if SHLIB_COMPAT (libc, GLIBC_2_3_3, GLIBC_2_3_4) +#if SHLIB_COMPAT (libc, GLIBC_2_3_3, GLIBC_2_3_4) int attribute_compat_text_section __sched_setaffinity_old (pid_t pid, const cpu_set_t *cpuset) @@ -55,7 +53,4 @@ __sched_setaffinity_old (pid_t pid, const cpu_set_t *cpuset) return __sched_setaffinity_new (pid, 128, cpuset); } compat_symbol (libc, __sched_setaffinity_old, sched_setaffinity, GLIBC_2_3_3); -# endif -#else -# include #endif