[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [xen:devel/pvh.5 8/8] arch/x86/xen/setup.c:261:6: warning: unused variable 'xlated_phys'



Hi Konrad,

FYI, there are new compile warnings show up in

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/konrad/xen.git devel/pvh.5
head:   dfc557a5c9a519b45b79ad059821db15bad229fa
commit: dfc557a5c9a519b45b79ad059821db15bad229fa [8/8] xen/e820: Coalesce the 
PVH release/populate logic in the generic case.
config: x86_64-allyesconfig # make ARCH=x86_64 allyesconfig

All warnings:

arch/x86/xen/setup.c: In function 'xen_set_identity_and_release':
arch/x86/xen/setup.c:261:6: warning: unused variable 'xlated_phys' 
[-Wunused-variable]

vim +261 arch/x86/xen/setup.c

dfc557a5 Konrad Rzeszutek Wilk 2012-10-22  245          }
83d51ab4 David Vrabel          2012-05-03  246          if (start_pfn < 
nr_pages)
83d51ab4 David Vrabel          2012-05-03  247                  *released += 
xen_release_chunk(
83d51ab4 David Vrabel          2012-05-03  248                          
start_pfn, min(end_pfn, nr_pages));
83d51ab4 David Vrabel          2012-05-03  249  
83d51ab4 David Vrabel          2012-05-03  250          *identity += 
set_phys_range_identity(start_pfn, end_pfn);
83d51ab4 David Vrabel          2012-05-03  251  }
83d51ab4 David Vrabel          2012-05-03  252  
f3f436e3 David Vrabel          2011-09-28  253  static unsigned long __init 
xen_set_identity_and_release(
f3f436e3 David Vrabel          2011-09-28  254          const struct e820entry 
*list, size_t map_size, unsigned long nr_pages)
093d7b46 Miroslav Rezanina     2009-09-16  255  {
f3f436e3 David Vrabel          2011-09-28  256          phys_addr_t start = 0;
093d7b46 Miroslav Rezanina     2009-09-16  257          unsigned long released 
= 0;
68df0da7 Konrad Rzeszutek Wilk 2011-02-01  258          unsigned long identity 
= 0;
f3f436e3 David Vrabel          2011-09-28  259          const struct e820entry 
*entry;
68df0da7 Konrad Rzeszutek Wilk 2011-02-01  260          int i;
1a870012 Mukesh Rathor         2012-10-17 @261          int xlated_phys = 
xen_feature(XENFEAT_auto_translated_physmap);
68df0da7 Konrad Rzeszutek Wilk 2011-02-01  262  
f3f436e3 David Vrabel          2011-09-28  263          /*
f3f436e3 David Vrabel          2011-09-28  264           * Combine non-RAM 
regions and gaps until a RAM region (or the
f3f436e3 David Vrabel          2011-09-28  265           * end of the map) is 
reached, then set the 1:1 map and
f3f436e3 David Vrabel          2011-09-28  266           * release the pages 
(if available) in those non-RAM regions.
f3f436e3 David Vrabel          2011-09-28  267           *
f3f436e3 David Vrabel          2011-09-28  268           * The combined non-RAM 
regions are rounded to a whole number
f3f436e3 David Vrabel          2011-09-28  269           * of pages so any 
partial pages are accessible via the 1:1

The code at line 261 was first introduced by commit:
1a87001 xen/pvh: bootup and setup (E820) related changes.

---
0-DAY kernel build testing backend         Open Source Technology Center
Fengguang Wu, Yuanhan Liu                              Intel Corporation

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.