Message ID | 1362993428-14823-1-git-send-email-andriy.shevchenko@linux.intel.com (mailing list archive) |
---|---|
State | Accepted, archived |
Headers | show |
On Monday, March 11, 2013 11:17:04 AM Andy Shevchenko wrote: > This patch fixes following compiler warnings when build via make W=1: > > drivers/acpi/button.c:220:5: warning: no previous prototype for ‘acpi_lid_notifier_register’ [-Wmissing-prototypes] > drivers/acpi/button.c:226:5: warning: no previous prototype for ‘acpi_lid_notifier_unregister’ [-Wmissing-prototypes] > drivers/acpi/button.c:232:5: warning: no previous prototype for ‘acpi_lid_open’ [-Wmissing-prototypes] > > Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Patches [1-4/5] applied to linux-pm.git/linux-next. I'm leaving patch [5/5] to Bjorn. Thanks, Rafael > --- > drivers/acpi/button.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/acpi/button.c b/drivers/acpi/button.c > index 86c7d54..92a659a 100644 > --- a/drivers/acpi/button.c > +++ b/drivers/acpi/button.c > @@ -33,6 +33,7 @@ > #include <linux/slab.h> > #include <acpi/acpi_bus.h> > #include <acpi/acpi_drivers.h> > +#include <acpi/button.h> > > #define PREFIX "ACPI: " > >
diff --git a/drivers/acpi/button.c b/drivers/acpi/button.c index 86c7d54..92a659a 100644 --- a/drivers/acpi/button.c +++ b/drivers/acpi/button.c @@ -33,6 +33,7 @@ #include <linux/slab.h> #include <acpi/acpi_bus.h> #include <acpi/acpi_drivers.h> +#include <acpi/button.h> #define PREFIX "ACPI: "
This patch fixes following compiler warnings when build via make W=1: drivers/acpi/button.c:220:5: warning: no previous prototype for ‘acpi_lid_notifier_register’ [-Wmissing-prototypes] drivers/acpi/button.c:226:5: warning: no previous prototype for ‘acpi_lid_notifier_unregister’ [-Wmissing-prototypes] drivers/acpi/button.c:232:5: warning: no previous prototype for ‘acpi_lid_open’ [-Wmissing-prototypes] Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> --- drivers/acpi/button.c | 1 + 1 file changed, 1 insertion(+)