ACPICA: Add EXPORT_ACPI_INTERFACES macro to external interface modules.
authorLv Zheng <lv.zheng@intel.com>
Tue, 29 Oct 2013 01:29:51 +0000 (09:29 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 31 Oct 2013 13:34:00 +0000 (14:34 +0100)
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>
21 files changed:
drivers/acpi/acpica/evxface.c
drivers/acpi/acpica/evxfevnt.c
drivers/acpi/acpica/evxfgpe.c
drivers/acpi/acpica/evxfregn.c
drivers/acpi/acpica/hwtimer.c
drivers/acpi/acpica/hwxface.c
drivers/acpi/acpica/hwxfsleep.c
drivers/acpi/acpica/nsxfeval.c
drivers/acpi/acpica/nsxfname.c
drivers/acpi/acpica/nsxfobj.c
drivers/acpi/acpica/rsxface.c
drivers/acpi/acpica/tbxface.c
drivers/acpi/acpica/tbxfload.c
drivers/acpi/acpica/utdebug.c
drivers/acpi/acpica/utdecode.c
drivers/acpi/acpica/utexcep.c
drivers/acpi/acpica/utglobal.c
drivers/acpi/acpica/utxface.c
drivers/acpi/acpica/utxferror.c
drivers/acpi/acpica/utxfinit.c
include/acpi/platform/aclinux.h

index 6f56146a6f88a55a7d0ebebaa4be0bbd84126bd0..6d88b1368088a5d6dfcd242869109952484ec719 100644 (file)
@@ -41,7 +41,8 @@
  * POSSIBILITY OF SUCH DAMAGES.
  */
 
-#include <linux/export.h>
+#define EXPORT_ACPI_INTERFACES
+
 #include <acpi/acpi.h>
 #include "accommon.h"
 #include "acnamesp.h"
index 7039606a0ba8c3a4753cd3aa4703f38b77c7358e..39d06af5e347e234ad285f77848e22b8bef101d6 100644 (file)
@@ -41,7 +41,8 @@
  * POSSIBILITY OF SUCH DAMAGES.
  */
 
-#include <linux/export.h>
+#define EXPORT_ACPI_INTERFACES
+
 #include <acpi/acpi.h>
 #include "accommon.h"
 #include "actables.h"
index 7662f1a42ff6bb19513e0f9272f90c921f64ec90..fab40d9b3bd665454ca326d3ad11f9043dff42c6 100644 (file)
@@ -41,7 +41,8 @@
  * POSSIBILITY OF SUCH DAMAGES.
  */
 
-#include <linux/export.h>
+#define EXPORT_ACPI_INTERFACES
+
 #include <acpi/acpi.h>
 #include "accommon.h"
 #include "acevents.h"
index 80cecf8385917c7ed32ca75eb9afc807dbb6b0b2..1bd3225be4682fb682a84f950770988376a8c9b8 100644 (file)
@@ -42,7 +42,8 @@
  * POSSIBILITY OF SUCH DAMAGES.
  */
 
-#include <linux/export.h>
+#define EXPORT_ACPI_INTERFACES
+
 #include <acpi/acpi.h>
 #include "accommon.h"
 #include "acnamesp.h"
index 2d7d22ebc782151189a9d76a828cf9948a267603..3c498dc1636ecd27cb439de4e0f72a44c9bb5ec6 100644 (file)
@@ -41,7 +41,8 @@
  * POSSIBILITY OF SUCH DAMAGES.
  */
 
-#include <linux/export.h>
+#define EXPORT_ACPI_INTERFACES
+
 #include <acpi/acpi.h>
 #include "accommon.h"
 
index d3682c2ae0d183b69929b08b3736a339bfe61da0..b1568481463a9da5120174812005b17751ff7f8d 100644 (file)
@@ -41,7 +41,8 @@
  * POSSIBILITY OF SUCH DAMAGES.
  */
 
-#include <linux/export.h>
+#define EXPORT_ACPI_INTERFACES
+
 #include <acpi/acpi.h>
 #include "accommon.h"
 #include "acnamesp.h"
index f2e669db8b65e90deddae8ee64a1e2b8ed3bfb39..4895fca102dde53636d36e24f95c7f47e65bba22 100644 (file)
@@ -41,7 +41,8 @@
  * POSSIBILITY OF SUCH DAMAGES.
  */
 
-#include <linux/export.h>
+#define EXPORT_ACPI_INTERFACES
+
 #include <acpi/acpi.h>
 #include "accommon.h"
 
index 481a6b4a9b2ffbeb64418abd6b458697faa74eb5..a6e3bca485679615a7c7b1eb153bef1270c8df63 100644 (file)
@@ -42,7 +42,8 @@
  * POSSIBILITY OF SUCH DAMAGES.
  */
 
-#include <linux/export.h>
+#define EXPORT_ACPI_INTERFACES
+
 #include <acpi/acpi.h>
 #include "accommon.h"
 #include "acnamesp.h"
index 83c164434580d3bd12229be0278d6e7e70e0e6b8..3a6d78a3f64ea9404dff1434d06bd4a8120545bb 100644 (file)
@@ -42,7 +42,8 @@
  * POSSIBILITY OF SUCH DAMAGES.
  */
 
-#include <linux/export.h>
+#define EXPORT_ACPI_INTERFACES
+
 #include <acpi/acpi.h>
 #include "accommon.h"
 #include "acnamesp.h"
index c0853ef294e4749832f429c962de6a2a59348676..94e961cf629422f4f17d82272886796493129632 100644 (file)
@@ -42,7 +42,8 @@
  * POSSIBILITY OF SUCH DAMAGES.
  */
 
-#include <linux/export.h>
+#define EXPORT_ACPI_INTERFACES
+
 #include <acpi/acpi.h>
 #include "accommon.h"
 #include "acnamesp.h"
index 94e3517554f9d52d121dd4f31469ddb4a9ec6567..01e476988aaee38f7529e71d091310cd1e7afae5 100644 (file)
@@ -41,7 +41,8 @@
  * POSSIBILITY OF SUCH DAMAGES.
  */
 
-#include <linux/export.h>
+#define EXPORT_ACPI_INTERFACES
+
 #include <acpi/acpi.h>
 #include "accommon.h"
 #include "acresrc.h"
index ad11162482ff6825a6983bfa947650618eb0ca84..2ad853275e39d2b2b4cb1b3319a37c0b150d3cae 100644 (file)
@@ -41,7 +41,8 @@
  * POSSIBILITY OF SUCH DAMAGES.
  */
 
-#include <linux/export.h>
+#define EXPORT_ACPI_INTERFACES
+
 #include <acpi/acpi.h>
 #include "accommon.h"
 #include "actables.h"
index 0ba9e328d5d7b0c6fa199f4c7c8bc11ad135c9a1..2620dbe96cfa7756d4f06fbacff02eea0760770c 100644 (file)
@@ -41,7 +41,8 @@
  * POSSIBILITY OF SUCH DAMAGES.
  */
 
-#include <linux/export.h>
+#define EXPORT_ACPI_INTERFACES
+
 #include <acpi/acpi.h>
 #include "accommon.h"
 #include "acnamesp.h"
index ffd0db509d347d00ba6da16f6c8c03e047d323f2..1a67b3944b3b8db426fb3edf7b878153785b7631 100644 (file)
@@ -41,7 +41,8 @@
  * POSSIBILITY OF SUCH DAMAGES.
  */
 
-#include <linux/export.h>
+#define EXPORT_ACPI_INTERFACES
+
 #include <acpi/acpi.h>
 #include "accommon.h"
 
index 11e2e02e1618702dc75b6371d83f6da257edba61..b3f31dd89a45d90f66ab25a617960f56505501d4 100644 (file)
@@ -41,7 +41,6 @@
  * POSSIBILITY OF SUCH DAMAGES.
  */
 
-#include <linux/export.h>
 #include <acpi/acpi.h>
 #include "accommon.h"
 #include "acnamesp.h"
index ff6d9e8aa8423ef04ed68ec18023d61ee570493b..3cf7b597edb9357e0e05864cacaa88d55942c609 100644 (file)
@@ -41,8 +41,9 @@
  * POSSIBILITY OF SUCH DAMAGES.
  */
 
+#define EXPORT_ACPI_INTERFACES
+
 #define ACPI_DEFINE_EXCEPTION_TABLE
-#include <linux/export.h>
 #include <acpi/acpi.h>
 #include "accommon.h"
 
index 046d5b059c07f3ce56b6f35d2c2aac3ea9d59f0d..4f59784b397dafd404134002ee614e285ea417c1 100644 (file)
@@ -41,9 +41,9 @@
  * POSSIBILITY OF SUCH DAMAGES.
  */
 
+#define EXPORT_ACPI_INTERFACES
 #define DEFINE_ACPI_GLOBALS
 
-#include <linux/export.h>
 #include <acpi/acpi.h>
 #include "accommon.h"
 
index 03a211e6e26ab0a3789b7192fc6386ecd456bb1c..2178da8af1a79b688ae626f226a626d2ae1a2bed 100644 (file)
@@ -41,7 +41,8 @@
  * POSSIBILITY OF SUCH DAMAGES.
  */
 
-#include <linux/export.h>
+#define EXPORT_ACPI_INTERFACES
+
 #include <acpi/acpi.h>
 #include "accommon.h"
 #include "acdebug.h"
index e966a2e47b765e6c097ca7973b54fa2d987ab6cd..f7edb88f60544b57f6a4097a93bd5d2f2e783a9a 100644 (file)
@@ -41,7 +41,8 @@
  * POSSIBILITY OF SUCH DAMAGES.
  */
 
-#include <linux/export.h>
+#define EXPORT_ACPI_INTERFACES
+
 #include <acpi/acpi.h>
 #include "accommon.h"
 
index 41ebaaf8bb1a4e08601bf58acd9043103f8c64a5..dda18e622a93395a9d9890cb23867890b836f4d1 100644 (file)
@@ -41,7 +41,8 @@
  * POSSIBILITY OF SUCH DAMAGES.
  */
 
-#include <linux/export.h>
+#define EXPORT_ACPI_INTERFACES
+
 #include <acpi/acpi.h>
 #include "accommon.h"
 #include "acevents.h"
index 7346a9235a4c19d5d6fd0f60f22a8d719a1491e5..0e6e73c04dcbdc499ad3ca7ecdd8082bb5e5ad71 100644 (file)
@@ -74,7 +74,7 @@
 #define acpi_spinlock                       spinlock_t *
 #define acpi_cpu_flags                      unsigned long
 
-#else /* !__KERNEL__ */
+#else                          /* !__KERNEL__ */
 
 #include <stdarg.h>
 #include <string.h>
 #define __cdecl
 #endif
 
-#endif /* __KERNEL__ */
+#endif                         /* __KERNEL__ */
 
 /* Linux uses GCC */
 
@@ -183,6 +183,10 @@ static inline void acpi_os_free(void *a)
        lock ? AE_OK : AE_NO_MEMORY;                            \
 })
 
-#endif /* __KERNEL__ */
+#ifdef EXPORT_ACPI_INTERFACES
+#include <linux/export.h>
+#endif
+
+#endif                         /* __KERNEL__ */
 
-#endif /* __ACLINUX_H__ */
+#endif                         /* __ACLINUX_H__ */