Patchwork [PATCHv2,5/5] ACPI / pcie: suppress compiler warning in portdrv_acpi.c

login
register
mail settings
Submitter Andy Shevchenko
Date March 11, 2013, 9:17 a.m.
Message ID <1362993428-14823-5-git-send-email-andriy.shevchenko@linux.intel.com>
Download mbox | patch
Permalink /patch/226502/
State Accepted
Headers show

Comments

Andy Shevchenko - March 11, 2013, 9:17 a.m.
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(+)
Bjorn Helgaas - April 12, 2013, 8:54 p.m.
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-pci" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

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.