All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] arch/h8300: eliminate ptrace.h warnings
@ 2018-07-20  2:34 Randy Dunlap
  2018-07-22 13:33 ` Yoshinori Sato
  0 siblings, 1 reply; 2+ messages in thread
From: Randy Dunlap @ 2018-07-20  2:34 UTC (permalink / raw)
  To: LKML, Yoshinori Sato; +Cc: uclinux-h8-devel

From: Randy Dunlap <rdunlap@infradead.org>

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
---
 arch/h8300/include/asm/ptrace.h |    2 ++
 1 file changed, 2 insertions(+)

--- linux-next-20180717.orig/arch/h8300/include/asm/ptrace.h
+++ linux-next-20180717/arch/h8300/include/asm/ptrace.h
@@ -4,6 +4,8 @@
 
 #include <uapi/asm/ptrace.h>
 
+struct task_struct;
+
 #ifndef __ASSEMBLY__
 #ifndef PS_S
 #define PS_S  (0x10)



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

end of thread, other threads:[~2018-07-22 13:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-20  2:34 [PATCH] arch/h8300: eliminate ptrace.h warnings Randy Dunlap
2018-07-22 13:33 ` Yoshinori Sato

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.