nalika / rpms / grub2

Forked from rpms/grub2 2 years ago
Clone

Blame SOURCES/0129-grub-core-commands-lsmmap.c-Fix-unused-variable-on-e.patch

f96e0b
From 7104dd04809457081b323d166d54945d8c2e2219 Mon Sep 17 00:00:00 2001
f96e0b
From: Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>
f96e0b
Date: Mon, 21 Jan 2013 14:57:35 +0100
f96e0b
Subject: [PATCH 129/482] 	* grub-core/commands/lsmmap.c: Fix unused
f96e0b
 variable on emu.
f96e0b
f96e0b
---
f96e0b
 ChangeLog                   | 4 ++++
f96e0b
 grub-core/commands/lsmmap.c | 2 +-
f96e0b
 2 files changed, 5 insertions(+), 1 deletion(-)
f96e0b
f96e0b
diff --git a/ChangeLog b/ChangeLog
f96e0b
index 3c7552b..18f350e 100644
f96e0b
--- a/ChangeLog
f96e0b
+++ b/ChangeLog
f96e0b
@@ -1,5 +1,9 @@
f96e0b
 2013-01-21  Vladimir Serbinenko  <phcoder@gmail.com>
f96e0b
 
f96e0b
+	* grub-core/commands/lsmmap.c: Fix unused variable on emu.
f96e0b
+
f96e0b
+2013-01-21  Vladimir Serbinenko  <phcoder@gmail.com>
f96e0b
+
f96e0b
 	Improve spkmomdem reliability by adding a separator between bytes.
f96e0b
 
f96e0b
 2013-01-21  Colin Watson  <cjwatson@ubuntu.com>
f96e0b
diff --git a/grub-core/commands/lsmmap.c b/grub-core/commands/lsmmap.c
f96e0b
index 8e7f2a5..c1a05d8 100644
f96e0b
--- a/grub-core/commands/lsmmap.c
f96e0b
+++ b/grub-core/commands/lsmmap.c
f96e0b
@@ -25,6 +25,7 @@
f96e0b
 
f96e0b
 GRUB_MOD_LICENSE ("GPLv3+");
f96e0b
 
f96e0b
+#ifndef GRUB_MACHINE_EMU
f96e0b
 static const char *names[] =
f96e0b
   {
f96e0b
     [GRUB_MEMORY_AVAILABLE] = N_("available RAM"),
f96e0b
@@ -40,7 +41,6 @@ static const char *names[] =
f96e0b
     [GRUB_MEMORY_HOLE] = N_("Address range not associated with RAM")
f96e0b
   };
f96e0b
 
f96e0b
-#ifndef GRUB_MACHINE_EMU
f96e0b
 /* Helper for grub_cmd_lsmmap.  */
f96e0b
 static int
f96e0b
 lsmmap_hook (grub_uint64_t addr, grub_uint64_t size, grub_memory_type_t type,
f96e0b
-- 
f96e0b
1.8.2.1
f96e0b