From: Jan Kiszka <[email protected]>

It might be overwritten by an inmate, therefore it is a global symbol.
Noticed by sparse.

Signed-off-by: Jan Kiszka <[email protected]>
---
 inmates/lib/inmate_common.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/inmates/lib/inmate_common.h b/inmates/lib/inmate_common.h
index 54f02790..6c779b53 100644
--- a/inmates/lib/inmate_common.h
+++ b/inmates/lib/inmate_common.h
@@ -78,6 +78,8 @@ bool cmdline_parse_bool(const char *param);
 #define CMDLINE_BUFFER(size) \
        const char cmdline[size] __attribute__((section(".cmdline")))
 
+extern const char cmdline[];
+
 void inmate_main(void);
 
 #endif /* !__ASSEMBLY__ */
-- 
2.12.3

-- 
You received this message because you are subscribed to the Google Groups 
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to