linux-parisc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] arch/parisc/kernel: remove duplicate include in ptrace
@ 2021-03-04  2:24 menglong8.dong
  2021-03-06 19:29 ` Helge Deller
  0 siblings, 1 reply; 2+ messages in thread
From: menglong8.dong @ 2021-03-04  2:24 UTC (permalink / raw)
  To: oleg; +Cc: James.Bottomley, deller, linux-parisc, linux-kernel, Zhang Yunkai

From: Zhang Yunkai <zhang.yunkai@zte.com.cn>

'linux/compat.h' included in 'arch/parisc/kernel/ptrace.c' is duplicated.
It is also included in the 24th line.

Signed-off-by: Zhang Yunkai <zhang.yunkai@zte.com.cn>
---
 arch/parisc/kernel/ptrace.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/arch/parisc/kernel/ptrace.c b/arch/parisc/kernel/ptrace.c
index 2127974982df..918faa95740c 100644
--- a/arch/parisc/kernel/ptrace.c
+++ b/arch/parisc/kernel/ptrace.c
@@ -567,7 +567,6 @@ static const struct user_regset_view user_parisc_native_view = {
 };
 
 #ifdef CONFIG_64BIT
-#include <linux/compat.h>
 
 static int gpr32_get(struct task_struct *target,
 		     const struct user_regset *regset,
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] arch/parisc/kernel: remove duplicate include in ptrace
  2021-03-04  2:24 [PATCH] arch/parisc/kernel: remove duplicate include in ptrace menglong8.dong
@ 2021-03-06 19:29 ` Helge Deller
  0 siblings, 0 replies; 2+ messages in thread
From: Helge Deller @ 2021-03-06 19:29 UTC (permalink / raw)
  To: menglong8.dong, oleg
  Cc: James.Bottomley, linux-parisc, linux-kernel, Zhang Yunkai

On 3/4/21 3:24 AM, menglong8.dong@gmail.com wrote:
> From: Zhang Yunkai <zhang.yunkai@zte.com.cn>
>
> 'linux/compat.h' included in 'arch/parisc/kernel/ptrace.c' is duplicated.
> It is also included in the 24th line.
>
> Signed-off-by: Zhang Yunkai <zhang.yunkai@zte.com.cn>

Thanks,
applied to the parisc-next tree.

Helge

> ---
>   arch/parisc/kernel/ptrace.c | 1 -
>   1 file changed, 1 deletion(-)
>
> diff --git a/arch/parisc/kernel/ptrace.c b/arch/parisc/kernel/ptrace.c
> index 2127974982df..918faa95740c 100644
> --- a/arch/parisc/kernel/ptrace.c
> +++ b/arch/parisc/kernel/ptrace.c
> @@ -567,7 +567,6 @@ static const struct user_regset_view user_parisc_native_view = {
>   };
>
>   #ifdef CONFIG_64BIT
> -#include <linux/compat.h>
>
>   static int gpr32_get(struct task_struct *target,
>   		     const struct user_regset *regset,
>


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-03-06 19:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-04  2:24 [PATCH] arch/parisc/kernel: remove duplicate include in ptrace menglong8.dong
2021-03-06 19:29 ` Helge Deller

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).