linux-riscv.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] riscv: fix warning in arch/riscv/include/asm/module.h
@ 2018-11-08 19:07 David Abdurachmanov
  2018-11-08 19:07 ` David Abdurachmanov
  2018-11-08 19:32 ` Palmer Dabbelt
  0 siblings, 2 replies; 8+ messages in thread
From: David Abdurachmanov @ 2018-11-08 19:07 UTC (permalink / raw)
  To: linux-riscv

Fixes warning: 'struct module' declared inside parameter list will not be
visible outside of this definition or declaration

Signed-off-by: David Abdurachmanov <david.abdurachmanov@gmail.com>
---
 arch/riscv/include/asm/module.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/riscv/include/asm/module.h b/arch/riscv/include/asm/module.h
index 349df33808c4..cd2af4b013e3 100644
--- a/arch/riscv/include/asm/module.h
+++ b/arch/riscv/include/asm/module.h
@@ -8,6 +8,7 @@
 
 #define MODULE_ARCH_VERMAGIC    "riscv"
 
+struct module;
 u64 module_emit_got_entry(struct module *mod, u64 val);
 u64 module_emit_plt_entry(struct module *mod, u64 val);
 
-- 
2.19.1

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

end of thread, other threads:[~2018-11-19 17:37 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-08 19:07 [PATCH] riscv: fix warning in arch/riscv/include/asm/module.h David Abdurachmanov
2018-11-08 19:07 ` David Abdurachmanov
2018-11-08 19:32 ` Palmer Dabbelt
2018-11-08 19:32   ` Palmer Dabbelt
2018-11-17  3:09   ` Olof Johansson
2018-11-17  3:09     ` Olof Johansson
2018-11-19 17:36     ` Palmer Dabbelt
2018-11-19 17:36       ` Palmer Dabbelt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).