2021-03-31 01:30:49

by Jiabing Wan

[permalink] [raw]
Subject: [PATCH] arch: parisc: Remove duplicate struct task_struct declaration

struct task_struct is declared twice. One has been declared
at 154th line. Remove the duplicate.

Signed-off-by: Wan Jiabing <[email protected]>
---
arch/parisc/include/asm/processor.h | 1 -
1 file changed, 1 deletion(-)

diff --git a/arch/parisc/include/asm/processor.h b/arch/parisc/include/asm/processor.h
index 11ece0d07374..b5fbcd2c1780 100644
--- a/arch/parisc/include/asm/processor.h
+++ b/arch/parisc/include/asm/processor.h
@@ -272,7 +272,6 @@ on downward growing arches, it looks like this:
regs->gr[23] = 0; \
} while(0)

-struct task_struct;
struct mm_struct;

/* Free all resources held by a thread. */
--
2.25.1


2021-03-31 13:43:49

by Helge Deller

[permalink] [raw]
Subject: Re: [PATCH] arch: parisc: Remove duplicate struct task_struct declaration

On 3/31/21 3:28 AM, Wan Jiabing wrote:
> struct task_struct is declared twice. One has been declared
> at 154th line. Remove the duplicate.
>
> Signed-off-by: Wan Jiabing <[email protected]>

Thanks, applied to parisc tree.

Helge

> ---
> arch/parisc/include/asm/processor.h | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/arch/parisc/include/asm/processor.h b/arch/parisc/include/asm/processor.h
> index 11ece0d07374..b5fbcd2c1780 100644
> --- a/arch/parisc/include/asm/processor.h
> +++ b/arch/parisc/include/asm/processor.h
> @@ -272,7 +272,6 @@ on downward growing arches, it looks like this:
> regs->gr[23] = 0; \
> } while(0)
>
> -struct task_struct;
> struct mm_struct;
>
> /* Free all resources held by a thread. */
>