WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH 3/4] kexec/arch/i386: Rename fixup_memory_ranges_sysf

To: konrad.wilk@xxxxxxxxxx, ian.campbell@xxxxxxxxxx, vgoyal@xxxxxxxxxx, horms@xxxxxxxxxxxx, olaf@xxxxxxxxx, kexec@xxxxxxxxxxxxxxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH 3/4] kexec/arch/i386: Rename fixup_memory_ranges_sysfs() to fixup_memory_ranges()
From: Daniel Kiper <dkiper@xxxxxxxxxxxx>
Date: Sun, 21 Aug 2011 15:54:00 +0200
Cc:
Delivery-date: Sun, 21 Aug 2011 06:56:18 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.3.28i
Rename fixup_memory_ranges_sysfs() to fixup_memory_ranges().
It is generic function and it could be used to fixup memory
ranges from other sources than sysfs (e.g. Xen).

Signed-off-by: Daniel Kiper <dkiper@xxxxxxxxxxxx>
---
 kexec/arch/i386/kexec-x86-common.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/kexec/arch/i386/kexec-x86-common.c 
b/kexec/arch/i386/kexec-x86-common.c
index 474e680..8f59c6c 100644
--- a/kexec/arch/i386/kexec-x86-common.c
+++ b/kexec/arch/i386/kexec-x86-common.c
@@ -149,7 +149,7 @@ static void remove_range(struct memory_range *range, int 
nr_ranges, int index)
  *
  * @return 0 on success, any other value on failure.
  */
-static int fixup_memory_ranges_sysfs(struct memory_range **range, int *ranges)
+static int fixup_memory_ranges(struct memory_range **range, int *ranges)
 {
        int i;
        int j;
@@ -162,7 +162,7 @@ again:
        for (i = 0; i < (nr_ranges-1); i++) {
                j = i+1;
                if (rp[i].start > rp[j].start) {
-                       fprintf(stderr, "sysfs memory out of order!!\n");
+                       fprintf(stderr, "memory out of order!!\n");
                        return 1;
                }
 
@@ -252,7 +252,7 @@ int get_memory_ranges(struct memory_range **range, int 
*ranges,
        if (!efi_map_added() && !xen_present() && have_sys_firmware_memmap()) {
                ret = get_memory_ranges_sysfs(range, ranges);
                if (!ret)
-                       ret = fixup_memory_ranges_sysfs(range, ranges);
+                       ret = fixup_memory_ranges(range, ranges);
        } else
                ret = get_memory_ranges_proc_iomem(range, ranges);
 
-- 
1.5.6.5

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH 3/4] kexec/arch/i386: Rename fixup_memory_ranges_sysfs() to fixup_memory_ranges(), Daniel Kiper <=