Commit cfa2d688 authored by Randy Dunlap's avatar Randy Dunlap Committed by Yoshinori Sato

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: default avatarRandy Dunlap <rdunlap@infradead.org>
Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
Cc: uclinux-h8-devel@lists.sourceforge.jp
Signed-off-by: default avatarYoshinori Sato <ysato@users.sourceforge.jp>
parent 1b803a35
...@@ -4,6 +4,8 @@ ...@@ -4,6 +4,8 @@
#include <uapi/asm/ptrace.h> #include <uapi/asm/ptrace.h>
struct task_struct;
#ifndef __ASSEMBLY__ #ifndef __ASSEMBLY__
#ifndef PS_S #ifndef PS_S
#define PS_S (0x10) #define PS_S (0x10)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment