]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI: Add support to force header inclusion rules for <acpi/acpi.h>.
authorLv Zheng <lv.zheng@intel.com>
Wed, 16 Jul 2014 08:58:53 +0000 (16:58 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 22 Jul 2014 23:10:45 +0000 (01:10 +0200)
commita63a81bd74cff1fb96486a83ca9794ad24792ed2
tree9729e9eb4c52db8d3df5d3c68ab1cbe84643790e
parentbcf98b429394b0a3ef84d456af05704f8737df14
ACPI: Add support to force header inclusion rules for <acpi/acpi.h>.

As there is only CONFIG_ACPI=n processing in the <linux/acpi.h>, it is not
safe to include <acpi/acpi.h> directly for source out of Linux ACPI
subsystems.

This patch adds error messaging to warn developers of such wrong
inclusions.

In order not to be bisected and reverted as a wrong commit, warning
messages are carefully split into a seperate patch other than the wrong
inclusion cleanups.

Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpica/Makefile
include/acpi/platform/aclinux.h