Commit 839e928f authored by Lv Zheng's avatar Lv Zheng Committed by Rafael J. Wysocki

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: default avatarLv Zheng <lv.zheng@intel.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent e07fcfd8
...@@ -41,7 +41,8 @@ ...@@ -41,7 +41,8 @@
* POSSIBILITY OF SUCH DAMAGES. * POSSIBILITY OF SUCH DAMAGES.
*/ */
#include <linux/export.h> #define EXPORT_ACPI_INTERFACES
#include <acpi/acpi.h> #include <acpi/acpi.h>
#include "accommon.h" #include "accommon.h"
#include "acnamesp.h" #include "acnamesp.h"
......
...@@ -41,7 +41,8 @@ ...@@ -41,7 +41,8 @@
* POSSIBILITY OF SUCH DAMAGES. * POSSIBILITY OF SUCH DAMAGES.
*/ */
#include <linux/export.h> #define EXPORT_ACPI_INTERFACES
#include <acpi/acpi.h> #include <acpi/acpi.h>
#include "accommon.h" #include "accommon.h"
#include "actables.h" #include "actables.h"
......
...@@ -41,7 +41,8 @@ ...@@ -41,7 +41,8 @@
* POSSIBILITY OF SUCH DAMAGES. * POSSIBILITY OF SUCH DAMAGES.
*/ */
#include <linux/export.h> #define EXPORT_ACPI_INTERFACES
#include <acpi/acpi.h> #include <acpi/acpi.h>
#include "accommon.h" #include "accommon.h"
#include "acevents.h" #include "acevents.h"
......
...@@ -42,7 +42,8 @@ ...@@ -42,7 +42,8 @@
* POSSIBILITY OF SUCH DAMAGES. * POSSIBILITY OF SUCH DAMAGES.
*/ */
#include <linux/export.h> #define EXPORT_ACPI_INTERFACES
#include <acpi/acpi.h> #include <acpi/acpi.h>
#include "accommon.h" #include "accommon.h"
#include "acnamesp.h" #include "acnamesp.h"
......
...@@ -41,7 +41,8 @@ ...@@ -41,7 +41,8 @@
* POSSIBILITY OF SUCH DAMAGES. * POSSIBILITY OF SUCH DAMAGES.
*/ */
#include <linux/export.h> #define EXPORT_ACPI_INTERFACES
#include <acpi/acpi.h> #include <acpi/acpi.h>
#include "accommon.h" #include "accommon.h"
......
...@@ -41,7 +41,8 @@ ...@@ -41,7 +41,8 @@
* POSSIBILITY OF SUCH DAMAGES. * POSSIBILITY OF SUCH DAMAGES.
*/ */
#include <linux/export.h> #define EXPORT_ACPI_INTERFACES
#include <acpi/acpi.h> #include <acpi/acpi.h>
#include "accommon.h" #include "accommon.h"
#include "acnamesp.h" #include "acnamesp.h"
......
...@@ -41,7 +41,8 @@ ...@@ -41,7 +41,8 @@
* POSSIBILITY OF SUCH DAMAGES. * POSSIBILITY OF SUCH DAMAGES.
*/ */
#include <linux/export.h> #define EXPORT_ACPI_INTERFACES
#include <acpi/acpi.h> #include <acpi/acpi.h>
#include "accommon.h" #include "accommon.h"
......
...@@ -42,7 +42,8 @@ ...@@ -42,7 +42,8 @@
* POSSIBILITY OF SUCH DAMAGES. * POSSIBILITY OF SUCH DAMAGES.
*/ */
#include <linux/export.h> #define EXPORT_ACPI_INTERFACES
#include <acpi/acpi.h> #include <acpi/acpi.h>
#include "accommon.h" #include "accommon.h"
#include "acnamesp.h" #include "acnamesp.h"
......
...@@ -42,7 +42,8 @@ ...@@ -42,7 +42,8 @@
* POSSIBILITY OF SUCH DAMAGES. * POSSIBILITY OF SUCH DAMAGES.
*/ */
#include <linux/export.h> #define EXPORT_ACPI_INTERFACES
#include <acpi/acpi.h> #include <acpi/acpi.h>
#include "accommon.h" #include "accommon.h"
#include "acnamesp.h" #include "acnamesp.h"
......
...@@ -42,7 +42,8 @@ ...@@ -42,7 +42,8 @@
* POSSIBILITY OF SUCH DAMAGES. * POSSIBILITY OF SUCH DAMAGES.
*/ */
#include <linux/export.h> #define EXPORT_ACPI_INTERFACES
#include <acpi/acpi.h> #include <acpi/acpi.h>
#include "accommon.h" #include "accommon.h"
#include "acnamesp.h" #include "acnamesp.h"
......
...@@ -41,7 +41,8 @@ ...@@ -41,7 +41,8 @@
* POSSIBILITY OF SUCH DAMAGES. * POSSIBILITY OF SUCH DAMAGES.
*/ */
#include <linux/export.h> #define EXPORT_ACPI_INTERFACES
#include <acpi/acpi.h> #include <acpi/acpi.h>
#include "accommon.h" #include "accommon.h"
#include "acresrc.h" #include "acresrc.h"
......
...@@ -41,7 +41,8 @@ ...@@ -41,7 +41,8 @@
* POSSIBILITY OF SUCH DAMAGES. * POSSIBILITY OF SUCH DAMAGES.
*/ */
#include <linux/export.h> #define EXPORT_ACPI_INTERFACES
#include <acpi/acpi.h> #include <acpi/acpi.h>
#include "accommon.h" #include "accommon.h"
#include "actables.h" #include "actables.h"
......
...@@ -41,7 +41,8 @@ ...@@ -41,7 +41,8 @@
* POSSIBILITY OF SUCH DAMAGES. * POSSIBILITY OF SUCH DAMAGES.
*/ */
#include <linux/export.h> #define EXPORT_ACPI_INTERFACES
#include <acpi/acpi.h> #include <acpi/acpi.h>
#include "accommon.h" #include "accommon.h"
#include "acnamesp.h" #include "acnamesp.h"
......
...@@ -41,7 +41,8 @@ ...@@ -41,7 +41,8 @@
* POSSIBILITY OF SUCH DAMAGES. * POSSIBILITY OF SUCH DAMAGES.
*/ */
#include <linux/export.h> #define EXPORT_ACPI_INTERFACES
#include <acpi/acpi.h> #include <acpi/acpi.h>
#include "accommon.h" #include "accommon.h"
......
...@@ -41,7 +41,6 @@ ...@@ -41,7 +41,6 @@
* POSSIBILITY OF SUCH DAMAGES. * POSSIBILITY OF SUCH DAMAGES.
*/ */
#include <linux/export.h>
#include <acpi/acpi.h> #include <acpi/acpi.h>
#include "accommon.h" #include "accommon.h"
#include "acnamesp.h" #include "acnamesp.h"
......
...@@ -41,8 +41,9 @@ ...@@ -41,8 +41,9 @@
* POSSIBILITY OF SUCH DAMAGES. * POSSIBILITY OF SUCH DAMAGES.
*/ */
#define EXPORT_ACPI_INTERFACES
#define ACPI_DEFINE_EXCEPTION_TABLE #define ACPI_DEFINE_EXCEPTION_TABLE
#include <linux/export.h>
#include <acpi/acpi.h> #include <acpi/acpi.h>
#include "accommon.h" #include "accommon.h"
......
...@@ -41,9 +41,9 @@ ...@@ -41,9 +41,9 @@
* POSSIBILITY OF SUCH DAMAGES. * POSSIBILITY OF SUCH DAMAGES.
*/ */
#define EXPORT_ACPI_INTERFACES
#define DEFINE_ACPI_GLOBALS #define DEFINE_ACPI_GLOBALS
#include <linux/export.h>
#include <acpi/acpi.h> #include <acpi/acpi.h>
#include "accommon.h" #include "accommon.h"
......
...@@ -41,7 +41,8 @@ ...@@ -41,7 +41,8 @@
* POSSIBILITY OF SUCH DAMAGES. * POSSIBILITY OF SUCH DAMAGES.
*/ */
#include <linux/export.h> #define EXPORT_ACPI_INTERFACES
#include <acpi/acpi.h> #include <acpi/acpi.h>
#include "accommon.h" #include "accommon.h"
#include "acdebug.h" #include "acdebug.h"
......
...@@ -41,7 +41,8 @@ ...@@ -41,7 +41,8 @@
* POSSIBILITY OF SUCH DAMAGES. * POSSIBILITY OF SUCH DAMAGES.
*/ */
#include <linux/export.h> #define EXPORT_ACPI_INTERFACES
#include <acpi/acpi.h> #include <acpi/acpi.h>
#include "accommon.h" #include "accommon.h"
......
...@@ -41,7 +41,8 @@ ...@@ -41,7 +41,8 @@
* POSSIBILITY OF SUCH DAMAGES. * POSSIBILITY OF SUCH DAMAGES.
*/ */
#include <linux/export.h> #define EXPORT_ACPI_INTERFACES
#include <acpi/acpi.h> #include <acpi/acpi.h>
#include "accommon.h" #include "accommon.h"
#include "acevents.h" #include "acevents.h"
......
...@@ -183,6 +183,10 @@ static inline void acpi_os_free(void *a) ...@@ -183,6 +183,10 @@ static inline void acpi_os_free(void *a)
lock ? AE_OK : AE_NO_MEMORY; \ lock ? AE_OK : AE_NO_MEMORY; \
}) })
#ifdef EXPORT_ACPI_INTERFACES
#include <linux/export.h>
#endif
#endif /* __KERNEL__ */ #endif /* __KERNEL__ */
#endif /* __ACLINUX_H__ */ #endif /* __ACLINUX_H__ */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment