Skip to content

Commit

Permalink
arch/h8300: eliminate ptrace.h warnings
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Randy Dunlap authored and Yoshinori Sato committed Aug 22, 2018
1 parent 1b803a3 commit cfa2d68
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/h8300/include/asm/ptrace.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

#include <uapi/asm/ptrace.h>

struct task_struct;

#ifndef __ASSEMBLY__
#ifndef PS_S
#define PS_S (0x10)
Expand Down

0 comments on commit cfa2d68

Please sign in to comment.