Skip to content

Commit

Permalink
ACPICA: acpidump: Add sparse declarators support.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Lv Zheng authored and Rafael J. Wysocki committed Feb 13, 2014
1 parent faae404 commit 7e66b46
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions include/acpi/platform/aclinux.h
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 7e66b46

Please sign in to comment.