Skip to content

Commit 88fd0d1

Browse files
gthelenNipaLocal
authored and
NipaLocal
committed
eth: mlx4: select PAGE_POOL
With commit 8533b14 ("eth: mlx4: create a page pool for Rx") mlx4 started using functions guarded by PAGE_POOL. This change introduced build errors when CONFIG_MLX4_EN is set but CONFIG_PAGE_POOL is not: ld: vmlinux.o: in function `mlx4_en_alloc_frags': en_rx.c:(.text+0xa5eaf9): undefined reference to `page_pool_alloc_pages' ld: vmlinux.o: in function `mlx4_en_create_rx_ring': (.text+0xa5ee91): undefined reference to `page_pool_create' Make MLX4_EN select PAGE_POOL to fix the ml;x4 build errors. Fixes: 8533b14 ("eth: mlx4: create a page pool for Rx") Signed-off-by: Greg Thelen <[email protected]> Signed-off-by: NipaLocal <nipa@local>
1 parent e154840 commit 88fd0d1

File tree

1 file changed

+1
-0
lines changed
  • drivers/net/ethernet/mellanox/mlx4

1 file changed

+1
-0
lines changed

drivers/net/ethernet/mellanox/mlx4/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ config MLX4_EN
77
tristate "Mellanox Technologies 1/10/40Gbit Ethernet support"
88
depends on PCI && NETDEVICES && ETHERNET && INET
99
depends on PTP_1588_CLOCK_OPTIONAL
10+
select PAGE_POOL
1011
select MLX4_CORE
1112
help
1213
This driver supports Mellanox Technologies ConnectX Ethernet

0 commit comments

Comments
 (0)