aboutsummaryrefslogtreecommitdiffstats
path: root/include/acpi
diff options
context:
space:
mode:
authorLv Zheng <lv.zheng@intel.com>2013-10-28 21:29:51 -0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-10-31 09:34:00 -0400
commit839e928f5bbb695c31ddc23cf3fae3cf1c9e9f20 (patch)
tree78e5b5c52a00cdca1c0136cc499e73a3e727c191 /include/acpi
parente07fcfd89f9bbbc5f655b85b70e6f9b0bb626bac (diff)
ACPICA: Add EXPORT_ACPI_INTERFACES macro to external interface modules.
For Linux, there are no functional changes/binary generation differences introduced by this patch. This change adds a new macro to all files that contain external ACPICA interfaces. It can be detected and used by the host (via the host-specific header) for any special processing required for such modules. Lv Zheng. Signed-off-by: Lv Zheng <lv.zheng@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/acpi')
-rw-r--r--include/acpi/platform/aclinux.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/include/acpi/platform/aclinux.h b/include/acpi/platform/aclinux.h
index 7346a9235a4c..0e6e73c04dcb 100644
--- a/include/acpi/platform/aclinux.h
+++ b/include/acpi/platform/aclinux.h
@@ -74,7 +74,7 @@
74#define acpi_spinlock spinlock_t * 74#define acpi_spinlock spinlock_t *
75#define acpi_cpu_flags unsigned long 75#define acpi_cpu_flags unsigned long
76 76
77#else /* !__KERNEL__ */ 77#else /* !__KERNEL__ */
78 78
79#include <stdarg.h> 79#include <stdarg.h>
80#include <string.h> 80#include <string.h>
@@ -102,7 +102,7 @@
102#define __cdecl 102#define __cdecl
103#endif 103#endif
104 104
105#endif /* __KERNEL__ */ 105#endif /* __KERNEL__ */
106 106
107/* Linux uses GCC */ 107/* Linux uses GCC */
108 108
@@ -183,6 +183,10 @@ static inline void acpi_os_free(void *a)
183 lock ? AE_OK : AE_NO_MEMORY; \ 183 lock ? AE_OK : AE_NO_MEMORY; \
184}) 184})
185 185
186#endif /* __KERNEL__ */ 186#ifdef EXPORT_ACPI_INTERFACES
187#include <linux/export.h>
188#endif
189
190#endif /* __KERNEL__ */
187 191
188#endif /* __ACLINUX_H__ */ 192#endif /* __ACLINUX_H__ */