* [PATCHv2 1/5] ACPI: suppress compiler warnings in button.c
@ 2013-03-11 9:17 Andy Shevchenko
2013-03-11 9:17 ` [PATCHv2 2/5] ACPI: suppress compiler warnings in processor_throttling.c Andy Shevchenko
` (4 more replies)
0 siblings, 5 replies; 7+ messages in thread
From: Andy Shevchenko @ 2013-03-11 9:17 UTC (permalink / raw)
To: linux-acpi, Rafael J . Wysocki; +Cc: Andy Shevchenko
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(+)
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: "
--
1.8.2.rc0.22.gb3600c3
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCHv2 2/5] ACPI: suppress compiler warnings in processor_throttling.c
2013-03-11 9:17 [PATCHv2 1/5] ACPI: suppress compiler warnings in button.c Andy Shevchenko
@ 2013-03-11 9:17 ` Andy Shevchenko
2013-03-11 9:17 ` [PATCHv2 3/5] ACPI: suppress compiler warning in battery.c Andy Shevchenko
` (3 subsequent siblings)
4 siblings, 0 replies; 7+ messages in thread
From: Andy Shevchenko @ 2013-03-11 9:17 UTC (permalink / raw)
To: linux-acpi, Rafael J . Wysocki; +Cc: Andy Shevchenko
This patch fixes following compiler warnings when build via make W=1:
drivers/acpi/processor_throttling.c: In function ‘acpi_processor_throttling_init’:
drivers/acpi/processor_throttling.c:216:40: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
drivers/acpi/processor_throttling.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/acpi/processor_throttling.c b/drivers/acpi/processor_throttling.c
index 1d02b7b..e7dd2c1 100644
--- a/drivers/acpi/processor_throttling.c
+++ b/drivers/acpi/processor_throttling.c
@@ -211,9 +211,10 @@ err_ret:
*/
void acpi_processor_throttling_init(void)
{
- if (acpi_processor_update_tsd_coord())
+ if (acpi_processor_update_tsd_coord()) {
ACPI_DEBUG_PRINT((ACPI_DB_INFO,
"Assume no T-state coordination\n"));
+ }
return;
}
--
1.8.2.rc0.22.gb3600c3
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCHv2 3/5] ACPI: suppress compiler warning in battery.c
2013-03-11 9:17 [PATCHv2 1/5] ACPI: suppress compiler warnings in button.c Andy Shevchenko
2013-03-11 9:17 ` [PATCHv2 2/5] ACPI: suppress compiler warnings in processor_throttling.c Andy Shevchenko
@ 2013-03-11 9:17 ` Andy Shevchenko
2013-03-11 9:17 ` [PATCHv2 4/5] ACPI: suppress compiler warning in container.c Andy Shevchenko
` (2 subsequent siblings)
4 siblings, 0 replies; 7+ messages in thread
From: Andy Shevchenko @ 2013-03-11 9:17 UTC (permalink / raw)
To: linux-acpi, Rafael J . Wysocki; +Cc: Andy Shevchenko
This patch fixes following compiler warning when build via make W=1:
drivers/acpi/battery.c:149:52: warning: no previous prototype for ‘acpi_battery_present’ [-Wmissing-prototypes]
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
drivers/acpi/battery.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/acpi/battery.c b/drivers/acpi/battery.c
index c5cd5b5..0cc384b 100644
--- a/drivers/acpi/battery.c
+++ b/drivers/acpi/battery.c
@@ -146,7 +146,7 @@ struct acpi_battery {
#define to_acpi_battery(x) container_of(x, struct acpi_battery, bat)
-inline int acpi_battery_present(struct acpi_battery *battery)
+static inline int acpi_battery_present(struct acpi_battery *battery)
{
return battery->device->status.battery_present;
}
--
1.8.2.rc0.22.gb3600c3
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCHv2 4/5] ACPI: suppress compiler warning in container.c
2013-03-11 9:17 [PATCHv2 1/5] ACPI: suppress compiler warnings in button.c Andy Shevchenko
2013-03-11 9:17 ` [PATCHv2 2/5] ACPI: suppress compiler warnings in processor_throttling.c Andy Shevchenko
2013-03-11 9:17 ` [PATCHv2 3/5] ACPI: suppress compiler warning in battery.c Andy Shevchenko
@ 2013-03-11 9:17 ` Andy Shevchenko
2013-03-11 9:17 ` [PATCHv2 5/5] ACPI / pcie: suppress compiler warning in portdrv_acpi.c Andy Shevchenko
2013-03-26 13:26 ` [PATCHv2 1/5] ACPI: suppress compiler warnings in button.c Rafael J. Wysocki
4 siblings, 0 replies; 7+ messages in thread
From: Andy Shevchenko @ 2013-03-11 9:17 UTC (permalink / raw)
To: linux-acpi, Rafael J . Wysocki; +Cc: Andy Shevchenko
This patch fixes following compiler warning when build via make W=1:
drivers/acpi/container.c:183:116: warning: no previous prototype for ‘acpi_container_init’ [-Wmissing-prototypes]
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
drivers/acpi/container.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/acpi/container.c b/drivers/acpi/container.c
index 5523ba7..6624c01 100644
--- a/drivers/acpi/container.c
+++ b/drivers/acpi/container.c
@@ -35,6 +35,8 @@
#include <acpi/acpi_bus.h>
#include <acpi/acpi_drivers.h>
+#include "internal.h"
+
#define PREFIX "ACPI: "
#define _COMPONENT ACPI_CONTAINER_COMPONENT
--
1.8.2.rc0.22.gb3600c3
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCHv2 5/5] ACPI / pcie: suppress compiler warning in portdrv_acpi.c
2013-03-11 9:17 [PATCHv2 1/5] ACPI: suppress compiler warnings in button.c Andy Shevchenko
` (2 preceding siblings ...)
2013-03-11 9:17 ` [PATCHv2 4/5] ACPI: suppress compiler warning in container.c Andy Shevchenko
@ 2013-03-11 9:17 ` Andy Shevchenko
2013-04-12 20:54 ` Bjorn Helgaas
2013-03-26 13:26 ` [PATCHv2 1/5] ACPI: suppress compiler warnings in button.c Rafael J. Wysocki
4 siblings, 1 reply; 7+ messages in thread
From: Andy Shevchenko @ 2013-03-11 9:17 UTC (permalink / raw)
To: linux-acpi, Rafael J . Wysocki; +Cc: Andy Shevchenko, Bjorn Helgaas, linux-pci
This patch fixes following compiler warning when build via make W=1:
drivers/pci/pcie/portdrv_acpi.c:34:5: warning: no previous prototype for ‘pcie_port_acpi_setup’ [-Wmissing-prototypes]
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Bjorn Helgaas <bhelgaas@google.com>
Cc: linux-pci@vger.kernel.org
---
drivers/pci/pcie/portdrv_acpi.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/pci/pcie/portdrv_acpi.c b/drivers/pci/pcie/portdrv_acpi.c
index a86b56e..b4d2894 100644
--- a/drivers/pci/pcie/portdrv_acpi.c
+++ b/drivers/pci/pcie/portdrv_acpi.c
@@ -17,6 +17,7 @@
#include "aer/aerdrv.h"
#include "../pci.h"
+#include "portdrv.h"
/**
* pcie_port_acpi_setup - Request the BIOS to release control of PCIe services.
--
1.8.2.rc0.22.gb3600c3
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCHv2 1/5] ACPI: suppress compiler warnings in button.c
2013-03-11 9:17 [PATCHv2 1/5] ACPI: suppress compiler warnings in button.c Andy Shevchenko
` (3 preceding siblings ...)
2013-03-11 9:17 ` [PATCHv2 5/5] ACPI / pcie: suppress compiler warning in portdrv_acpi.c Andy Shevchenko
@ 2013-03-26 13:26 ` Rafael J. Wysocki
4 siblings, 0 replies; 7+ messages in thread
From: Rafael J. Wysocki @ 2013-03-26 13:26 UTC (permalink / raw)
To: Andy Shevchenko; +Cc: linux-acpi, Bjorn Helgaas
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: "
>
>
--
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCHv2 5/5] ACPI / pcie: suppress compiler warning in portdrv_acpi.c
2013-03-11 9:17 ` [PATCHv2 5/5] ACPI / pcie: suppress compiler warning in portdrv_acpi.c Andy Shevchenko
@ 2013-04-12 20:54 ` Bjorn Helgaas
0 siblings, 0 replies; 7+ messages in thread
From: Bjorn Helgaas @ 2013-04-12 20:54 UTC (permalink / raw)
To: Andy Shevchenko
Cc: linux-acpi@vger.kernel.org, Rafael J . Wysocki,
linux-pci@vger.kernel.org
On Mon, Mar 11, 2013 at 3:17 AM, Andy Shevchenko
<andriy.shevchenko@linux.intel.com> wrote:
> This patch fixes following compiler warning when build via make W=1:
>
> drivers/pci/pcie/portdrv_acpi.c:34:5: warning: no previous prototype for ‘pcie_port_acpi_setup’ [-Wmissing-prototypes]
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> Cc: Bjorn Helgaas <bhelgaas@google.com>
> Cc: linux-pci@vger.kernel.org
I applied this and several similar patches to my pci/cleanup branch
for v3.10. Thanks!
http://git.kernel.org/cgit/linux/kernel/git/helgaas/pci.git/log/?h=pci/cleanup
Bjorn
> ---
> drivers/pci/pcie/portdrv_acpi.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/pci/pcie/portdrv_acpi.c b/drivers/pci/pcie/portdrv_acpi.c
> index a86b56e..b4d2894 100644
> --- a/drivers/pci/pcie/portdrv_acpi.c
> +++ b/drivers/pci/pcie/portdrv_acpi.c
> @@ -17,6 +17,7 @@
>
> #include "aer/aerdrv.h"
> #include "../pci.h"
> +#include "portdrv.h"
>
> /**
> * pcie_port_acpi_setup - Request the BIOS to release control of PCIe services.
> --
> 1.8.2.rc0.22.gb3600c3
>
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2013-04-12 20:54 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-11 9:17 [PATCHv2 1/5] ACPI: suppress compiler warnings in button.c Andy Shevchenko
2013-03-11 9:17 ` [PATCHv2 2/5] ACPI: suppress compiler warnings in processor_throttling.c Andy Shevchenko
2013-03-11 9:17 ` [PATCHv2 3/5] ACPI: suppress compiler warning in battery.c Andy Shevchenko
2013-03-11 9:17 ` [PATCHv2 4/5] ACPI: suppress compiler warning in container.c Andy Shevchenko
2013-03-11 9:17 ` [PATCHv2 5/5] ACPI / pcie: suppress compiler warning in portdrv_acpi.c Andy Shevchenko
2013-04-12 20:54 ` Bjorn Helgaas
2013-03-26 13:26 ` [PATCHv2 1/5] ACPI: suppress compiler warnings in button.c Rafael J. Wysocki
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox