Skip to contentSkip to conversation

linux-next: build failure after merge of the block tree

PATCH Mark Brown 2 participants 3 messages Apr 10 – Apr 15

Subsystems (3)
lore
Share & tools
lore

Mark Brown

author maintainer
#0 lore raw

Hi all,

After merging the block tree, today's linux-next build (arm64 defconfig) failed like this:

/tmp/next/build/io_uring/zcrx.c: In function 'zcrx_register_netdev':
/tmp/next/build/io_uring/zcrx.c:816:15: error: implicit declaration of function '__net_mp_open_rxq'; did you mean 'netif_mp_open_rxq'? [-Wimplicit-function-declaration]

  816 |         ret = __net_mp_open_rxq(ifq->netdev, if_rxq, &mp_param, NULL);
      |               ^~~~~~~~~~~~~~~~~ netif_mp_open_rxq

Caused by commit

1e91c98bc9a8ef (net: Slightly simplify net_mp_{open,close}_rxq)

interacting with block tree changes. I have fixed this up as per below and can carry as needed

From d5971ccec3525c71d28cb40bc4a6c9596f354b48 Mon Sep 17 00:00:00 2001
From: Mark Brown <[email protected]>
Date: Fri, 10 Apr 2026 13:14:23 +0100
Subject: [PATCH] io_uring: Fix up build for "net: Slightly simplify
net_mp_{open,close}_rxq"

/tmp/next/build/io_uring/zcrx.c: In function 'zcrx_register_netdev':
/tmp/next/build/io_uring/zcrx.c:816:15: error: implicit declaration of function '__net_mp_open_rxq'; did you mean 'netif_mp_open_rxq'? [-Wimplicit-function-declaration]

  816 |         ret = __net_mp_open_rxq(ifq->netdev, if_rxq, &mp_param, NULL);
      |               ^~~~~~~~~~~~~~~~~ netif_mp_open_rxq
---
 io_uring/zcrx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
io_uring/zcrx.c +1 -1
index 593b1d39a5eb44..f2e08c19e74cef 100644
@@ -813,7 +813,7 @@ static int zcrx_register_netdev(struct io_zcrx_ifq *ifq,
 		mp_param.rx_page_size = 1U << ifq->niov_shift;
 	mp_param.mp_ops = &io_uring_pp_zc_ops;
 	mp_param.mp_priv = ifq;
-	ret = __net_mp_open_rxq(ifq->netdev, if_rxq, &mp_param, NULL);
+	ret = netif_mp_open_rxq(ifq->netdev, if_rxq, &mp_param, NULL);
 	if (ret)
 		goto netdev_put_unlock;
 
Signature · 1 line
2.47.3
#1 lore raw
kernel test robot noticed the following build errors:

Hi Mark,

kernel test robot noticed the following build errors:

[auto build test ERROR on axboe/for-next]
[also build test ERROR on isilence/zcrx/for-next]
[cannot apply to linus/master v7.0 next-20260414]
[If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Mark-Brown/linux-next-build-failure-after-merge-of-the-block-tree/20260415-013341
base:   https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux.git for-next
patch link:    https://lore.kernel.org/r/adjrVagmLJaozz5o%40sirena.co.uk
patch subject: linux-next: build failure after merge of the block tree
config: sh-allmodconfig (https://download.01.org/0day-ci/archive/20260415/[email protected]/config)
compiler: sh4-linux-gcc (GCC) 15.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260415/[email protected]/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All errors (new ones prefixed by >>):

io_uring/zcrx.c: In function 'zcrx_register_netdev':

>> io_uring/zcrx.c:812:15: error: implicit declaration of function 'netif_mp_open_rxq'; did you mean 'net_mp_open_rxq'? [-Wimplicit-function-declaration]
     812 |         ret = netif_mp_open_rxq(ifq->netdev, if_rxq, &mp_param, NULL);
         |               ^~~~~~~~~~~~~~~~~
         |               net_mp_open_rxq

vim +812 io_uring/zcrx.c

781
782 static int zcrx_register_netdev(struct io_zcrx_ifq *ifq,
783 struct io_uring_zcrx_ifq_reg *reg,
784 struct io_uring_zcrx_area_reg *area)
785 {
786 struct pp_memory_provider_params mp_param = {};
787 unsigned if_rxq = reg->if_rxq;
788 int ret;
789
790 ifq->netdev = netdev_get_by_index_lock(current->nsproxy->net_ns,
791 reg->if_idx);
792 if (!ifq->netdev)
793 return -ENODEV;
794
795 netdev_hold(ifq->netdev, &ifq->netdev_tracker, GFP_KERNEL);
796
797 ifq->dev = netdev_queue_get_dma_dev(ifq->netdev, if_rxq);
798 if (!ifq->dev) {
799 ret = -EOPNOTSUPP;
800 goto netdev_put_unlock;
801 }
802 get_device(ifq->dev);
803
804 ret = io_zcrx_create_area(ifq, area, reg);
805 if (ret)
806 goto netdev_put_unlock;
807
808 if (reg->rx_buf_len)
809 mp_param.rx_page_size = 1U << ifq->niov_shift;
810 mp_param.mp_ops = &io_uring_pp_zc_ops;
811 mp_param.mp_priv = ifq;

 > 812		ret = netif_mp_open_rxq(ifq->netdev, if_rxq, &mp_param, NULL);

813 if (ret)
814 goto netdev_put_unlock;
815
816 ifq->if_rxq = if_rxq;
817 ret = 0;
818 netdev_put_unlock:
819 netdev_unlock(ifq->netdev);
820 return ret;
821 }
822

Signature · 2 lines
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
#2 lore raw
In reply to Mark Brown
kernel test robot noticed the following build errors:

Hi Mark,

kernel test robot noticed the following build errors:

[auto build test ERROR on axboe/for-next]
[also build test ERROR on isilence/zcrx/for-next]
[cannot apply to linus/master v7.0 next-20260414]
[If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Mark-Brown/linux-next-build-failure-after-merge-of-the-block-tree/20260415-013341
base:   https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux.git for-next
patch link:    https://lore.kernel.org/r/adjrVagmLJaozz5o%40sirena.co.uk
patch subject: linux-next: build failure after merge of the block tree
config: loongarch-randconfig-001-20260415 (https://download.01.org/0day-ci/archive/20260415/[email protected]/config)
compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)
rustc: rustc 1.88.0 (6b00bc388 2025-06-23)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260415/[email protected]/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All errors (new ones prefixed by >>):

>> io_uring/zcrx.c:812:8: error: call to undeclared function 'netif_mp_open_rxq'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     812 |         ret = netif_mp_open_rxq(ifq->netdev, if_rxq, &mp_param, NULL);
         |               ^

io_uring/zcrx.c:812:8: note: did you mean 'net_mp_open_rxq'? include/net/page_pool/memory_provider.h:26:5: note: 'net_mp_open_rxq' declared here
26 | int net_mp_open_rxq(struct net_device *dev, unsigned ifq_idx,
| ^
1 error generated.

vim +/netif_mp_open_rxq +812 io_uring/zcrx.c

781
782 static int zcrx_register_netdev(struct io_zcrx_ifq *ifq,
783 struct io_uring_zcrx_ifq_reg *reg,
784 struct io_uring_zcrx_area_reg *area)
785 {
786 struct pp_memory_provider_params mp_param = {};
787 unsigned if_rxq = reg->if_rxq;
788 int ret;
789
790 ifq->netdev = netdev_get_by_index_lock(current->nsproxy->net_ns,
791 reg->if_idx);
792 if (!ifq->netdev)
793 return -ENODEV;
794
795 netdev_hold(ifq->netdev, &ifq->netdev_tracker, GFP_KERNEL);
796
797 ifq->dev = netdev_queue_get_dma_dev(ifq->netdev, if_rxq);
798 if (!ifq->dev) {
799 ret = -EOPNOTSUPP;
800 goto netdev_put_unlock;
801 }
802 get_device(ifq->dev);
803
804 ret = io_zcrx_create_area(ifq, area, reg);
805 if (ret)
806 goto netdev_put_unlock;
807
808 if (reg->rx_buf_len)
809 mp_param.rx_page_size = 1U << ifq->niov_shift;
810 mp_param.mp_ops = &io_uring_pp_zc_ops;
811 mp_param.mp_priv = ifq;

 > 812		ret = netif_mp_open_rxq(ifq->netdev, if_rxq, &mp_param, NULL);

813 if (ret)
814 goto netdev_put_unlock;
815
816 ifq->if_rxq = if_rxq;
817 ret = 0;
818 netdev_put_unlock:
819 netdev_unlock(ifq->netdev);
820 return ret;
821 }
822

Signature · 2 lines
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki