Skip to contentSkip to conversation

linux-next: build warning after merge of the xen-two tree

PATCH New Stephen Rothwell 3 participants 3 messages Nov 29, 2012

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

Hi Konrad,

After merging the xen-two tree, today's linux-next build (x86_64 allmodconfig) produced this warning:

arch/x86/xen/enlighten.c: In function 'init_hvm_pv_info':
arch/x86/xen/enlighten.c:1617:16: warning: unused variable 'ebx' [-Wunused-variable] arch/x86/xen/enlighten.c:1617:11: warning: unused variable 'eax' [-Wunused-variable]

Introduced by commit 9d02b43dee0d ("xen PVonHVM: use E820_Reserved area for shared_info").

Signature · 2 lines
Cheers,
Stephen Rothwell                    [email protected]
#1 lore raw
Quoted 11 lines · Stephen Rothwell

Hi Konrad,

After merging the xen-two tree, today's linux-next build (x86_64 allmodconfig) produced this warning:

arch/x86/xen/enlighten.c: In function 'init_hvm_pv_info':
arch/x86/xen/enlighten.c:1617:16: warning: unused variable 'ebx' [-Wunused-variable] arch/x86/xen/enlighten.c:1617:11: warning: unused variable 'eax' [-Wunused-variable]

Introduced by commit 9d02b43dee0d ("xen PVonHVM: use E820_Reserved area for shared_info").

Olaf, could you send me a patch to fix that pls?

Quoted 4 lines
Signature · 3 lines
-- 
Cheers,
Stephen Rothwell                    [email protected]
#2 lore raw

PATCH 1/1 xen PVonHVM: fix compile warning in init_hvm_pv_info

In reply to Stephen Rothwell

After merging the xen-two tree, today's linux-next build (x86_64 allmodconfig) produced this warning:

arch/x86/xen/enlighten.c: In function 'init_hvm_pv_info':
arch/x86/xen/enlighten.c:1617:16: warning: unused variable 'ebx' [-Wunused-variable] arch/x86/xen/enlighten.c:1617:11: warning: unused variable 'eax' [-Wunused-variable]

Introduced by commit 9d02b43dee0d ("xen PVonHVM: use E820_Reserved area for shared_info").

---
 arch/x86/xen/enlighten.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/xen/enlighten.c +1 -1
index a90c3bb..46156f5 100644
@@ -1557,7 +1557,7 @@ static void __init xen_hvm_init_shared_info(void)
 
 static void __init init_hvm_pv_info(void)
 {
-	uint32_t eax, ebx, ecx, edx, pages, msr, base;
+	uint32_t ecx, edx, pages, msr, base;
 	u64 pfn;
 
 	base = xen_cpuid_base();
Signature · 1 line
1.8.0