[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAK8P3a1fxWAK94GH0cpzh6CHXgL4uJuDNCGpdJen5ib1HH1xoA@mail.gmail.com>
Date: Wed, 14 Mar 2018 21:52:21 +0100
From: Arnd Bergmann <arnd@...db.de>
To: Deepa Dinamani <deepa.kernel@...il.com>
Cc: kbuild test robot <lkp@...el.com>,
Mark Rutland <mark.rutland@....com>,
"open list:RALINK MIPS ARCHITECTURE" <linux-mips@...ux-mips.org>,
Peter Zijlstra <peterz@...radead.org>,
Benjamin Herrenschmidt <benh@...nel.crashing.org>,
Heiko Carstens <heiko.carstens@...ibm.com>,
Paul Mackerras <paulus@...ba.org>,
"H. Peter Anvin" <hpa@...or.com>,
sparclinux <sparclinux@...r.kernel.org>,
devel@...verdev.osuosl.org,
linux-s390 <linux-s390@...r.kernel.org>,
y2038 Mailman List <y2038@...ts.linaro.org>,
Michael Ellerman <mpe@...erman.id.au>,
Helge Deller <deller@....de>,
"the arch/x86 maintainers" <x86@...nel.org>,
sebott@...ux.vnet.ibm.com,
"James E.J. Bottomley" <jejb@...isc-linux.org>,
Christian Borntraeger <borntraeger@...ibm.com>,
Ingo Molnar <mingo@...hat.com>, oprofile-list@...ts.sf.net,
Catalin Marinas <catalin.marinas@....com>,
Peter Oberparleiter <oberpar@...ux.vnet.ibm.com>,
Robert Richter <rric@...nel.org>,
Chris Metcalf <cmetcalf@...lanox.com>,
Will Deacon <will.deacon@....com>,
Arnaldo Carvalho de Melo <acme@...nel.org>,
Julian Wiedmann <jwi@...ux.vnet.ibm.com>,
John Stultz <john.stultz@...aro.org>,
Steven Rostedt <rostedt@...dmis.org>,
Thomas Gleixner <tglx@...utronix.de>,
gerald.schaefer@...ibm.com,
Parisc List <linux-parisc@...r.kernel.org>,
Greg KH <gregkh@...uxfoundation.org>, cohuck@...hat.com,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Ralf Baechle <ralf@...ux-mips.org>,
"David S. Miller" <davem@...emloft.net>,
Jan Hoeppner <hoeppner@...ux.vnet.ibm.com>, kbuild-all@...org,
Stefan Haberland <sth@...ux.vnet.ibm.com>,
Martin Schwidefsky <schwidefsky@...ibm.com>,
linuxppc-dev <linuxppc-dev@...ts.ozlabs.org>,
Ursula Braun <ubraun@...ux.vnet.ibm.com>
Subject: Re: [Y2038] [PATCH v4 02/10] include: Move compat_timespec/ timeval
to compat_time.h
On Wed, Mar 14, 2018 at 4:50 AM, Deepa Dinamani <deepa.kernel@...il.com> wrote:
> The file arch/arm64/kernel/process.c needs asm/compat.h also to be
> included directly since this is included conditionally from
> include/compat.h. This does seem to be typical of arm64 as I was not
> completely able to get rid of asm/compat.h includes for arm64 in this
> series. My plan is to have separate patches to get rid of asm/compat.h
> includes for the architectures that are not straight forward to keep
> this series simple.
> I will fix this and update the series.
>
I ran across the same thing in two more files during randconfig testing on
arm64 now, adding this fixup on top for the moment, but maybe there
is a better way:
commit 4f3e9e1211799a79b201a1af309a1ec3864147ec
Author: Arnd Bergmann <arnd@...db.de>
Date: Wed Mar 14 18:23:16 2018 +0100
arm64: fix perf_regs.c
arch/arm64/kernel/perf_regs.c: In function 'perf_reg_abi':
arch/arm64/kernel/perf_regs.c:50:6: error: implicit declaration of
function 'is_compat_thread'; did you mean 'is_compat_task'?
[-Werror=implicit-function-declaration]
arch/arm64/kernel/hw_breakpoint.c: In function 'is_compat_bp':
arch/arm64/kernel/hw_breakpoint.c:182:16: error: implicit
declaration of function 'is_compat_thread'; did you mean
'is_compat_task'? [-Werror=implicit-function-declaration]
Signed-off-by: Arnd Bergmann <arnd@...db.de>
diff --git a/arch/arm64/kernel/hw_breakpoint.c
b/arch/arm64/kernel/hw_breakpoint.c
index 413dbe530da8..74bb56f656ef 100644
--- a/arch/arm64/kernel/hw_breakpoint.c
+++ b/arch/arm64/kernel/hw_breakpoint.c
@@ -30,6 +30,7 @@
#include <linux/smp.h>
#include <linux/uaccess.h>
+#include <asm/compat.h>
#include <asm/current.h>
#include <asm/debug-monitors.h>
#include <asm/hw_breakpoint.h>
diff --git a/arch/arm64/kernel/perf_regs.c b/arch/arm64/kernel/perf_regs.c
index 0bbac612146e..1b463a4efe49 100644
--- a/arch/arm64/kernel/perf_regs.c
+++ b/arch/arm64/kernel/perf_regs.c
@@ -6,6 +6,7 @@
#include <linux/bug.h>
#include <linux/sched/task_stack.h>
+#include <asm/compat.h>
#include <asm/perf_regs.h>
#include <asm/ptrace.h>
Powered by blists - more mailing lists