From: Michael Ellerman <patch-notifications@ellerman.id.au>
To: Harish <harish@linux.vnet.ibm.com>, linuxppc-dev@lists.ozlabs.org
Cc: Harish <harish@linux.vnet.ibm.com>
Subject: Re: selftests/powerpc: Fix: use ucontext_t instead of struct ucontext
Date: Wed, 14 Feb 2018 16:43:48 +1100 (AEDT) [thread overview]
Message-ID: <3zh7ck2DlBz9t6X@ozlabs.org> (raw)
In-Reply-To: <1518503575-19021-1-git-send-email-harish@linux.vnet.ibm.com>
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 664 bytes --]
On Tue, 2018-02-13 at 06:32:55 UTC, Harish wrote:
> With glibc 2.26 'struct ucontext' is removed to improve POSIX
> compliance, which breaks powerpc/alignment_handler selftest.
> Fix the test by using ucontext_t. Tested on ppc, works with older
> glibc versions as well.
>
> Fixes the following:
> alignment_handler.c: In function ‘sighandler’:
> alignment_handler.c:68:5: error: dereferencing pointer to incomplete type ‘struct ucontext’
> ucp->uc_mcontext.gp_regs[PT_NIP] += 4;
> ^~
>
> Signed-off-by: Harish <harish@linux.vnet.ibm.com>
Applied to powerpc fixes, thanks.
https://git.kernel.org/powerpc/c/ecdf06e1ea5376bba03c155751f686
cheers
prev parent reply other threads:[~2018-02-14 5:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-13 6:32 [PATCH] selftests/powerpc: Fix: use ucontext_t instead of struct ucontext Harish
2018-02-14 5:43 ` Michael Ellerman [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3zh7ck2DlBz9t6X@ozlabs.org \
--to=patch-notifications@ellerman.id.au \
--cc=harish@linux.vnet.ibm.com \
--cc=linuxppc-dev@lists.ozlabs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).