* [PATCH-next] net: ethernet: mediatek: fix implicit irq include causing build fails
@ 2017-07-23 14:56 Paul Gortmaker
2017-07-23 15:16 ` John Crispin
0 siblings, 1 reply; 3+ messages in thread
From: Paul Gortmaker @ 2017-07-23 14:56 UTC (permalink / raw)
To: netdev-u79uwXL29TY76Z2rM5mHXA
Cc: Felix Fietkau, Sean Wang, Paul Gortmaker,
linux-next-u79uwXL29TY76Z2rM5mHXA,
linux-mediatek-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Matthias Brugger,
John Crispin
To fix:
drivers/net/ethernet/mediatek/mtk_eth_soc.c:1685:1: error: unknown type name 'irqreturn_t'
drivers/net/ethernet/mediatek/mtk_eth_soc.c: In function 'mtk_handle_irq_rx':
drivers/net/ethernet/mediatek/mtk_eth_soc.c:1694:9: error: 'IRQ_HANDLED' undeclared (first use in this function)
drivers/net/ethernet/mediatek/mtk_eth_soc.c:1694:9: note: each undeclared identifier is reported only once for each function it appears in
and similar follow-on errors as seen in arm allmodconfig builds.
Cc: Sean Wang <sean.wang-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org>
Cc: Felix Fietkau <nbd-p3rKhJxN3npAfugRpC6u6w@public.gmane.org>
Cc: John Crispin <blogic-p3rKhJxN3npAfugRpC6u6w@public.gmane.org>
Cc: Matthias Brugger <matthias.bgg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: linux-mediatek-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org
Signed-off-by: Paul Gortmaker <paul.gortmaker-CWA4WttNNZF54TAoqtyWWQ@public.gmane.org>
---
[Seen on current linux-next, where similar implicit irq includes
were recently revealed by some header shuffle somewhere.]
drivers/net/ethernet/mediatek/mtk_eth_soc.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/ethernet/mediatek/mtk_eth_soc.c b/drivers/net/ethernet/mediatek/mtk_eth_soc.c
index 7e95cf547ff1..ea15eb095d83 100644
--- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c
+++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c
@@ -16,6 +16,7 @@
#include <linux/of_mdio.h>
#include <linux/of_net.h>
#include <linux/mfd/syscon.h>
+#include <linux/interrupt.h>
#include <linux/regmap.h>
#include <linux/clk.h>
#include <linux/pm_runtime.h>
--
2.11.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH-next] net: ethernet: mediatek: fix implicit irq include causing build fails
2017-07-23 14:56 [PATCH-next] net: ethernet: mediatek: fix implicit irq include causing build fails Paul Gortmaker
@ 2017-07-23 15:16 ` John Crispin
[not found] ` <faa87d84-936f-8f09-0653-933ee6cccabc-Pj+rj9U5foFAfugRpC6u6w@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: John Crispin @ 2017-07-23 15:16 UTC (permalink / raw)
To: Paul Gortmaker, netdev
Cc: Felix Fietkau, Sean Wang, linux-next, linux-mediatek,
Matthias Brugger, John Crispin
Hi Paul
mark sent the same patch a couple of days ago [1]
John
[1] https://patchwork.ozlabs.org/patch/791550/
On 23/07/17 16:56, Paul Gortmaker wrote:
> To fix:
>
> drivers/net/ethernet/mediatek/mtk_eth_soc.c:1685:1: error: unknown type name 'irqreturn_t'
> drivers/net/ethernet/mediatek/mtk_eth_soc.c: In function 'mtk_handle_irq_rx':
> drivers/net/ethernet/mediatek/mtk_eth_soc.c:1694:9: error: 'IRQ_HANDLED' undeclared (first use in this function)
> drivers/net/ethernet/mediatek/mtk_eth_soc.c:1694:9: note: each undeclared identifier is reported only once for each function it appears in
>
> and similar follow-on errors as seen in arm allmodconfig builds.
>
> Cc: Sean Wang <sean.wang@mediatek.com>
> Cc: Felix Fietkau <nbd@openwrt.org>
> Cc: John Crispin <blogic@openwrt.org>
> Cc: Matthias Brugger <matthias.bgg@gmail.com>
> Cc: linux-mediatek@lists.infradead.org
> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
> ---
>
> [Seen on current linux-next, where similar implicit irq includes
> were recently revealed by some header shuffle somewhere.]
>
> drivers/net/ethernet/mediatek/mtk_eth_soc.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/net/ethernet/mediatek/mtk_eth_soc.c b/drivers/net/ethernet/mediatek/mtk_eth_soc.c
> index 7e95cf547ff1..ea15eb095d83 100644
> --- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c
> +++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c
> @@ -16,6 +16,7 @@
> #include <linux/of_mdio.h>
> #include <linux/of_net.h>
> #include <linux/mfd/syscon.h>
> +#include <linux/interrupt.h>
> #include <linux/regmap.h>
> #include <linux/clk.h>
> #include <linux/pm_runtime.h>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH-next] net: ethernet: mediatek: fix implicit irq include causing build fails
[not found] ` <faa87d84-936f-8f09-0653-933ee6cccabc-Pj+rj9U5foFAfugRpC6u6w@public.gmane.org>
@ 2017-07-23 15:43 ` Paul Gortmaker
0 siblings, 0 replies; 3+ messages in thread
From: Paul Gortmaker @ 2017-07-23 15:43 UTC (permalink / raw)
To: John Crispin
Cc: Felix Fietkau, netdev-u79uwXL29TY76Z2rM5mHXA, Sean Wang,
linux-next-u79uwXL29TY76Z2rM5mHXA,
linux-mediatek-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Matthias Brugger,
John Crispin
[Re: [PATCH-next] net: ethernet: mediatek: fix implicit irq include causing build fails] On 23/07/2017 (Sun 17:16) John Crispin wrote:
> Hi Paul
>
> mark sent the same patch a couple of days ago [1]
OK, thanks -- I searched for mediatek in my mail and scanned netdev
patchworks for patches in "New" state but didn't see it because it is
apparently already in "In review" state.
Paul.
--
>
> John
>
> [1] https://patchwork.ozlabs.org/patch/791550/
>
>
> On 23/07/17 16:56, Paul Gortmaker wrote:
> >To fix:
> >
> >drivers/net/ethernet/mediatek/mtk_eth_soc.c:1685:1: error: unknown type name 'irqreturn_t'
> >drivers/net/ethernet/mediatek/mtk_eth_soc.c: In function 'mtk_handle_irq_rx':
> >drivers/net/ethernet/mediatek/mtk_eth_soc.c:1694:9: error: 'IRQ_HANDLED' undeclared (first use in this function)
> >drivers/net/ethernet/mediatek/mtk_eth_soc.c:1694:9: note: each undeclared identifier is reported only once for each function it appears in
> >
> >and similar follow-on errors as seen in arm allmodconfig builds.
> >
> >Cc: Sean Wang <sean.wang-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org>
> >Cc: Felix Fietkau <nbd-p3rKhJxN3npAfugRpC6u6w@public.gmane.org>
> >Cc: John Crispin <blogic-p3rKhJxN3npAfugRpC6u6w@public.gmane.org>
> >Cc: Matthias Brugger <matthias.bgg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
> >Cc: linux-mediatek-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org
> >Signed-off-by: Paul Gortmaker <paul.gortmaker-CWA4WttNNZF54TAoqtyWWQ@public.gmane.org>
> >---
> >
> >[Seen on current linux-next, where similar implicit irq includes
> > were recently revealed by some header shuffle somewhere.]
> >
> > drivers/net/ethernet/mediatek/mtk_eth_soc.c | 1 +
> > 1 file changed, 1 insertion(+)
> >
> >diff --git a/drivers/net/ethernet/mediatek/mtk_eth_soc.c b/drivers/net/ethernet/mediatek/mtk_eth_soc.c
> >index 7e95cf547ff1..ea15eb095d83 100644
> >--- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c
> >+++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c
> >@@ -16,6 +16,7 @@
> > #include <linux/of_mdio.h>
> > #include <linux/of_net.h>
> > #include <linux/mfd/syscon.h>
> >+#include <linux/interrupt.h>
> > #include <linux/regmap.h>
> > #include <linux/clk.h>
> > #include <linux/pm_runtime.h>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-07-23 15:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-23 14:56 [PATCH-next] net: ethernet: mediatek: fix implicit irq include causing build fails Paul Gortmaker
2017-07-23 15:16 ` John Crispin
[not found] ` <faa87d84-936f-8f09-0653-933ee6cccabc-Pj+rj9U5foFAfugRpC6u6w@public.gmane.org>
2017-07-23 15:43 ` Paul Gortmaker
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).