diff options
author | Lv Zheng <lv.zheng@intel.com> | 2013-12-06 03:51:59 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-12-06 19:24:33 -0500 |
commit | c099eacbcaec4475936fbf73e499507728ce47e1 (patch) | |
tree | 7350b256876258311c5725a353eedbd2a1de27c9 /drivers/sfi | |
parent | fe5e49cb5ac57f984a44287cf123fbbc712d7bec (diff) |
SFI / ACPI: Fix warnings reported during builds with W=1
The following warnings can be seen in W=1 builds, because the original
sfi_acpi.[ch] header inclusions are incorrect:
include/linux/sfi_acpi.h:72:2: error: implicit declaration of function 'acpi_table_parse' [-Werror=implicit-function-declaration]
drivers/sfi/sfi_acpi.c:154:5: warning: no previous prototype for 'sfi_acpi_table_parse' [-Wmissing-prototypes]
Fix linux/sfi_acpi.h and modify drivers/sfi/sfi_acpi.c accordingly.
Reported-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
[rjw: Subject and changelog]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/sfi')
-rw-r--r-- | drivers/sfi/sfi_acpi.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/sfi/sfi_acpi.c b/drivers/sfi/sfi_acpi.c index 5e753d799f61..d277b36eb389 100644 --- a/drivers/sfi/sfi_acpi.c +++ b/drivers/sfi/sfi_acpi.c | |||
@@ -60,9 +60,7 @@ | |||
60 | #define pr_fmt(fmt) KMSG_COMPONENT ": " fmt | 60 | #define pr_fmt(fmt) KMSG_COMPONENT ": " fmt |
61 | 61 | ||
62 | #include <linux/kernel.h> | 62 | #include <linux/kernel.h> |
63 | #include <acpi/acpi.h> /* FIXME: inclusion should be removed */ | 63 | #include <linux/sfi_acpi.h> |
64 | |||
65 | #include <linux/sfi.h> | ||
66 | #include "sfi_core.h" | 64 | #include "sfi_core.h" |
67 | 65 | ||
68 | /* | 66 | /* |