Skip to contentSkip to conversation

net: ethernet: mediatek: fix implicit irq include causing build fails

PATCH-next Paul Gortmaker 2 participants 3 messages Jul 23, 2017 1 message not in the archive

Subsystems (5)
lore
Share & tools
lore
#0 lore raw

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/[email protected]>
Cc Felix Fietkau <[email protected]>
Cc John Crispin <[email protected]>
Cc Matthias Brugger <[email protected]>

---

[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(+)
drivers/net/ethernet/mediatek/mtk_eth_soc.c +1 -0
index 7e95cf547ff1..ea15eb095d83 100644
@@ -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>
Signature · 1 line
2.11.0
#1 lore raw

Hi Paul

mark sent the same patch a couple of days ago [1]

John

[1] https://patchwork.ozlabs.org/patch/791550/

Quoted 35 lines · Paul Gortmaker

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 <[email protected]>
Cc Felix Fietkau <[email protected]>
Cc John Crispin <[email protected]>
Cc Matthias Brugger <[email protected]>

---

[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(+)
drivers/net/ethernet/mediatek/mtk_eth_soc.c +1 -0
index 7e95cf547ff1..ea15eb095d83 100644
@@ -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>

A message that is not in the archive (sent off-list or not yet received): faa87d84-936f-8f09-0653-933ee6cccabc-Pj+rj9U5foFAfugRpC6u6w@public.gmane.org

#3 lore raw
Quoted 3 lines · [Re: [PATCH-next] net: ethernet: mediatek: fix implicit irq include causing…

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.
--

Quoted 43 lines

John

[1] https://patchwork.ozlabs.org/patch/791550/

Quoted 35 lines · Paul Gortmaker

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/[email protected]>
Cc Felix Fietkau <[email protected]>
Cc John Crispin <[email protected]>
Cc Matthias Brugger <[email protected]>

---

[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(+)
drivers/net/ethernet/mediatek/mtk_eth_soc.c +1 -0
index 7e95cf547ff1..ea15eb095d83 100644
@@ -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>