diff options
author | Randy Dunlap <rdunlap@infradead.org> | 2018-07-19 22:34:53 -0400 |
---|---|---|
committer | Yoshinori Sato <ysato@users.sourceforge.jp> | 2018-08-22 06:14:21 -0400 |
commit | cfa2d688e2cc286e97cf134e7f1c1ebb697c1c74 (patch) | |
tree | 6fdd2f1c8caa202615fdbb41d3649be5e05678bb | |
parent | 1b803a357d520164404c6262710049b09b93ed5a (diff) |
arch/h8300: eliminate ptrace.h warnings
Add a "struct task_struct;" stub to arch/h8300's ptrace.h header to
eliminate gcc warnings (gcc version is 8.1.0).
../arch/h8300/include/asm/ptrace.h:32:34: warning: 'struct task_struct' declared inside parameter list will not be visible outside of this definition or declaration
extern long h8300_get_reg(struct task_struct *task, int regno);
../arch/h8300/include/asm/ptrace.h:33:33: warning: 'struct task_struct' declared inside parameter list will not be visible outside of this definition or declaration
extern int h8300_put_reg(struct task_struct *task, int regno,
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
Cc: uclinux-h8-devel@lists.sourceforge.jp
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
-rw-r--r-- | arch/h8300/include/asm/ptrace.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/h8300/include/asm/ptrace.h b/arch/h8300/include/asm/ptrace.h index 313cafa85380..66d383848ff1 100644 --- a/arch/h8300/include/asm/ptrace.h +++ b/arch/h8300/include/asm/ptrace.h | |||
@@ -4,6 +4,8 @@ | |||
4 | 4 | ||
5 | #include <uapi/asm/ptrace.h> | 5 | #include <uapi/asm/ptrace.h> |
6 | 6 | ||
7 | struct task_struct; | ||
8 | |||
7 | #ifndef __ASSEMBLY__ | 9 | #ifndef __ASSEMBLY__ |
8 | #ifndef PS_S | 10 | #ifndef PS_S |
9 | #define PS_S (0x10) | 11 | #define PS_S (0x10) |