summaryrefslogtreecommitdiffstats
path: root/drivers/acpi/nvs.c
diff options
context:
space:
mode:
authorRashika <rashika.kheria@gmail.com>2013-12-17 14:45:00 +0530
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2014-01-06 00:13:22 +0100
commit679c581b4a399f519155bf1d976f05d14b5717c3 (patch)
tree8310a47cd1a1c8b412593d6b8136913c2a9215ca /drivers/acpi/nvs.c
parent66e162b3931be6362bb6885ecc422d192f748145 (diff)
downloadop-kernel-dev-679c581b4a399f519155bf1d976f05d14b5717c3.zip
op-kernel-dev-679c581b4a399f519155bf1d976f05d14b5717c3.tar.gz
ACPI / NVS: Include appropriate header file in nvs.c
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@gmail.com> Reviewed-by: Josh Triplett <josh@joshtriplett.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/nvs.c')
-rw-r--r--drivers/acpi/nvs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/acpi/nvs.c b/drivers/acpi/nvs.c
index ef28613..de4fe03 100644
--- a/drivers/acpi/nvs.c
+++ b/drivers/acpi/nvs.c
@@ -13,6 +13,8 @@
#include <linux/slab.h>
#include <linux/acpi.h>
+#include "internal.h"
+
/* ACPI NVS regions, APEI may use it */
struct nvs_region {
OpenPOWER on IntegriCloud