[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20110821135400.GD17323@router-fw-old.local.net-space.pl>
Date: Sun, 21 Aug 2011 15:54:00 +0200
From: Daniel Kiper <dkiper@...-space.pl>
To: konrad.wilk@...cle.com, ian.campbell@...rix.com, vgoyal@...hat.com,
horms@...ge.net.au, olaf@...fle.de, kexec@...ts.infradead.org,
xen-devel@...ts.xensource.com, linux-kernel@...r.kernel.org
Subject: [PATCH 3/4] kexec/arch/i386: Rename fixup_memory_ranges_sysfs() to fixup_memory_ranges()
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@...-space.pl>
---
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists