* [PATCH -next] ptrace: Remove duplicated include in ptrace.c
@ 2022-03-15 23:51 Yang Li
2022-03-16 7:20 ` Geert Uytterhoeven
0 siblings, 1 reply; 3+ messages in thread
From: Yang Li @ 2022-03-15 23:51 UTC (permalink / raw)
To: oleg; +Cc: geert, linux-m68k, linux-kernel, Yang Li, Abaci Robot
Fix following includecheck warning:
./arch/m68k/kernel/ptrace.c: linux/ptrace.h is included more than once.
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
---
arch/m68k/kernel/ptrace.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/arch/m68k/kernel/ptrace.c b/arch/m68k/kernel/ptrace.c
index a0c99fe3118e..6342ff4d2073 100644
--- a/arch/m68k/kernel/ptrace.c
+++ b/arch/m68k/kernel/ptrace.c
@@ -19,7 +19,6 @@
#include <linux/ptrace.h>
#include <linux/user.h>
#include <linux/signal.h>
-#include <linux/ptrace.h>
#include <linux/uaccess.h>
#include <asm/page.h>
--
2.20.1.7.g153144c
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH -next] ptrace: Remove duplicated include in ptrace.c
2022-03-15 23:51 [PATCH -next] ptrace: Remove duplicated include in ptrace.c Yang Li
@ 2022-03-16 7:20 ` Geert Uytterhoeven
2022-03-16 13:35 ` Eric W. Biederman
0 siblings, 1 reply; 3+ messages in thread
From: Geert Uytterhoeven @ 2022-03-16 7:20 UTC (permalink / raw)
To: Yang Li
Cc: Oleg Nesterov, linux-m68k, Linux Kernel Mailing List, Abaci Robot,
Eric W. Biederman
Hi Yang,
CC Eric
On Wed, Mar 16, 2022 at 12:52 AM Yang Li <yang.lee@linux.alibaba.com> wrote:
> Fix following includecheck warning:
> ./arch/m68k/kernel/ptrace.c: linux/ptrace.h is included more than once.
>
> Reported-by: Abaci Robot <abaci@linux.alibaba.com>
> Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
Thanks for your patch!
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
> --- a/arch/m68k/kernel/ptrace.c
> +++ b/arch/m68k/kernel/ptrace.c
> @@ -19,7 +19,6 @@
> #include <linux/ptrace.h>
> #include <linux/user.h>
> #include <linux/signal.h>
> -#include <linux/ptrace.h>
>
> #include <linux/uaccess.h>
> #include <asm/page.h>
This is due to commit 153474ba1a4aed0a ("ptrace: Create
ptrace_report_syscall_{entry,exit} in ptrace.h"), which is not yet
in the m68k tree, but only in next-20220315, so I cannot do anything
about it before v5.18-rc1.
Eric: Can you still fix this in the original commit?
Thanks!
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH -next] ptrace: Remove duplicated include in ptrace.c
2022-03-16 7:20 ` Geert Uytterhoeven
@ 2022-03-16 13:35 ` Eric W. Biederman
0 siblings, 0 replies; 3+ messages in thread
From: Eric W. Biederman @ 2022-03-16 13:35 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: Yang Li, Oleg Nesterov, linux-m68k, Linux Kernel Mailing List,
Abaci Robot
Geert Uytterhoeven <geert@linux-m68k.org> writes:
> Hi Yang,
>
> CC Eric
>
> On Wed, Mar 16, 2022 at 12:52 AM Yang Li <yang.lee@linux.alibaba.com> wrote:
>> Fix following includecheck warning:
>> ./arch/m68k/kernel/ptrace.c: linux/ptrace.h is included more than once.
>>
>> Reported-by: Abaci Robot <abaci@linux.alibaba.com>
>> Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
>
> Thanks for your patch!
>
> Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
>
>> --- a/arch/m68k/kernel/ptrace.c
>> +++ b/arch/m68k/kernel/ptrace.c
>> @@ -19,7 +19,6 @@
>> #include <linux/ptrace.h>
>> #include <linux/user.h>
>> #include <linux/signal.h>
>> -#include <linux/ptrace.h>
>>
>> #include <linux/uaccess.h>
>> #include <asm/page.h>
>
> This is due to commit 153474ba1a4aed0a ("ptrace: Create
> ptrace_report_syscall_{entry,exit} in ptrace.h"), which is not yet
> in the m68k tree, but only in next-20220315, so I cannot do anything
> about it before v5.18-rc1.
>
> Eric: Can you still fix this in the original commit?
Not unless it is something very serious. Replacing the commit means invalidating
testing and review. Which I would rather not do.
In this case I can merge a trivial fix to remove the duplicate. Let me
find Lang Li's patch and merge that.
Eric
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-03-16 13:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-15 23:51 [PATCH -next] ptrace: Remove duplicated include in ptrace.c Yang Li
2022-03-16 7:20 ` Geert Uytterhoeven
2022-03-16 13:35 ` Eric W. Biederman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox