aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/xen/p2m.c
diff options
context:
space:
mode:
authorIan Campbell <ian.campbell@citrix.com>2011-02-11 10:23:58 -0500
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2011-02-11 14:46:25 -0500
commit6b08cfebd3bd346d8a2fd68a2265fc7736849802 (patch)
treeef88667416dc536887f514fdc3f79a41e9822173 /arch/x86/xen/p2m.c
parentb052181a985592f81767f631f9f42accb4b436cd (diff)
xen p2m: annotate variable which appears unused
CC arch/x86/xen/p2m.o arch/x86/xen/p2m.c: In function 'm2p_remove_override': arch/x86/xen/p2m.c:460: warning: 'address' may be used uninitialized in this function arch/x86/xen/p2m.c: In function 'm2p_add_override': arch/x86/xen/p2m.c:426: warning: 'address' may be used uninitialized in this function In actual fact address is inialised in one "if (!PageHighMem(page))" statement and used in a second and so is always initialised before use. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'arch/x86/xen/p2m.c')
-rw-r--r--arch/x86/xen/p2m.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/xen/p2m.c b/arch/x86/xen/p2m.c
index fd12d7ce7ff9..89342e5fd082 100644
--- a/arch/x86/xen/p2m.c
+++ b/arch/x86/xen/p2m.c
@@ -421,7 +421,7 @@ int m2p_add_override(unsigned long mfn, struct page *page)
421{ 421{
422 unsigned long flags; 422 unsigned long flags;
423 unsigned long pfn; 423 unsigned long pfn;
424 unsigned long address; 424 unsigned long uninitialized_var(address);
425 unsigned level; 425 unsigned level;
426 pte_t *ptep = NULL; 426 pte_t *ptep = NULL;
427 427
@@ -455,7 +455,7 @@ int m2p_remove_override(struct page *page)
455 unsigned long flags; 455 unsigned long flags;
456 unsigned long mfn; 456 unsigned long mfn;
457 unsigned long pfn; 457 unsigned long pfn;
458 unsigned long address; 458 unsigned long uninitialized_var(address);
459 unsigned level; 459 unsigned level;
460 pte_t *ptep = NULL; 460 pte_t *ptep = NULL;
461 461