[PATCH 1/5] xen: clean up label

From: Steven Rostedt
Date: Thu Oct 02 2008 - 11:11:29 EST


In enlighten.c there's a macro that is defined to jump to a label.
This macro is only used in an ifdef CONFIG_X86_32 section, and the
label is outside that define conditional, which causes warnings.

This patch pushes the label inside the define condition.

CC: Jeremy Fitzhardinge <jeremy@xxxxxxxxxxxxx>
CC: Chris Wright <chrisw@xxxxxxxxxxxx>
Signed-off-by: Steven Rostedt <srostedt@xxxxxxxxxx>
---
arch/x86/xen/enlighten.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Index: linux-compile.git/arch/x86/xen/enlighten.c
===================================================================
--- linux-compile.git.orig/arch/x86/xen/enlighten.c 2008-09-12 09:18:55.000000000 -0400
+++ linux-compile.git/arch/x86/xen/enlighten.c 2008-10-02 09:38:16.000000000 -0400
@@ -1082,10 +1082,10 @@ static unsigned xen_patch(u8 type, u16 c
SITE(pv_irq_ops, irq_disable);
SITE(pv_irq_ops, save_fl);
SITE(pv_irq_ops, restore_fl);
-#endif /* CONFIG_X86_32 */
-#undef SITE

patch_site:
+#endif /* CONFIG_X86_32 */
+#undef SITE
if (start == NULL || (end-start) > len)
goto default_patch;


--
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/