From: kernel test robot <lkp@intel.com>
To: han.junyang@zte.com.cn, andrew+netdev@lunn.ch,
davem@davemloft.net, edumazet@google.com, kuba@kernel.org,
pabeni@redhat.com, horms@kernel.org
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org,
netdev@vger.kernel.org, han.junyang@zte.com.cn,
ran.ming@zte.com.cn, han.chengfei@zte.com.cn,
zhang.yanze@zte.com.cn
Subject: Re: [PATCH net-next v7 1/2] dinghai: add MSI-X interrupt pools
Date: Thu, 3 Dec 2026 11:56:03 +0800 [thread overview]
Message-ID: <20261203114347.bKDWYQkV-lkp@intel.com> (raw)
In-Reply-To: <20261202232629423IClgIi_V1HMg3FsUgAUla@zte.com.cn>
Hi,
kernel test robot noticed the following build warnings:
[auto build test WARNING on net-next/main]
url: https://github.com/intel-lab-lkp/linux/commits/han-junyang-zte-com-cn/dinghai-add-MSI-X-interrupt-pools/20261202-232629
base: net-next/main
patch link: https://lore.kernel.org/r/20261202232629423IClgIi_V1HMg3FsUgAUla%40zte.com.cn
patch subject: [PATCH net-next v7 1/2] dinghai: add MSI-X interrupt pools
config: parisc-allyesconfig (https://download.01.org/0day-ci/archive/20261203/20261203114347.bKDWYQkV-lkp@intel.com/config)
compiler: hppa-linux-gcc (GCC) 16.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261203/20261203114347.bKDWYQkV-lkp@intel.com/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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/20261203114347.bKDWYQkV-lkp@intel.com/
All warnings (new ones prefixed by >>):
drivers/net/ethernet/zte/dinghai/en_pf.c: In function 'zxdh_pf_async_channels':
drivers/net/ethernet/zte/dinghai/en_pf.c:507:24: error: 'ZXDH_VF_ASYNC_CHANNELS_NUM' undeclared (first use in this function)
507 | return ZXDH_VF_ASYNC_CHANNELS_NUM;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/zte/dinghai/en_pf.c:507:24: note: each undeclared identifier is reported only once for each function it appears in
drivers/net/ethernet/zte/dinghai/en_pf.c:509:16: error: 'ZXDH_ASYNC_CHANNELS_NUM' undeclared (first use in this function)
509 | return ZXDH_ASYNC_CHANNELS_NUM;
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/zte/dinghai/en_pf.c: In function 'zxdh_pf_irq_pools_init':
drivers/net/ethernet/zte/dinghai/en_pf.c:514:58: error: 'struct zxdh_core_dev' has no member named 'irq_table'
514 | struct zxdh_pf_irq_table *pf_irq_table = zxdh_dev->irq_table.priv;
| ^~
drivers/net/ethernet/zte/dinghai/en_pf.c:517:16: error: implicit declaration of function 'zxdh_irq_pool_alloc'; did you mean 'dma_pool_alloc'? [-Wimplicit-function-declaration]
517 | pool = zxdh_irq_pool_alloc(zxdh_dev, 0, zxdh_pf_async_channels(zxdh_dev),
| ^~~~~~~~~~~~~~~~~~~
| dma_pool_alloc
drivers/net/ethernet/zte/dinghai/en_pf.c:517:14: error: assignment to 'struct zxdh_irq_pool *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
517 | pool = zxdh_irq_pool_alloc(zxdh_dev, 0, zxdh_pf_async_channels(zxdh_dev),
| ^
drivers/net/ethernet/zte/dinghai/en_pf.c: In function 'zxdh_pf_irq_pools_destroy':
drivers/net/ethernet/zte/dinghai/en_pf.c:531:17: error: implicit declaration of function 'zxdh_irq_pool_free' [-Wimplicit-function-declaration]
531 | zxdh_irq_pool_free(pf_irq_table->async_pool);
| ^~~~~~~~~~~~~~~~~~
drivers/net/ethernet/zte/dinghai/en_pf.c: At top level:
>> drivers/net/ethernet/zte/dinghai/en_pf.c:534:5: warning: no previous prototype for 'zxdh_pf_irq_table_init' [-Wmissing-prototypes]
534 | int zxdh_pf_irq_table_init(struct zxdh_core_dev *zxdh_dev)
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/zte/dinghai/en_pf.c: In function 'zxdh_pf_irq_table_init':
drivers/net/ethernet/zte/dinghai/en_pf.c:536:49: error: 'struct zxdh_core_dev' has no member named 'irq_table'
536 | struct zxdh_irq_table *table = &zxdh_dev->irq_table;
| ^~
drivers/net/ethernet/zte/dinghai/en_pf.c:544:14: error: invalid use of undefined type 'struct zxdh_irq_table'
544 | table->priv = priv;
| ^~
drivers/net/ethernet/zte/dinghai/en_pf.c:547:29: error: 'ZXDH_VF_VQS_CHANNELS_NUM' undeclared (first use in this function)
547 | total_vec = ZXDH_VF_VQS_CHANNELS_NUM +
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/zte/dinghai/en_pf.c:548:29: error: 'ZXDH_VF_ASYNC_CHANNELS_NUM' undeclared (first use in this function)
548 | ZXDH_VF_ASYNC_CHANNELS_NUM + ZXDH_RDMA_CHANNELS_NUM;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/zte/dinghai/en_pf.c:548:58: error: 'ZXDH_RDMA_CHANNELS_NUM' undeclared (first use in this function)
548 | ZXDH_VF_ASYNC_CHANNELS_NUM + ZXDH_RDMA_CHANNELS_NUM;
| ^~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/zte/dinghai/en_pf.c:550:29: error: 'ZXDH_VQS_CHANNELS_NUM' undeclared (first use in this function)
550 | total_vec = ZXDH_VQS_CHANNELS_NUM + ZXDH_ASYNC_CHANNELS_NUM +
| ^~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/zte/dinghai/en_pf.c:550:53: error: 'ZXDH_ASYNC_CHANNELS_NUM' undeclared (first use in this function)
550 | total_vec = ZXDH_VQS_CHANNELS_NUM + ZXDH_ASYNC_CHANNELS_NUM +
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/zte/dinghai/en_pf.c: At top level:
>> drivers/net/ethernet/zte/dinghai/en_pf.c:572:6: warning: no previous prototype for 'zxdh_pf_irq_table_destroy' [-Wmissing-prototypes]
572 | void zxdh_pf_irq_table_destroy(struct zxdh_core_dev *zxdh_dev)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/zte/dinghai/en_pf.c: In function 'zxdh_pf_irq_table_destroy':
drivers/net/ethernet/zte/dinghai/en_pf.c:574:49: error: 'struct zxdh_core_dev' has no member named 'irq_table'
574 | struct zxdh_irq_table *table = &zxdh_dev->irq_table;
| ^~
drivers/net/ethernet/zte/dinghai/en_pf.c:576:18: error: invalid use of undefined type 'struct zxdh_irq_table'
576 | if (table->priv)
| ^~
drivers/net/ethernet/zte/dinghai/en_pf.c:577:48: error: invalid use of undefined type 'struct zxdh_irq_table'
577 | zxdh_pf_irq_pools_destroy(table->priv);
| ^~
drivers/net/ethernet/zte/dinghai/en_pf.c:578:21: error: invalid use of undefined type 'struct zxdh_irq_table'
578 | kvfree(table->priv);
| ^~
drivers/net/ethernet/zte/dinghai/en_pf.c:579:14: error: invalid use of undefined type 'struct zxdh_irq_table'
579 | table->priv = NULL;
| ^~
drivers/net/ethernet/zte/dinghai/en_pf.c: At top level:
>> drivers/net/ethernet/zte/dinghai/en_pf.c:584:18: warning: no previous prototype for 'zxdh_pf_async_irq_request' [-Wmissing-prototypes]
584 | struct zxdh_irq *zxdh_pf_async_irq_request(struct zxdh_core_dev *zxdh_dev)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/zte/dinghai/en_pf.c: In function 'zxdh_pf_async_irq_request':
drivers/net/ethernet/zte/dinghai/en_pf.c:586:58: error: 'struct zxdh_core_dev' has no member named 'irq_table'
586 | struct zxdh_pf_irq_table *pf_irq_table = zxdh_dev->irq_table.priv;
| ^~
drivers/net/ethernet/zte/dinghai/en_pf.c:588:16: error: implicit declaration of function 'zxdh_get_irq_of_pool' [-Wimplicit-function-declaration]
588 | return zxdh_get_irq_of_pool(pf_irq_table->async_pool);
| ^~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/zte/dinghai/en_pf.c:588:16: error: returning 'int' from a function with return type 'struct zxdh_irq *' makes pointer from integer without a cast [-Wint-conversion]
588 | return zxdh_get_irq_of_pool(pf_irq_table->async_pool);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/ethernet/zte/dinghai/en_pf.c: In function 'zxdh_pf_probe':
drivers/net/ethernet/zte/dinghai/en_pf.c:645:15: error: implicit declaration of function 'zxdh_pf_eq_table_init'; did you mean 'zxdh_pf_irq_table_init'? [-Wimplicit-function-declaration]
645 | ret = zxdh_pf_eq_table_init(zxdh_dev);
| ^~~~~~~~~~~~~~~~~~~~~
| zxdh_pf_irq_table_init
drivers/net/ethernet/zte/dinghai/en_pf.c:656:9: error: implicit declaration of function 'zxdh_pf_eq_table_destroy'; did you mean 'zxdh_pf_irq_table_destroy'? [-Wimplicit-function-declaration]
656 | zxdh_pf_eq_table_destroy(zxdh_dev);
| ^~~~~~~~~~~~~~~~~~~~~~~~
| zxdh_pf_irq_table_destroy
vim +/zxdh_pf_irq_table_init +534 drivers/net/ethernet/zte/dinghai/en_pf.c
533
> 534 int zxdh_pf_irq_table_init(struct zxdh_core_dev *zxdh_dev)
535 {
536 struct zxdh_irq_table *table = &zxdh_dev->irq_table;
537 struct zxdh_pf_irq_table *priv;
538 int vec_count;
539 int total_vec;
540
541 priv = kvzalloc_obj(*priv, GFP_KERNEL);
542 if (!priv)
543 return -ENOMEM;
544 table->priv = priv;
545
546 if (zxdh_pf_is_vf(zxdh_dev))
547 total_vec = ZXDH_VF_VQS_CHANNELS_NUM +
548 ZXDH_VF_ASYNC_CHANNELS_NUM + ZXDH_RDMA_CHANNELS_NUM;
549 else
550 total_vec = ZXDH_VQS_CHANNELS_NUM + ZXDH_ASYNC_CHANNELS_NUM +
551 ZXDH_RDMA_CHANNELS_NUM;
552
553 vec_count = pci_msix_vec_count(zxdh_dev->pdev);
554 if (vec_count < total_vec) {
555 dev_err(zxdh_dev->device,
556 "device provides %d MSI-X vectors, %d required\n",
557 vec_count, total_vec);
558 return vec_count < 0 ? vec_count : -ENOSPC;
559 }
560
561 total_vec = pci_alloc_irq_vectors(zxdh_dev->pdev, total_vec, total_vec,
562 PCI_IRQ_MSIX);
563 if (total_vec < 0) {
564 dev_err(zxdh_dev->device, "pci_alloc_irq_vectors failed: %d\n",
565 total_vec);
566 return total_vec;
567 }
568
569 return zxdh_pf_irq_pools_init(zxdh_dev);
570 }
571
> 572 void zxdh_pf_irq_table_destroy(struct zxdh_core_dev *zxdh_dev)
573 {
574 struct zxdh_irq_table *table = &zxdh_dev->irq_table;
575
576 if (table->priv)
577 zxdh_pf_irq_pools_destroy(table->priv);
578 kvfree(table->priv);
579 table->priv = NULL;
580 pci_free_irq_vectors(zxdh_dev->pdev);
581 }
582
583 /* Fetch a vector from the async pool for one async event queue. */
> 584 struct zxdh_irq *zxdh_pf_async_irq_request(struct zxdh_core_dev *zxdh_dev)
585 {
586 struct zxdh_pf_irq_table *pf_irq_table = zxdh_dev->irq_table.priv;
587
588 return zxdh_get_irq_of_pool(pf_irq_table->async_pool);
589 }
590
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2026-12-03 3:56 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-02 15:23 [PATCH net-next v7 0/2] dinghai: MSI-X interrupt pools and async event queue han.junyang
2026-12-02 15:26 ` [PATCH net-next v7 1/2] dinghai: add MSI-X interrupt pools han.junyang
2026-12-03 2:38 ` kernel test robot
2026-12-03 2:51 ` kernel test robot
2026-12-03 3:56 ` kernel test robot [this message]
2026-12-02 15:29 ` [PATCH net-next v7 2/2] dinghai: add async event queue for firmware notifications han.junyang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261203114347.bKDWYQkV-lkp@intel.com \
--to=lkp@intel.com \
--cc=andrew+netdev@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=han.chengfei@zte.com.cn \
--cc=han.junyang@zte.com.cn \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=pabeni@redhat.com \
--cc=ran.ming@zte.com.cn \
--cc=zhang.yanze@zte.com.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox