]> xenbits.xensource.com Git - xen.git/commitdiff
Remove "uninitialized_var" macro, which doesn't work with clang.
authorTim Deegan <Tim.Deegan@citrix.com>
Wed, 13 Apr 2011 08:18:10 +0000 (09:18 +0100)
committerTim Deegan <Tim.Deegan@citrix.com>
Wed, 13 Apr 2011 08:18:10 +0000 (09:18 +0100)
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@citrix.com>
xen/drivers/acpi/tables/tbutils.c
xen/include/xen/compiler.h

index 38581b785e0be8102b4307fe97d072fb9108f10a..8b2dff1526045c87716a51b6a75483fb079605ea 100644 (file)
@@ -369,7 +369,7 @@ acpi_tb_parse_root_table(acpi_physical_address rsdp_address, u8 flags)
        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;
index 23532ea331802cbb8d5ce1960faeed325e332fe5..ec26dded6e1fea25074d883535925d65c2e2c815 100644 (file)
     __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 */