[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <34ecb581-d7e7-c5f3-8f5e-9de91e435cea@c-s.fr>
Date: Wed, 26 Feb 2020 13:04:38 +0100
From: Christophe Leroy <christophe.leroy@....fr>
To: Michael Ellerman <mpe@...erman.id.au>,
Benjamin Herrenschmidt <benh@...nel.crashing.org>,
Paul Mackerras <paulus@...ba.org>, mikey@...ling.org
Cc: linux-kernel@...r.kernel.org, linuxppc-dev@...ts.ozlabs.org
Subject: Re: [RFC PATCH v2 04/12] powerpc/ptrace: split out VSX related
functions.
Le 24/02/2020 à 11:51, Michael Ellerman a écrit :
> Christophe Leroy <christophe.leroy@....fr> writes:
>> diff --git a/arch/powerpc/kernel/ptrace/ptrace-novsx.c b/arch/powerpc/kernel/ptrace/ptrace-novsx.c
>> new file mode 100644
>> index 000000000000..55fbbb4aa9d7
>> --- /dev/null
>> +++ b/arch/powerpc/kernel/ptrace/ptrace-novsx.c
>> @@ -0,0 +1,83 @@
>> +/* SPDX-License-Identifier: GPL-2.0-or-later */
>> +
>> +#include <linux/kernel.h>
>> +#include <linux/sched.h>
>> +#include <linux/mm.h>
>> +#include <linux/smp.h>
>> +#include <linux/errno.h>
>> +#include <linux/ptrace.h>
>> +#include <linux/regset.h>
>> +#include <linux/tracehook.h>
>> +#include <linux/elf.h>
>> +#include <linux/user.h>
>> +#include <linux/security.h>
>> +#include <linux/signal.h>
>> +#include <linux/seccomp.h>
>> +#include <linux/audit.h>
>> +#include <trace/syscall.h>
>> +#include <linux/hw_breakpoint.h>
>> +#include <linux/perf_event.h>
>> +#include <linux/context_tracking.h>
>> +#include <linux/nospec.h>
>> +
>> +#include <linux/uaccess.h>
>> +#include <linux/pkeys.h>
>> +#include <asm/page.h>
>> +#include <asm/pgtable.h>
>> +#include <asm/switch_to.h>
>> +#include <asm/tm.h>
>> +#include <asm/asm-prototypes.h>
>> +#include <asm/debug.h>
>> +#include <asm/hw_breakpoint.h>
>
> I suspect we probably don't need all those headers anymore. But I guess
> we'll clean them up in future, as it's very tedious work to trim the list.
Ok, I did it.
>
>> +
>> +#include <kernel/ptrace/ptrace-decl.h>
>
> It's preferable to use:
>
> #include "ptrace-decl.h"
>
Ok, done.
Christophe
Powered by blists - more mailing lists