Skip to content

Commit

Permalink
ACPI / IBFT: Fix incorrect <acpi/acpi.h> inclusion in iSCSI boot firm…
Browse files Browse the repository at this point in the history
…ware module

To avoid build problems and breaking dependencies between ACPI header
files, <acpi/acpi.h> should not be included directly by code outside
of the ACPI core subsystem, but this is done by the ACPI iSCSI
Boot Firmware code.

The iBFT specification doesn't mention whether or not it can appear
on a non-ACPI platform, but is says that ACPI 3.0b defines the
mechanism.  The current CONFIG_ISCSI_IBFT_FIND code doesn't use the
ACPI tables API to locate the table, so it doesn't rely on CONFIG_ACPI
directly.

However, since iBFT is is an ACPI-based mechanism (please refer to
the documentation link below for more information), it should be
correct to make CONFIG_ISCSI_IBFT_FIND depend on CONFIG_ACPI (even
though the table location can be implemented without using ACPI
tables API).

After that change, include/linux/iscsi_ibft.h can be modified to
include <linux/acpi.h> instead of <acpi/acpi.h> as appropriate.

References: http://www.microsoft.com/whdc/system/platform/firmware/ibft.mspx
Cc: Konrad Rzeszutek Wilk <[email protected]>
Cc: Peter Jones <[email protected]>
Signed-off-by: Lv Zheng <[email protected]>
[rjw: Subject and changelog]
Signed-off-by: Rafael J. Wysocki <[email protected]>
  • Loading branch information
Lv Zheng authored and rafaeljw committed Dec 7, 2013
1 parent 27d50c8 commit 9d24622
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/firmware/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ config DMI_SYSFS

config ISCSI_IBFT_FIND
bool "iSCSI Boot Firmware Table Attributes"
depends on X86
depends on X86 && ACPI
default n
help
This option enables the kernel to find the region of memory
Expand Down
2 changes: 1 addition & 1 deletion include/linux/iscsi_ibft.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#ifndef ISCSI_IBFT_H
#define ISCSI_IBFT_H

#include <acpi/acpi.h> /* FIXME: inclusion should be removed */
#include <linux/acpi.h>

/*
* Logical location of iSCSI Boot Format Table.
Expand Down

0 comments on commit 9d24622

Please sign in to comment.