aboutsummaryrefslogtreecommitdiffstats
path: root/include/acpi
diff options
context:
space:
mode:
authorLv Zheng <lv.zheng@intel.com>2016-08-04 04:45:40 -0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2016-08-12 21:16:39 -0400
commit9fa1cebdbfff3db8953cebca8ee327d75edefc40 (patch)
treeefcdd5462d4b1489ba84ec3710c2c3e118622882 /include/acpi
parentd2d48eae4639f7d74e9d91e7698f566bdbd8cdd6 (diff)
ACPICA: OSL: Cleanup the inclusion order of the compiler-specific headers
ACPICA commit a760a98ec84b1ec782e0bff5f6612af6fb89c10c Originally compiler specific headers are included by the host-specific headers. This makes build configuration management very inconvenient. And many inclusion order issues can be hidden accross different host OSes. It will then likely that some host builds will be broken just because of fixing some inclusion order issues for other host builds. This patch splits the compiler-specific header inclusions out of the host-specific headers so that compiler-specific inclusion order issues will not get entangled in the host-specific inclusion orders. Note that intel compiler defines __GNUC__, so this patch contains special handling because acintel.h and acgcc.h should be mutual exclusive. Link: https://github.com/acpica/acpica/commit/a760a98e Link: https://bugs.acpica.org/show_bug.cgi?id=1303 Signed-off-by: Lv Zheng <lv.zheng@intel.com> Signed-off-by: Bob Moore <robert.moore@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/acpi')
-rw-r--r--include/acpi/platform/acenv.h13
-rw-r--r--include/acpi/platform/acenvex.h8
-rw-r--r--include/acpi/platform/aclinux.h4
3 files changed, 17 insertions, 8 deletions
diff --git a/include/acpi/platform/acenv.h b/include/acpi/platform/acenv.h
index f9af0e03e592..34cce729109c 100644
--- a/include/acpi/platform/acenv.h
+++ b/include/acpi/platform/acenv.h
@@ -166,10 +166,21 @@
166/****************************************************************************** 166/******************************************************************************
167 * 167 *
168 * Host configuration files. The compiler configuration files are included 168 * Host configuration files. The compiler configuration files are included
169 * by the host files. 169 * first.
170 * 170 *
171 *****************************************************************************/ 171 *****************************************************************************/
172 172
173#if defined(__GNUC__) && !defined(__INTEL_COMPILER)
174#include <acpi/platform/acgcc.h>
175
176#elif defined(_MSC_VER)
177#include "acmsvc.h"
178
179#elif defined(__INTEL_COMPILER)
180#include "acintel.h"
181
182#endif
183
173#if defined(_LINUX) || defined(__linux__) 184#if defined(_LINUX) || defined(__linux__)
174#include <acpi/platform/aclinux.h> 185#include <acpi/platform/aclinux.h>
175 186
diff --git a/include/acpi/platform/acenvex.h b/include/acpi/platform/acenvex.h
index 58ca39ce16d4..060fb08e643b 100644
--- a/include/acpi/platform/acenvex.h
+++ b/include/acpi/platform/acenvex.h
@@ -56,9 +56,6 @@
56#if defined(_LINUX) || defined(__linux__) 56#if defined(_LINUX) || defined(__linux__)
57#include <acpi/platform/aclinuxex.h> 57#include <acpi/platform/aclinuxex.h>
58 58
59#elif defined(WIN32)
60#include "acwinex.h"
61
62#elif defined(__DragonFly__) 59#elif defined(__DragonFly__)
63#include "acdragonflyex.h" 60#include "acdragonflyex.h"
64 61
@@ -72,6 +69,11 @@
72 69
73#endif 70#endif
74 71
72#if defined(_MSC_VER)
73#include "acmsvcex.h"
74
75#endif
76
75/*! [End] no source code translation !*/ 77/*! [End] no source code translation !*/
76 78
77#endif /* __ACENVEX_H__ */ 79#endif /* __ACENVEX_H__ */
diff --git a/include/acpi/platform/aclinux.h b/include/acpi/platform/aclinux.h
index 1380ec7035f8..a5d98d171866 100644
--- a/include/acpi/platform/aclinux.h
+++ b/include/acpi/platform/aclinux.h
@@ -215,8 +215,4 @@
215 215
216#endif /* __KERNEL__ */ 216#endif /* __KERNEL__ */
217 217
218/* Linux uses GCC */
219
220#include <acpi/platform/acgcc.h>
221
222#endif /* __ACLINUX_H__ */ 218#endif /* __ACLINUX_H__ */