From b3c8bef7a7f9f0e5164f9efae638685e2964a243 Mon Sep 17 00:00:00 2001 From: Gianni Tedesco Date: Tue, 11 Jan 2011 16:31:47 +0000 Subject: stubdom/minios: don't retrieve the address of void variable Objects must not be declared to have type void. Declare shared_info to have the appropriate type instead. Author: Ganni Tedesco Signed-off-by: Ian Jackson Committed-by: Ian Jackson --- extras/mini-os/arch/x86/mm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'extras') diff --git a/extras/mini-os/arch/x86/mm.c b/extras/mini-os/arch/x86/mm.c index cb7f037477..80aceacd2a 100644 --- a/extras/mini-os/arch/x86/mm.c +++ b/extras/mini-os/arch/x86/mm.c @@ -281,7 +281,7 @@ static void build_pagetable(unsigned long *start_pfn, unsigned long *max_pfn) /* * Mark portion of the address space read only. */ -extern void shared_info; +extern struct shared_info shared_info; static void set_readonly(void *text, void *etext) { unsigned long start_address = -- cgit v1.2.3