From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/12441 Path: news.gmane.org!.POSTED!not-for-mail From: William Pitcock Newsgroups: gmane.linux.lib.musl.general Subject: [PATCH] aarch64: signal: fix type definition for ucontext_t.uc_link Date: Wed, 31 Jan 2018 23:29:24 +0000 Message-ID: <20180131232924.4051-1-nenolod@dereferenced.org> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1517441287 29028 195.159.176.226 (31 Jan 2018 23:28:07 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 31 Jan 2018 23:28:07 +0000 (UTC) Cc: William Pitcock To: musl@lists.openwall.com Original-X-From: musl-return-12457-gllmg-musl=m.gmane.org@lists.openwall.com Thu Feb 01 00:28:03 2018 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1eh1nH-0006ia-6g for gllmg-musl@m.gmane.org; Thu, 01 Feb 2018 00:27:55 +0100 Original-Received: (qmail 10053 invoked by uid 550); 31 Jan 2018 23:29:56 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 10009 invoked from network); 31 Jan 2018 23:29:55 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dereferenced-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=uIuxA1DbqdKHi+8Tum8WW6fRNap76Dzpp6wBriDLSBk=; b=WF2mCIijgphVqQKgyGgc4DAXNzkt252fbxM4fDmq8VVEFqbHIEolyv90gt3qyHqWfp jLGrCsPdMsHtMSKDyB2bs9KAYdjjJcoT5Avv5wfv121yaTMAZVtcjv6pj0NP6rHOYvBn UvRIB6MZKVrT3sYUKtQA+7uq/SsVBLQKyyvBqY94thy6UbQhh74bIhANBQg0PFpFOmsL t8AnGMCpniSw7hBf+bXCZwFoC+NYNuU5yBMQAVfeZiquPANRRMpLMzayw4haKdE1reV3 XZe1loqrQM6L40AWHZLmDUUM/6OisyYE0S10w9K8Qxc0tkxmFxiNh8nbH0mWUj/P1fws 44bA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=uIuxA1DbqdKHi+8Tum8WW6fRNap76Dzpp6wBriDLSBk=; b=VoL6hmiN0n6b3N63ltQEPCV4mMLd70aUxauMGjQHpIVTqr3kI5WRt/kEMtgFCnj5V9 W4BuR2RwpIGiGLo0S4Axm+HjmdClfRtw5gFJnKvj4pGkDB43cu4HwkwRySAA8KnMJ8a/ oFLqR1Jj/cmJir8IyyqK3QU8bF5bwK7SlVov1Rbe2KEYBaHgeMF1LmoVUPL8OXA/D2ke IqQlYqjjaTQkyyyfSq2ixE3cCel3OLg3/yfIYAozyx3dVUhjhyFhlUFzTo9MgpTPL+Tj 06mvQnsHazXoDMFG9yLGKzFYrdMz7wV4LjtERu+WxY7t6CHmbHnficoIjzf6x+HfMGl6 ADIA== X-Gm-Message-State: AKwxytc85zxybWxr6sYFZ5OwmEtRW2mzXEgLcBwMdRJ9uERQ+2Oi2Alh gq2tsdWzzMRh3VB4d8E5CYMAckIS X-Google-Smtp-Source: AH8x225K6VjEMqkchTTocxEests6FbaDj4wJzBL+6sL0n+GYPSDdkGYuSmDsNAq2rU7m/wk+ZFZMjw== X-Received: by 10.36.58.14 with SMTP id m14mr27497701itm.45.1517441383762; Wed, 31 Jan 2018 15:29:43 -0800 (PST) X-Mailer: git-send-email 2.16.1 Xref: news.gmane.org gmane.linux.lib.musl.general:12441 Archived-At: When compiling the test program for libucontext, I observed a compiler warning concerning assignment to the wrong type (`struct __ucontext` vs `struct ucontext`). Accordingly, ucontext_t.uc_link should be the same structure as ucontext_t itself. --- arch/aarch64/bits/signal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/aarch64/bits/signal.h b/arch/aarch64/bits/signal.h index 5eb3d91f..1c67313d 100644 --- a/arch/aarch64/bits/signal.h +++ b/arch/aarch64/bits/signal.h @@ -59,7 +59,7 @@ struct sigaltstack { typedef struct __ucontext { unsigned long uc_flags; - struct ucontext *uc_link; + struct __ucontext *uc_link; stack_t uc_stack; sigset_t uc_sigmask; mcontext_t uc_mcontext; -- 2.16.1