Message ID | 1412362831-59318-1-git-send-email-Frank.Li@freescale.com |
---|---|
State | Superseded, archived |
Delegated to: | David Miller |
Headers | show |
On Fri, Oct 3, 2014 at 4:00 PM, Frank Li <Frank.Li@freescale.com> wrote: > reproduce: > wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross > chmod +x ~/bin/make.cross > git checkout 1b7bde6d659d30f171259cc2dfba8e5dab34e735 > # save the attached .config to linux build tree There is no attached config ;-) > make.cross ARCH=m68k > > All error/warnings: > > drivers/net/ethernet/freescale/fec_main.c: In function 'fec_enet_rx_queue': >>> drivers/net/ethernet/freescale/fec_main.c:1470:3: error: implicit declaration of function 'prefetch' [-Werror=implicit-function-declaration] > prefetch(skb->data - NET_IP_ALIGN); > ^ > cc1: some warnings being treated as errors > > missed included prefetch.h > > Signed-off-by: Frank Li <Frank.Li@freescale.com> It seems you missed the Reported-by: kbuild test robot <fengguang.wu@intel.com> tag. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
On Fri, Oct 3, 2014 at 3:07 PM, Fabio Estevam <festevam@gmail.com> wrote: > On Fri, Oct 3, 2014 at 4:00 PM, Frank Li <Frank.Li@freescale.com> wrote: >> reproduce: >> wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross >> chmod +x ~/bin/make.cross >> git checkout 1b7bde6d659d30f171259cc2dfba8e5dab34e735 >> # save the attached .config to linux build tree > > There is no attached config ;-) It is copy from kbuild report. Can I change to config: m68k-m5275evb_defconfig (attached as .config) > >> make.cross ARCH=m68k >> >> All error/warnings: >> >> drivers/net/ethernet/freescale/fec_main.c: In function 'fec_enet_rx_queue': >>>> drivers/net/ethernet/freescale/fec_main.c:1470:3: error: implicit declaration of function 'prefetch' [-Werror=implicit-function-declaration] >> prefetch(skb->data - NET_IP_ALIGN); >> ^ >> cc1: some warnings being treated as errors >> >> missed included prefetch.h >> >> Signed-off-by: Frank Li <Frank.Li@freescale.com> > > It seems you missed the Reported-by: kbuild test robot > <fengguang.wu@intel.com> tag. Okay I can add it. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
From: Frank Li <Frank.Li@freescale.com> Date: Fri, 3 Oct 2014 12:00:31 -0700 > reproduce: > wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross > chmod +x ~/bin/make.cross > git checkout 1b7bde6d659d30f171259cc2dfba8e5dab34e735 > # save the attached .config to linux build tree > make.cross ARCH=m68k > > All error/warnings: > > drivers/net/ethernet/freescale/fec_main.c: In function 'fec_enet_rx_queue': >>> drivers/net/ethernet/freescale/fec_main.c:1470:3: error: implicit declaration of function 'prefetch' [-Werror=implicit-function-declaration] > prefetch(skb->data - NET_IP_ALIGN); > ^ > cc1: some warnings being treated as errors > > missed included prefetch.h > > Signed-off-by: Frank Li <Frank.Li@freescale.com> Applied, thanks Frank. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/net/ethernet/freescale/fec_main.c b/drivers/net/ethernet/freescale/fec_main.c index 1f07db8..e190eb0 100644 --- a/drivers/net/ethernet/freescale/fec_main.c +++ b/drivers/net/ethernet/freescale/fec_main.c @@ -57,6 +57,7 @@ #include <linux/regulator/consumer.h> #include <linux/if_vlan.h> #include <linux/pinctrl/consumer.h> +#include <linux/prefetch.h> #include <asm/cacheflush.h>