|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH] Remove "uninitialized_var" macro, which doesn't work
# HG changeset patch
# User Tim Deegan <Tim.Deegan@xxxxxxxxxx>
# Date 1302177332 -3600
# Node ID 44e603c1c0cb9f278138da9dad446fd3493869b7
# Parent d07dbbb17473e8b668415b1db96112eaae9f2e09
Remove "uninitialized_var" macro, which doesn't work with clang.
Since its only user is in ACPI parsing code, the extra overhead of
initializing to 0 is not worth fighting over.
Signed-off-by: Tim Deegan <Tim.Deegan@xxxxxxxxxx>
diff -r d07dbbb17473 -r 44e603c1c0cb xen/drivers/acpi/tables/tbutils.c
--- a/xen/drivers/acpi/tables/tbutils.c Thu Apr 07 12:19:13 2011 +0100
+++ b/xen/drivers/acpi/tables/tbutils.c Thu Apr 07 12:55:32 2011 +0100
@@ -369,7 +369,7 @@ acpi_tb_parse_root_table(acpi_physical_a
u32 table_count;
struct acpi_table_header *table;
acpi_physical_address address;
- acpi_physical_address uninitialized_var(rsdt_address);
+ acpi_physical_address rsdt_address = 0;
u32 length;
u8 *table_entry;
acpi_status status;
diff -r d07dbbb17473 -r 44e603c1c0cb xen/include/xen/compiler.h
--- a/xen/include/xen/compiler.h Thu Apr 07 12:19:13 2011 +0100
+++ b/xen/include/xen/compiler.h Thu Apr 07 12:55:32 2011 +0100
@@ -66,10 +66,4 @@
__asm__ ("" : "=r"(__ptr) : "0"(ptr)); \
(typeof(ptr)) (__ptr + (off)); })
-/*
- * A trick to suppress uninitialized variable warning without generating any
- * code
- */
-#define uninitialized_var(x) x = x
-
#endif /* __LINUX_COMPILER_H */
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-devel] [PATCH] Remove "uninitialized_var" macro, which doesn't work with clang,
Tim Deegan <=
|
|
|
|
|