]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
ACPICA: Fix a macro for the hardware-reduced case
authorBob Moore <robert.moore@intel.com>
Tue, 29 Oct 2013 01:29:16 +0000 (09:29 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 30 Oct 2013 11:24:20 +0000 (12:24 +0100)
This fix repairs a version of a macro that is used for the hardware
reduced case only. It adds a return statement to the macro definition
so that the translation into the Linux kernel source will not completely
delete the second line of the macro because it thinks that it is an empty
block. It actually clarifies the use of the macro anyway.

Reported-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
include/acpi/acpixf.h

index c7b1475422b3f3ed140e852f9a3407719c8f68b2..ebab0d89c70b320207fa7600285804b580e70ec6 100644 (file)
@@ -106,7 +106,7 @@ extern u8 acpi_gbl_disable_ssdt_table_load;
        static ACPI_INLINE prototype {return(AE_OK);}
 
 #define ACPI_HW_DEPENDENT_RETURN_VOID(prototype) \
-       static ACPI_INLINE prototype {}
+       static ACPI_INLINE prototype {return;}
 
 #endif                         /* !ACPI_REDUCED_HARDWARE */