[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <c351cee2521c4728d60810eb0212e8f307c79ac6.1387283325.git.rashika.kheria@gmail.com>
Date: Tue, 17 Dec 2013 18:02:14 +0530
From: Rashika Kheria <rashika.kheria@...il.com>
To: linux-kernel@...r.kernel.org
Cc: Len Brown <lenb@...nel.org>, sfi-devel@...plefirmware.org,
josh@...htriplett.org
Subject: [PATCH 1/2] drivers: sfi: Include appropriate headers in sfi_acpi.c
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@...il.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists