[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <562D452A.5030906@hauke-m.de>
Date: Sun, 25 Oct 2015 22:10:02 +0100
From: Hauke Mehrtens <hauke@...ke-m.de>
To: Paul Burton <paul.burton@...tec.com>, linux-mips@...ux-mips.org,
Ralf Baechle <ralf@...ux-mips.org>
CC: Matthew Fortune <matthew.fortune@...tec.com>,
Peter Zijlstra <peterz@...radead.org>,
Zubair Lutfullah Kakakhel <Zubair.Kakakhel@...tec.com>,
Alex Smith <alex@...x-smith.me.uk>,
linux-kernel@...r.kernel.org,
Michal Nazarewicz <mina86@...a86.com>,
Richard Weinberger <richard@....at>,
Andrew Morton <akpm@...ux-foundation.org>,
Andy Lutomirski <luto@...capital.net>,
Daniel Borkmann <dborkman@...hat.com>,
Markos Chandras <markos.chandras@...tec.com>,
Frederic Weisbecker <fweisbec@...il.com>,
Michael Ellerman <mpe@...erman.id.au>,
"Maciej W. Rozycki" <macro@...esourcery.com>
Subject: Re: [PATCH 10/16] compile error: MIPS: add definitions for extended
context
This patch is causing a build error for me on 4.3-rc7.
CC arch/mips/kernel/signal.o
arch/mips/kernel/signal.c: In function 'sc_to_extcontext':
arch/mips/kernel/signal.c:143:12: error: 'struct ucontext' has no member
named 'uc_extcontext'
return &uc->uc_extcontext;
^
In file included from include/linux/poll.h:11:0,
from include/linux/ring_buffer.h:7,
from include/linux/trace_events.h:5,
from include/trace/syscall.h:6,
from include/linux/syscalls.h:81,
from arch/mips/kernel/signal.c:26:
arch/mips/kernel/signal.c: In function 'save_msa_extcontext':
arch/mips/kernel/signal.c:171:40: error: dereferencing pointer to
incomplete type 'struct msa_extcontext'
err = __put_user(read_msa_csr(), &msa->csr);
^
./arch/mips/include/asm/uaccess.h:441:15: note: in definition of macro
'__put_user_nocheck'
__typeof__(*(ptr)) __pu_val; \
^
arch/mips/kernel/signal.c:171:9: note: in expansion of macro '__put_user'
err = __put_user(read_msa_csr(), &msa->csr);
^
arch/mips/kernel/signal.c:186:20: error: 'MSA_EXTCONTEXT_MAGIC'
undeclared (first use in this function)
err |= __put_user(MSA_EXTCONTEXT_MAGIC, &msa->ext.magic);
^
./arch/mips/include/asm/uaccess.h:444:14: note: in definition of macro
'__put_user_nocheck'
__pu_val = (x); \
^
arch/mips/kernel/signal.c:186:9: note: in expansion of macro '__put_user'
err |= __put_user(MSA_EXTCONTEXT_MAGIC, &msa->ext.magic);
^
arch/mips/kernel/signal.c:186:20: note: each undeclared identifier is
reported only once for each function it appears in
err |= __put_user(MSA_EXTCONTEXT_MAGIC, &msa->ext.magic);
^
./arch/mips/include/asm/uaccess.h:444:14: note: in definition of macro
'__put_user_nocheck'
__pu_val = (x); \
^
arch/mips/kernel/signal.c:186:9: note: in expansion of macro '__put_user'
err |= __put_user(MSA_EXTCONTEXT_MAGIC, &msa->ext.magic);
^
.......
When I include uapi/asm/ucontext.h instead of asm/ucontext.h in signal.c
it compiles again.
Hauke
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists