15a207
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
15a207
From: Peter Jones <pjones@redhat.com>
15a207
Date: Mon, 26 Jun 2017 12:46:23 -0400
15a207
Subject: [PATCH] make GRUB_MOD_INIT() declare its function prototypes.
15a207
15a207
---
15a207
 include/grub/dl.h | 2 ++
15a207
 1 file changed, 2 insertions(+)
15a207
15a207
diff --git a/include/grub/dl.h b/include/grub/dl.h
15a207
index 2bca56ce0e8..b1ed3c33317 100644
15a207
--- a/include/grub/dl.h
15a207
+++ b/include/grub/dl.h
15a207
@@ -54,6 +54,7 @@ grub_mod_fini (void)
15a207
 
15a207
 #define GRUB_MOD_INIT(name)	\
15a207
 static void grub_mod_init (grub_dl_t mod __attribute__ ((unused))) __attribute__ ((used)); \
15a207
+extern void grub_##name##_init (void); \
15a207
 void \
15a207
 grub_##name##_init (void) { grub_mod_init (0); } \
15a207
 static void \
15a207
@@ -61,6 +62,7 @@ grub_mod_init (grub_dl_t mod __attribute__ ((unused)))
15a207
 
15a207
 #define GRUB_MOD_FINI(name)	\
15a207
 static void grub_mod_fini (void) __attribute__ ((used)); \
15a207
+extern void grub_##name##_fini (void); \
15a207
 void \
15a207
 grub_##name##_fini (void) { grub_mod_fini (); } \
15a207
 static void \