Hi "Björn,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on d0b3d2d7e50de5ce121f77a16df4c17e91b09421]
url:
https://github.com/0day-ci/linux/commits/Bj-rn-T-pel/Introduce-preferred-...
base: d0b3d2d7e50de5ce121f77a16df4c17e91b09421
config: x86_64-randconfig-r021-20201104 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
#
https://github.com/0day-ci/linux/commit/6b2287876cf30cbff97720767e185b6ae...
git remote add linux-review
https://github.com/0day-ci/linux
git fetch --no-tags linux-review
Bj-rn-T-pel/Introduce-preferred-busy-polling/20201105-183046
git checkout 6b2287876cf30cbff97720767e185b6aef2ddc7b
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from arch/x86/include/asm/bug.h:93,
from include/linux/bug.h:5,
from include/linux/elfcore.h:6,
from include/linux/crash_core.h:6,
from include/linux/kexec.h:18,
from include/linux/crash_dump.h:5,
from drivers/net/ethernet/qlogic/qede/qede_main.c:7:
drivers/net/ethernet/qlogic/qede/qede_main.c: In function 'qede_init_fp':
> drivers/net/ethernet/qlogic/qede/qede_main.c:1765:25: error:
expected identifier before numeric constant
1765 | fp->rxq->rxq_id.
0) < 0);
| ^
include/asm-generic/bug.h:119:25: note: in definition of macro 'WARN_ON'
119 | int __ret_warn_on = !!(condition); \
| ^~~~~~~~~
> drivers/net/ethernet/qlogic/qede/qede_main.c:1764:12: error: too
few arguments to function 'xdp_rxq_info_reg'
1764 |
WARN_ON(xdp_rxq_info_reg(&fp->rxq->xdp_rxq, edev->ndev,
| ^~~~~~~~~~~~~~~~
include/asm-generic/bug.h:119:25: note: in definition of macro 'WARN_ON'
119 | int __ret_warn_on = !!(condition); \
| ^~~~~~~~~
In file included from include/linux/netdevice.h:43,
from drivers/net/ethernet/qlogic/qede/qede_main.c:12:
include/net/xdp.h:214:5: note: declared here
214 | int xdp_rxq_info_reg(struct xdp_rxq_info *xdp_rxq,
| ^~~~~~~~~~~~~~~~
vim +1765 drivers/net/ethernet/qlogic/qede/qede_main.c
1730
1731 /* This function inits fp content and resets the SB, RXQ and TXQ structures */
1732 static void qede_init_fp(struct qede_dev *edev)
1733 {
1734 int queue_id, rxq_index = 0, txq_index = 0;
1735 struct qede_fastpath *fp;
1736 bool init_xdp = false;
1737
1738 for_each_queue(queue_id) {
1739 fp = &edev->fp_array[queue_id];
1740
1741 fp->edev = edev;
1742 fp->id = queue_id;
1743
1744 if (fp->type & QEDE_FASTPATH_XDP) {
1745 fp->xdp_tx->index = QEDE_TXQ_IDX_TO_XDP(edev,
1746 rxq_index);
1747 fp->xdp_tx->is_xdp = 1;
1748
1749 spin_lock_init(&fp->xdp_tx->xdp_tx_lock);
1750 init_xdp = true;
1751 }
1752
1753 if (fp->type & QEDE_FASTPATH_RX) {
1754 fp->rxq->rxq_id = rxq_index++;
1755
1756 /* Determine how to map buffers for this queue */
1757 if (fp->type & QEDE_FASTPATH_XDP)
1758 fp->rxq->data_direction = DMA_BIDIRECTIONAL;
1759 else
1760 fp->rxq->data_direction = DMA_FROM_DEVICE;
1761 fp->rxq->dev = &edev->pdev->dev;
1762
1763 /* Driver have no error path from here */
1764 WARN_ON(xdp_rxq_info_reg(&fp->rxq->xdp_rxq,
edev->ndev,
1765 fp->rxq->rxq_id. 0) < 0);
1766
1767 if (xdp_rxq_info_reg_mem_model(&fp->rxq->xdp_rxq,
1768 MEM_TYPE_PAGE_ORDER0,
1769 NULL)) {
1770 DP_NOTICE(edev,
1771 "Failed to register XDP memory model\n");
1772 }
1773 }
1774
1775 if (fp->type & QEDE_FASTPATH_TX) {
1776 int cos;
1777
1778 for_each_cos_in_txq(edev, cos) {
1779 struct qede_tx_queue *txq = &fp->txq[cos];
1780 u16 ndev_tx_id;
1781
1782 txq->cos = cos;
1783 txq->index = txq_index;
1784 ndev_tx_id = QEDE_TXQ_TO_NDEV_TXQ_ID(edev, txq);
1785 txq->ndev_txq_id = ndev_tx_id;
1786
1787 if (edev->dev_info.is_legacy)
1788 txq->is_legacy = true;
1789 txq->dev = &edev->pdev->dev;
1790 }
1791
1792 txq_index++;
1793 }
1794
1795 snprintf(fp->name, sizeof(fp->name), "%s-fp-%d",
1796 edev->ndev->name, queue_id);
1797 }
1798
1799 if (init_xdp) {
1800 edev->total_xdp_queues = QEDE_RSS_COUNT(edev);
1801 DP_INFO(edev, "Total XDP queues: %u\n", edev->total_xdp_queues);
1802 }
1803 }
1804
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org