Skip to content

Commit

Permalink
ACPICA: Add ACPI_INLINE configuration parameter
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Lin Ming authored and Len Brown committed Oct 1, 2010
1 parent 95abccb commit 8f40f17
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/acpi/acpica/tbfadt.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
ACPI_MODULE_NAME("tbfadt")

/* Local prototypes */
static inline void
static ACPI_INLINE void
acpi_tb_init_generic_address(struct acpi_generic_address *generic_address,
u8 space_id, u8 byte_width, u64 address);

Expand Down Expand Up @@ -181,7 +181,7 @@ static struct acpi_fadt_pm_info fadt_pm_info_table[] = {
*
******************************************************************************/

static inline void
static ACPI_INLINE void
acpi_tb_init_generic_address(struct acpi_generic_address *generic_address,
u8 space_id, u8 byte_width, u64 address)
{
Expand Down
6 changes: 6 additions & 0 deletions include/acpi/platform/acenv.h
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,12 @@
#define ACPI_MUTEX_TYPE ACPI_BINARY_SEMAPHORE
#endif

/* "inline" keywords - configurable since inline is not standardized */

#ifndef ACPI_INLINE
#define ACPI_INLINE
#endif

/*
* Debugger threading model
* Use single threaded if the entire subsystem is contained in an application
Expand Down
2 changes: 2 additions & 0 deletions include/acpi/platform/acgcc.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@
#ifndef __ACGCC_H__
#define __ACGCC_H__

#define ACPI_INLINE __inline__

/* Function name is used for debug output. Non-ANSI, compiler-dependent */

#define ACPI_GET_FUNCTION_NAME __func__
Expand Down

0 comments on commit 8f40f17

Please sign in to comment.