Skip to contentSkip to conversation

linux-next: ERROR: build error for arm64

DISCUSSION Björn Töpel 2 participants 2 messages Dec 6, 2020 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 26 lines · Hui Su

hi, all:

The error came out like this when i build the linux-next kernel with ARCH=arm64, with the arm64_defconfig:

CC drivers/net/ethernet/freescale/dpaa/dpaa_eth.o
../drivers/net/ethernet/freescale/dpaa/dpaa_eth.c: In function ‘dpaa_fq_init’:
../drivers/net/ethernet/freescale/dpaa/dpaa_eth.c:1135:9: error: too few arguments to function ‘xdp_rxq_info_reg’
1135 | err = xdp_rxq_info_reg(&dpaa_fq->xdp_rxq, dpaa_fq->net_dev,

       |         ^~~~~~~~~~~~~~~~
In file included from ../include/linux/netdevice.h:42,
                  from ../include/uapi/linux/if_arp.h:27,
                  from ../include/linux/if_arp.h:23,
                  from ../drivers/net/ethernet/freescale/dpaa/dpaa_eth.c:40:
../include/net/xdp.h:229:5: note: declared here
   229 | int xdp_rxq_info_reg(struct xdp_rxq_info *xdp_rxq,
       |     ^~~~~~~~~~~~~~~~

make[6]: *** [../scripts/Makefile.build:283: drivers/net/ethernet/freescale/dpaa/dpaa_eth.o] Error 1

Branch: git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
HEAD: 2996bd3f6ca9ea529b40c369a94b247657abdb4d
ARCH: arm64
CONFIG: arch/arm64/configs/defconfig
CMD: make ARCH=arm64 CROSS_COMPILE=/usr/bin/aarch64-linux-gnu- Image

Quoted 5 lines

It maybe introduced by the commit b02e5a0ebb172(xsk: Propagate napi_id to XDP socket Rx path), and if anyone solved this, please add:

Hui, was already resolved in commit fdd8b8249ef8 ("dpaa_eth: fix build errorr in dpaa_fq_init").

Thanks,
Björn