linux-mips.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] MIPS: lantic: Fix "no prototype" warning
@ 2023-10-10 14:34 Bjorn Helgaas
  2023-10-10 14:34 ` [PATCH 1/2] MIPS: lantic: Fix pcibios_plat_dev_init() "no previous " Bjorn Helgaas
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Bjorn Helgaas @ 2023-10-10 14:34 UTC (permalink / raw)
  To: Thomas Bogendoerfer
  Cc: Krzysztof Wilczyński, Rob Herring, linux-mips, linux-kernel,
	Bjorn Helgaas

From: Bjorn Helgaas <bhelgaas@google.com>

Fix a "no prototype" warning found by the kernel test robot.

Bjorn Helgaas (2):
  MIPS: lantic: Fix pcibios_plat_dev_init() "no previous prototype"
    warning
  MIPS: lantic: Remove unnecessary include of <linux/of_irq.h>

 arch/mips/pci/fixup-lantiq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH 1/2] MIPS: lantic: Fix pcibios_plat_dev_init() "no previous prototype" warning
  2023-10-10 14:34 [PATCH 0/2] MIPS: lantic: Fix "no prototype" warning Bjorn Helgaas
@ 2023-10-10 14:34 ` Bjorn Helgaas
  2023-10-12  8:26   ` Philippe Mathieu-Daudé
  2023-10-10 14:34 ` [PATCH 2/2] MIPS: lantic: Remove unnecessary include of <linux/of_irq.h> Bjorn Helgaas
  2023-10-19  8:51 ` [PATCH 0/2] MIPS: lantic: Fix "no prototype" warning Thomas Bogendoerfer
  2 siblings, 1 reply; 6+ messages in thread
From: Bjorn Helgaas @ 2023-10-10 14:34 UTC (permalink / raw)
  To: Thomas Bogendoerfer
  Cc: Krzysztof Wilczyński, Rob Herring, linux-mips, linux-kernel,
	Bjorn Helgaas, kernel test robot

From: Bjorn Helgaas <bhelgaas@google.com>

After bbd8810d3998 ("PCI: Remove unused includes and superfluous struct
declaration"), <linux/of_pci.h> no longer includes <linux/pci.h>, which
provides the extern declarations for pcibios_plat_dev_init() and
pcibios_map_irq() via <asm/pci.h>.

This results in these new warnings:

  arch/mips/pci/fixup-lantiq.c:13:5: warning: no previous prototype for 'pcibios_plat_dev_init' [-Wmissing-prototypes]
  arch/mips/pci/fixup-lantiq.c:24:5: warning: no previous prototype for 'pcibios_map_irq' [-Wmissing-prototypes]

Include <linux/pci.h> directly to get these declarations.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202310070445.tzRBNYRC-lkp@intel.com/
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
---
 arch/mips/pci/fixup-lantiq.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/mips/pci/fixup-lantiq.c b/arch/mips/pci/fixup-lantiq.c
index 105569c1b712..8f5fb98b3984 100644
--- a/arch/mips/pci/fixup-lantiq.c
+++ b/arch/mips/pci/fixup-lantiq.c
@@ -6,6 +6,7 @@
 
 #include <linux/of_irq.h>
 #include <linux/of_pci.h>
+#include <linux/pci.h>
 
 int (*ltq_pci_plat_arch_init)(struct pci_dev *dev) = NULL;
 int (*ltq_pci_plat_dev_init)(struct pci_dev *dev) = NULL;
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 2/2] MIPS: lantic: Remove unnecessary include of <linux/of_irq.h>
  2023-10-10 14:34 [PATCH 0/2] MIPS: lantic: Fix "no prototype" warning Bjorn Helgaas
  2023-10-10 14:34 ` [PATCH 1/2] MIPS: lantic: Fix pcibios_plat_dev_init() "no previous " Bjorn Helgaas
@ 2023-10-10 14:34 ` Bjorn Helgaas
  2023-10-12  8:27   ` Philippe Mathieu-Daudé
  2023-10-19  8:51 ` [PATCH 0/2] MIPS: lantic: Fix "no prototype" warning Thomas Bogendoerfer
  2 siblings, 1 reply; 6+ messages in thread
From: Bjorn Helgaas @ 2023-10-10 14:34 UTC (permalink / raw)
  To: Thomas Bogendoerfer
  Cc: Krzysztof Wilczyński, Rob Herring, linux-mips, linux-kernel,
	Bjorn Helgaas

From: Bjorn Helgaas <bhelgaas@google.com>

arch/mips/pci/fixup-lantiq.c requires nothing from <linux/of_irq.h>, so
remove the include of it.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
---
 arch/mips/pci/fixup-lantiq.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/arch/mips/pci/fixup-lantiq.c b/arch/mips/pci/fixup-lantiq.c
index 8f5fb98b3984..13009666204f 100644
--- a/arch/mips/pci/fixup-lantiq.c
+++ b/arch/mips/pci/fixup-lantiq.c
@@ -4,7 +4,6 @@
  *  Copyright (C) 2012 John Crispin <john@phrozen.org>
  */
 
-#include <linux/of_irq.h>
 #include <linux/of_pci.h>
 #include <linux/pci.h>
 
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH 1/2] MIPS: lantic: Fix pcibios_plat_dev_init() "no previous prototype" warning
  2023-10-10 14:34 ` [PATCH 1/2] MIPS: lantic: Fix pcibios_plat_dev_init() "no previous " Bjorn Helgaas
@ 2023-10-12  8:26   ` Philippe Mathieu-Daudé
  0 siblings, 0 replies; 6+ messages in thread
From: Philippe Mathieu-Daudé @ 2023-10-12  8:26 UTC (permalink / raw)
  To: Bjorn Helgaas, Thomas Bogendoerfer
  Cc: Krzysztof Wilczyński, Rob Herring, linux-mips, linux-kernel,
	Bjorn Helgaas, kernel test robot

On 10/10/23 16:34, Bjorn Helgaas wrote:
> From: Bjorn Helgaas <bhelgaas@google.com>
> 
> After bbd8810d3998 ("PCI: Remove unused includes and superfluous struct
> declaration"), <linux/of_pci.h> no longer includes <linux/pci.h>, which
> provides the extern declarations for pcibios_plat_dev_init() and
> pcibios_map_irq() via <asm/pci.h>.
> 
> This results in these new warnings:
> 
>    arch/mips/pci/fixup-lantiq.c:13:5: warning: no previous prototype for 'pcibios_plat_dev_init' [-Wmissing-prototypes]
>    arch/mips/pci/fixup-lantiq.c:24:5: warning: no previous prototype for 'pcibios_map_irq' [-Wmissing-prototypes]
> 
> Include <linux/pci.h> directly to get these declarations.
> 
> Reported-by: kernel test robot <lkp@intel.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202310070445.tzRBNYRC-lkp@intel.com/
> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
> ---
>   arch/mips/pci/fixup-lantiq.c | 1 +
>   1 file changed, 1 insertion(+)

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 2/2] MIPS: lantic: Remove unnecessary include of <linux/of_irq.h>
  2023-10-10 14:34 ` [PATCH 2/2] MIPS: lantic: Remove unnecessary include of <linux/of_irq.h> Bjorn Helgaas
@ 2023-10-12  8:27   ` Philippe Mathieu-Daudé
  0 siblings, 0 replies; 6+ messages in thread
From: Philippe Mathieu-Daudé @ 2023-10-12  8:27 UTC (permalink / raw)
  To: Bjorn Helgaas, Thomas Bogendoerfer
  Cc: Krzysztof Wilczyński, Rob Herring, linux-mips, linux-kernel,
	Bjorn Helgaas

On 10/10/23 16:34, Bjorn Helgaas wrote:
> From: Bjorn Helgaas <bhelgaas@google.com>
> 
> arch/mips/pci/fixup-lantiq.c requires nothing from <linux/of_irq.h>, so
> remove the include of it.
> 
> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
> ---
>   arch/mips/pci/fixup-lantiq.c | 1 -
>   1 file changed, 1 deletion(-)
> 
> diff --git a/arch/mips/pci/fixup-lantiq.c b/arch/mips/pci/fixup-lantiq.c
> index 8f5fb98b3984..13009666204f 100644
> --- a/arch/mips/pci/fixup-lantiq.c
> +++ b/arch/mips/pci/fixup-lantiq.c
> @@ -4,7 +4,6 @@
>    *  Copyright (C) 2012 John Crispin <john@phrozen.org>
>    */
>   
> -#include <linux/of_irq.h>
>   #include <linux/of_pci.h>

Indeed, we are good with <linux/of_pci.h>.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 0/2] MIPS: lantic: Fix "no prototype" warning
  2023-10-10 14:34 [PATCH 0/2] MIPS: lantic: Fix "no prototype" warning Bjorn Helgaas
  2023-10-10 14:34 ` [PATCH 1/2] MIPS: lantic: Fix pcibios_plat_dev_init() "no previous " Bjorn Helgaas
  2023-10-10 14:34 ` [PATCH 2/2] MIPS: lantic: Remove unnecessary include of <linux/of_irq.h> Bjorn Helgaas
@ 2023-10-19  8:51 ` Thomas Bogendoerfer
  2 siblings, 0 replies; 6+ messages in thread
From: Thomas Bogendoerfer @ 2023-10-19  8:51 UTC (permalink / raw)
  To: Bjorn Helgaas
  Cc: Krzysztof Wilczyński, Rob Herring, linux-mips, linux-kernel,
	Bjorn Helgaas

On Tue, Oct 10, 2023 at 09:34:04AM -0500, Bjorn Helgaas wrote:
> From: Bjorn Helgaas <bhelgaas@google.com>
> 
> Fix a "no prototype" warning found by the kernel test robot.
> 
> Bjorn Helgaas (2):
>   MIPS: lantic: Fix pcibios_plat_dev_init() "no previous prototype"
>     warning
>   MIPS: lantic: Remove unnecessary include of <linux/of_irq.h>
> 
>  arch/mips/pci/fixup-lantiq.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

applied to mips-nextr. I've fixed lantic -> lantiq while applying.

Thomas.

-- 
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea.                                                [ RFC1925, 2.3 ]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-10-19  8:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-10 14:34 [PATCH 0/2] MIPS: lantic: Fix "no prototype" warning Bjorn Helgaas
2023-10-10 14:34 ` [PATCH 1/2] MIPS: lantic: Fix pcibios_plat_dev_init() "no previous " Bjorn Helgaas
2023-10-12  8:26   ` Philippe Mathieu-Daudé
2023-10-10 14:34 ` [PATCH 2/2] MIPS: lantic: Remove unnecessary include of <linux/of_irq.h> Bjorn Helgaas
2023-10-12  8:27   ` Philippe Mathieu-Daudé
2023-10-19  8:51 ` [PATCH 0/2] MIPS: lantic: Fix "no prototype" warning Thomas Bogendoerfer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).