ACPI: fix acpi_debugfs_init prototype
authorNicolas Iooss <nicolas.iooss_linux@m4x.org>
Sat, 1 Aug 2015 13:32:17 +0000 (21:32 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 7 Aug 2015 00:55:18 +0000 (02:55 +0200)
commit10742619ac63641bcce0a7c07f0dc7509201ed72
tree021a7d29f96ced8255cbe634a750861442960efd
parent4c62dbbce902cf2afa88cac89ec67c828160f431
ACPI: fix acpi_debugfs_init prototype

acpi_debugfs_init function is declared with return type int in
drivers/acpi/internal.h when CONFIG_DEBUG_FS is enabled, but its
definition in drivers/acpi/debugfs.c has return type void. This is due
to commit aecad432fd68 ("ACPI: Cleanup custom_method debug stuff"),
which changed the return type from int to void without updating the
declaration.

Fix this inconsistency by updating acpi_debugfs_init prototype.  While
at it, include internal.h in debugfs.c so that the compiler can check
that the declaration and definition remain compatible.

Signed-off-by: Nicolas Iooss <nicolas.iooss_linux@m4x.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/debugfs.c
drivers/acpi/internal.h