Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ACPICA: Add ACPI_INLINE configuration parameter

The C inline keyword is not standardized, ACPI_INLINE allows this
to be configured on a per-compiler basis.

Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>

authored by

Lin Ming and committed by
Len Brown
8f40f171 95abccb5

+10 -2
+2 -2
drivers/acpi/acpica/tbfadt.c
··· 49 49 ACPI_MODULE_NAME("tbfadt") 50 50 51 51 /* Local prototypes */ 52 - static inline void 52 + static ACPI_INLINE void 53 53 acpi_tb_init_generic_address(struct acpi_generic_address *generic_address, 54 54 u8 space_id, u8 byte_width, u64 address); 55 55 ··· 181 181 * 182 182 ******************************************************************************/ 183 183 184 - static inline void 184 + static ACPI_INLINE void 185 185 acpi_tb_init_generic_address(struct acpi_generic_address *generic_address, 186 186 u8 space_id, u8 byte_width, u64 address) 187 187 {
+6
include/acpi/platform/acenv.h
··· 193 193 #define ACPI_MUTEX_TYPE ACPI_BINARY_SEMAPHORE 194 194 #endif 195 195 196 + /* "inline" keywords - configurable since inline is not standardized */ 197 + 198 + #ifndef ACPI_INLINE 199 + #define ACPI_INLINE 200 + #endif 201 + 196 202 /* 197 203 * Debugger threading model 198 204 * Use single threaded if the entire subsystem is contained in an application
+2
include/acpi/platform/acgcc.h
··· 44 44 #ifndef __ACGCC_H__ 45 45 #define __ACGCC_H__ 46 46 47 + #define ACPI_INLINE __inline__ 48 + 47 49 /* Function name is used for debug output. Non-ANSI, compiler-dependent */ 48 50 49 51 #define ACPI_GET_FUNCTION_NAME __func__