Trying to compile uImage with 8021Q enabled

Rupert Kruger
Hi, I'm a newbie in compiling kernel images

I'm trying to compile the kernel for the NanoPi M3 with 8021Q enabled - but
I get the following error:
 "  CC      drivers/net/ethernet/nexell/nxpmac/nxpmac_main.o
drivers/net/ethernet/nexell/nxpmac/nxpmac_main.c: In function
drivers/net/ethernet/nexell/nxpmac/nxpmac_main.c:3174:20: error:
‘NETIF_F_HW_VLAN_CTAG_RX’ undeclared (first use in this function)
  ndev->features |= NETIF_F_HW_VLAN_CTAG_RX;
drivers/net/ethernet/nexell/nxpmac/nxpmac_main.c:3174:20: note: each
undeclared identifier is reported only once for each function it appears in
drivers/net/ethernet/nexell/nxpmac/nxpmac_main.c: At top level:
drivers/net/ethernet/nexell/nxpmac/nxpmac_main.c:967:13: warning:
‘stmmac_display_descriptors’ defined but not used [-Wunused-function]
 static void stmmac_display_descriptors(struct stmmac_priv *priv)
make[5]: *** [drivers/net/ethernet/nexell/nxpmac/nxpmac_main.o] Error 1
make[4]: *** [drivers/net/ethernet/nexell/nxpmac] Error 2
make[3]: *** [drivers/net/ethernet/nexell] Error 2
make[2]: *** [drivers/net/ethernet] Error 2
make[1]: *** [drivers/net] Error 2
make: *** [drivers] Error 2

Can anyone assist me perhaps?


Generally it is telling you that some .h file has not been included in

List the #include .h files at the top of main

Search the whole directory for:

to try and find which .h file it is in.

The 2nd "error" is a warning.  The code should compile and work ... it is
just telling you to clean up the code.

Rupert Kruger

Thanks for the response. Unfortunately I cannot find a .h file that

I have also searched the internet to no avail. Any further assistance would
be greatly appreciated.

I just noticed the word nexell.  

I suggest posting on the new forum.