From patchwork Fri Dec 7 20:29:50 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "H.J. Lu" X-Patchwork-Id: 30586 Received: (qmail 28917 invoked by alias); 7 Dec 2018 20:30:44 -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 28761 invoked by uid 89); 7 Dec 2018 20:30:30 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00, FREEMAIL_FROM, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mail-ot1-f53.google.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=kDBU9/8mIV82UmCgNhV2wsQLTo6GzsGywhIA1IX4dRU=; b=oUVdPdwHeuI7zB5WN3CAlM3R++hwu1vrP13hw0j7WJozkP3s1Mk0/rlpnGPVnw9qTL dymcMdtZ2uF/YA4amRyq4+Lx4QRNFg427yfXdVTzfD/pn8dCpbnLP4GN3w3P9PsJJWug 7a4CBanF+//zEmTAH0anCq9fc4ASrUty77cD9nGUX/f0h+Ibx8RT9PX9zcMczEYWIoZy FCj0GCgMk9TZo23PCZnnPe4lkETkwEIuvGjcGx/D9oGMP//CA0qBLWWlu4A3paK1vtr9 9dei5HEoVGuBvi2apNipNlVJ87gfRmaClk5LvLuMaCeTU9acl3DUGyHQpCf/y9IV+XlO M/Wg== MIME-Version: 1.0 References: <877egng68l.fsf@oldenburg2.str.redhat.com> <87mupjeizt.fsf@oldenburg2.str.redhat.com> <87pnudcmar.fsf@oldenburg2.str.redhat.com> <878t11cl6q.fsf@oldenburg2.str.redhat.com> In-Reply-To: <878t11cl6q.fsf@oldenburg2.str.redhat.com> From: "H.J. Lu" Date: Fri, 7 Dec 2018 12:29:50 -0800 Message-ID: Subject: [PATCH] Don't use __typeof__ (getcpu) To: Florian Weimer Cc: "Joseph S. Myers" , "Carlos O'Donell" , GNU C Library On Fri, Dec 7, 2018 at 9:15 AM Florian Weimer wrote: > > * H. J. Lu: > > > Here is the updated patch. OK for master? > > Looks okay to me now. This is needed for Hurd. Tested with build-many-glibcs.py. OK for master? From 2894f9226744f94a03bcd2d9ca3794a2bdbe8923 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Fri, 7 Dec 2018 12:25:33 -0800 Subject: [PATCH] Don't use __typeof__ (getcpu) We can't use "__typeof__ (getcpu)" since getcpu is Linux specific and Hurd doesn't have it. Tested with build-many-glibcs.py. * include/sched.h (__getcpu): Don't use __typeof__ (getcpu). --- include/sched.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/sched.h b/include/sched.h index 0843c26d73..4abc440176 100644 --- a/include/sched.h +++ b/include/sched.h @@ -26,7 +26,9 @@ libc_hidden_proto (__clone) extern int __clone2 (int (*__fn) (void *__arg), void *__child_stack_base, size_t __child_stack_size, int __flags, void *__arg, ...); libc_hidden_proto (__clone2) -extern __typeof__ (getcpu) __getcpu; +/* NB: Can't use "__typeof__ (getcpu)" since getcpu is Linux specific + and Hurd doesn't have it. */ +extern int __getcpu (unsigned int *, unsigned int *); libc_hidden_proto (__getcpu) #endif #endif -- 2.19.2