[PATCH 02/11] drivers: acpi: Include appropriate header file in nvs.c

From: Rashika Kheria
Date: Tue Dec 17 2013 - 04:15:24 EST


Include header file internal.h in nvs.c because functions
suspend_nvs_free(), suspend_nvs_alloc(), suspend_nvs_save() and
suspend_nvs_restore() have their prototype declaration in internal.h.

This eliminates the following warnings in nvs.c:
drivers/acpi/nvs.c:128:6: warning: no previous prototype for âsuspend_nvs_freeâ [-Wmissing-prototypes]
drivers/acpi/nvs.c:152:5: warning: no previous prototype for âsuspend_nvs_allocâ [-Wmissing-prototypes]
drivers/acpi/nvs.c:169:5: warning: no previous prototype for âsuspend_nvs_saveâ [-Wmissing-prototypes]
drivers/acpi/nvs.c:201:6: warning: no previous prototype for âsuspend_nvs_restoreâ [-Wmissing-prototypes]

Signed-off-by: Rashika Kheria <rashika.kheria@xxxxxxxxx>
Reviewed-by: Josh Triplett <josh@xxxxxxxxxxxxxxxx>
---
drivers/acpi/nvs.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/acpi/nvs.c b/drivers/acpi/nvs.c
index 386a9fe..5841914 100644
--- a/drivers/acpi/nvs.c
+++ b/drivers/acpi/nvs.c
@@ -13,6 +13,7 @@
#include <linux/slab.h>
#include <linux/acpi.h>
#include <linux/acpi_io.h>
+#include "internal.h"

/* ACPI NVS regions, APEI may use it */

--
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/