diff options
author | Lv Zheng <lv.zheng@intel.com> | 2014-02-11 10:51:33 +0800 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-02-13 15:29:38 +0100 |
commit | 7e66b46b240de40b2fd85f4f8e90bb621213e30f (patch) | |
tree | 0696ce350147bc13aa6404ca9c63dd540ffe22dd /include/acpi/platform | |
parent | faae404ebdc6bba744919d82e64c16448eb24a36 (diff) | |
download | linux-7e66b46b240de40b2fd85f4f8e90bb621213e30f.tar.bz2 |
ACPICA: acpidump: Add sparse declarators support.
Linux kernel resident ACPICA headers include some sparse declarators for
kernel static checkers. This patch adds code to disable them for non
__KERNEL__ defined code so that it is possible for the ACPICA user space
tool's source files to be built with Linux kernel ACPICA header files
included. Lv Zheng.
Linux kernel build is not affected by this commit.
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/platform')
-rw-r--r-- | include/acpi/platform/aclinux.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/acpi/platform/aclinux.h b/include/acpi/platform/aclinux.h index 587b1e27e6a3..26ef0954a2a9 100644 --- a/include/acpi/platform/aclinux.h +++ b/include/acpi/platform/aclinux.h @@ -83,6 +83,16 @@ #include <ctype.h> #include <unistd.h> +/* Disable kernel specific declarators */ + +#ifndef __init +#define __init +#endif + +#ifndef __iomem +#define __iomem +#endif + /* Host-dependent types and defines for user-space ACPICA */ #define ACPI_FLUSH_CPU_CACHE() |