linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] drivers: sfi: Include appropriate headers in sfi_acpi.c
@ 2013-12-17 12:32 Rashika Kheria
  2013-12-17 12:34 ` [PATCH 2/2] drivers: sfi: Mark functions as static in sfi_core.c Rashika Kheria
  2013-12-17 16:35 ` [PATCH 1/2] drivers: sfi: Include appropriate headers in sfi_acpi.c Josh Triplett
  0 siblings, 2 replies; 4+ messages in thread
From: Rashika Kheria @ 2013-12-17 12:32 UTC (permalink / raw)
  To: linux-kernel; +Cc: Len Brown, sfi-devel, josh

Include header file include/linux/sfi_acpi.h in sfi_acpi.c because
function sfi_acpi_table_parse() has its prototype declaration in
include/linux/sfi_acpi.h. Also, include include/linux/acpi.h because it
contains declarations necessary for include/linux/sfi_acpi.h.

This eliminates the following warning in sfi_acpi.c:
drivers/sfi/sfi_acpi.c:154:5: warning: no previous prototype for ‘sfi_acpi_table_parse’ [-Wmissing-prototypes]

Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
---
 drivers/sfi/sfi_acpi.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/sfi/sfi_acpi.c b/drivers/sfi/sfi_acpi.c
index f5b4ca5..95023f9 100644
--- a/drivers/sfi/sfi_acpi.c
+++ b/drivers/sfi/sfi_acpi.c
@@ -60,6 +60,8 @@
 #define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
 
 #include <linux/kernel.h>
+#include <linux/acpi.h>
+#include <linux/sfi_acpi.h>
 #include <acpi/acpi.h>
 
 #include <linux/sfi.h>
-- 
1.7.9.5


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

end of thread, other threads:[~2013-12-17 16:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-17 12:32 [PATCH 1/2] drivers: sfi: Include appropriate headers in sfi_acpi.c Rashika Kheria
2013-12-17 12:34 ` [PATCH 2/2] drivers: sfi: Mark functions as static in sfi_core.c Rashika Kheria
2013-12-17 16:35   ` Josh Triplett
2013-12-17 16:35 ` [PATCH 1/2] drivers: sfi: Include appropriate headers in sfi_acpi.c Josh Triplett

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).