public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] SFI: fix compilation warnings
@ 2013-12-05 17:26 Andy Shevchenko
  2013-12-05 22:36 ` Rafael J. Wysocki
  2013-12-06  1:05 ` Zheng, Lv
  0 siblings, 2 replies; 10+ messages in thread
From: Andy Shevchenko @ 2013-12-05 17:26 UTC (permalink / raw)
  To: Lv Zheng, Rafael J . Wysocki, linux-acpi; +Cc: Andy Shevchenko

When build kernel with make W=1 we get the following compiler error.

In file included from drivers/sfi/sfi_acpi.c:66:0:
include/linux/sfi_acpi.h: In function ‘acpi_sfi_table_parse’:
include/linux/sfi_acpi.h:72:2: error: implicit declaration of function ‘acpi_table_parse’ [-Werror=implicit-function-declaration]
  if (!acpi_table_parse(signature, handler))
  ^
  cc1: some warnings being treated as errors

The patch changes acpi/acpi.h inclusion to linux/acpi.h.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/sfi/sfi_acpi.c   | 2 +-
 include/linux/sfi_acpi.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/sfi/sfi_acpi.c b/drivers/sfi/sfi_acpi.c
index 0c9f419..d4dfcbe 100644
--- a/drivers/sfi/sfi_acpi.c
+++ b/drivers/sfi/sfi_acpi.c
@@ -60,7 +60,7 @@
 #define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
 
 #include <linux/kernel.h>
-#include <acpi/acpi.h>	/* FIXME: inclusion should be removed */
+#include <linux/acpi.h>
 
 #include <linux/sfi.h>
 #include <linux/sfi_acpi.h>
diff --git a/include/linux/sfi_acpi.h b/include/linux/sfi_acpi.h
index 2cfcb79..c9cab82 100644
--- a/include/linux/sfi_acpi.h
+++ b/include/linux/sfi_acpi.h
@@ -60,7 +60,7 @@
 #define _LINUX_SFI_ACPI_H
 
 #ifdef CONFIG_SFI
-#include <acpi/acpi.h>	/* FIXME: inclusion should be removed */
+#include <linux/acpi.h>
 
 extern int sfi_acpi_table_parse(char *signature, char *oem_id,
 				char *oem_table_id,
-- 
1.8.4.4

--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2013-12-09  8:56 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-05 17:26 [PATCH] SFI: fix compilation warnings Andy Shevchenko
2013-12-05 22:36 ` Rafael J. Wysocki
2013-12-05 22:40   ` Rafael J. Wysocki
2013-12-06  1:08   ` Zheng, Lv
2013-12-06  1:25     ` Rafael J. Wysocki
2013-12-06  1:26       ` Zheng, Lv
2013-12-06  2:00         ` Rafael J. Wysocki
2013-12-06  1:51           ` Zheng, Lv
2013-12-09  8:56             ` Andy Shevchenko
2013-12-06  1:05 ` Zheng, Lv

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox