[xilinx-xlnx:master 490/599] drivers/staging/xilinx-tsn/xilinx_tsn_ep.c:573:11: error: 'struct axienet_local' has no member named 'qbv_irq'

kernel test robot lkp at intel.com
Wed Jun 29 13:38:33 PDT 2022


Hi Pranavi,

First bad commit (maybe != root cause):

tree:   https://github.com/Xilinx/linux-xlnx master
head:   7720c13d0e376a14ca4d4128ddf0d7e60c09ea85
commit: 01fee54ce6a611d5d65a5fc081dad522a0376f95 [490/599] net: xilinx: Move Xilinx TSN to staging
config: nds32-randconfig-r034-20220629 (https://download.01.org/0day-ci/archive/20220630/202206300405.R6GjyFzw-lkp@intel.com/config)
compiler: nds32le-linux-gcc (GCC) 11.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/Xilinx/linux-xlnx/commit/01fee54ce6a611d5d65a5fc081dad522a0376f95
        git remote add xilinx-xlnx https://github.com/Xilinx/linux-xlnx
        git fetch --no-tags xilinx-xlnx master
        git checkout 01fee54ce6a611d5d65a5fc081dad522a0376f95
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=nds32 SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp at intel.com>

All errors (new ones prefixed by >>):

   drivers/staging/xilinx-tsn/xilinx_tsn_ep.c: In function 'tsn_ep_probe':
>> drivers/staging/xilinx-tsn/xilinx_tsn_ep.c:573:11: error: 'struct axienet_local' has no member named 'qbv_irq'
     573 |         lp->qbv_irq = platform_get_irq_byname(pdev, irq_name);
         |           ^~
--
   drivers/staging/xilinx-tsn/xilinx_tsn_ip.c: In function 'axienet_tsn_select_queue':
   drivers/staging/xilinx-tsn/xilinx_tsn_ip.c:84:24: warning: unused variable 'hdr' [-Wunused-variable]
      84 |         struct ethhdr *hdr = (struct ethhdr *)skb->data;
         |                        ^~~
   drivers/staging/xilinx-tsn/xilinx_tsn_ip.c: In function 'axienet_tsn_probe':
>> drivers/staging/xilinx-tsn/xilinx_tsn_ip.c:171:11: error: 'struct axienet_local' has no member named 'current_rx_filter'
     171 |         lp->current_rx_filter = HWTSTAMP_FILTER_PTP_V2_L2_EVENT;
         |           ^~
>> drivers/staging/xilinx-tsn/xilinx_tsn_ip.c:173:11: error: 'struct axienet_local' has no member named 'ptp_rx_irq'
     173 |         lp->ptp_rx_irq = platform_get_irq_byname(pdev, irq_name);
         |           ^~
   In file included from include/linux/kernel.h:19,
                    from include/linux/list.h:9,
                    from include/linux/module.h:12,
                    from drivers/staging/xilinx-tsn/xilinx_tsn_ip.c:19:
   drivers/staging/xilinx-tsn/xilinx_tsn_ip.c:175:42: error: 'struct axienet_local' has no member named 'ptp_rx_irq'
     175 |         pr_info("ptp RX irq: %d %s\n", lp->ptp_rx_irq, irq_name);
         |                                          ^~
   include/linux/printk.h:418:33: note: in definition of macro 'printk_index_wrap'
     418 |                 _p_func(_fmt, ##__VA_ARGS__);                           \
         |                                 ^~~~~~~~~~~
   include/linux/printk.h:519:9: note: in expansion of macro 'printk'
     519 |         printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
         |         ^~~~~~
   drivers/staging/xilinx-tsn/xilinx_tsn_ip.c:175:9: note: in expansion of macro 'pr_info'
     175 |         pr_info("ptp RX irq: %d %s\n", lp->ptp_rx_irq, irq_name);
         |         ^~~~~~~
>> drivers/staging/xilinx-tsn/xilinx_tsn_ip.c:177:11: error: 'struct axienet_local' has no member named 'ptp_tx_irq'
     177 |         lp->ptp_tx_irq = platform_get_irq_byname(pdev, irq_name);
         |           ^~
   In file included from include/linux/kernel.h:19,
                    from include/linux/list.h:9,
                    from include/linux/module.h:12,
                    from drivers/staging/xilinx-tsn/xilinx_tsn_ip.c:19:
   drivers/staging/xilinx-tsn/xilinx_tsn_ip.c:178:42: error: 'struct axienet_local' has no member named 'ptp_tx_irq'
     178 |         pr_info("ptp TX irq: %d %s\n", lp->ptp_tx_irq, irq_name);
         |                                          ^~
   include/linux/printk.h:418:33: note: in definition of macro 'printk_index_wrap'
     418 |                 _p_func(_fmt, ##__VA_ARGS__);                           \
         |                                 ^~~~~~~~~~~
   include/linux/printk.h:519:9: note: in expansion of macro 'printk'
     519 |         printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
         |         ^~~~~~
   drivers/staging/xilinx-tsn/xilinx_tsn_ip.c:178:9: note: in expansion of macro 'pr_info'
     178 |         pr_info("ptp TX irq: %d %s\n", lp->ptp_tx_irq, irq_name);
         |         ^~~~~~~
>> drivers/staging/xilinx-tsn/xilinx_tsn_ip.c:181:11: error: 'struct axienet_local' has no member named 'qbv_irq'
     181 |         lp->qbv_irq = platform_get_irq_byname(pdev, irq_name);
         |           ^~
   drivers/staging/xilinx-tsn/xilinx_tsn_ip.c:184:15: error: 'struct axienet_local' has no member named 'qbv_irq'
     184 |         if (lp->qbv_irq > 0)
         |               ^~
   In file included from include/linux/kernel.h:19,
                    from include/linux/list.h:9,
                    from include/linux/module.h:12,
                    from drivers/staging/xilinx-tsn/xilinx_tsn_ip.c:19:
   drivers/staging/xilinx-tsn/xilinx_tsn_ip.c:185:47: error: 'struct axienet_local' has no member named 'qbv_irq'
     185 |                 pr_info("qbv_irq: %d %s\n", lp->qbv_irq, irq_name);
         |                                               ^~
   include/linux/printk.h:418:33: note: in definition of macro 'printk_index_wrap'
     418 |                 _p_func(_fmt, ##__VA_ARGS__);                           \
         |                                 ^~~~~~~~~~~
   include/linux/printk.h:519:9: note: in expansion of macro 'printk'
     519 |         printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
         |         ^~~~~~
   drivers/staging/xilinx-tsn/xilinx_tsn_ip.c:185:17: note: in expansion of macro 'pr_info'
     185 |                 pr_info("qbv_irq: %d %s\n", lp->qbv_irq, irq_name);
         |                 ^~~~~~~
>> drivers/staging/xilinx-tsn/xilinx_tsn_ip.c:190:17: error: implicit declaration of function 'axienet_ptp_timer_probe'; did you mean 'axienet_tsn_probe'? [-Werror=implicit-function-declaration]
     190 |                 axienet_ptp_timer_probe((lp->regs + XAE_RTC_OFFSET), pdev);
         |                 ^~~~~~~~~~~~~~~~~~~~~~~
         |                 axienet_tsn_probe
>> drivers/staging/xilinx-tsn/xilinx_tsn_ip.c:190:53: error: 'XAE_RTC_OFFSET' undeclared (first use in this function); did you mean 'XAE_TC_OFFSET'?
     190 |                 axienet_ptp_timer_probe((lp->regs + XAE_RTC_OFFSET), pdev);
         |                                                     ^~~~~~~~~~~~~~
         |                                                     XAE_TC_OFFSET
   drivers/staging/xilinx-tsn/xilinx_tsn_ip.c:190:53: note: each undeclared identifier is reported only once for each function it appears in
   drivers/staging/xilinx-tsn/xilinx_tsn_ip.c:158:23: warning: unused variable 'qbv_size' [-Wunused-variable]
     158 |         u32 qbv_addr, qbv_size;
         |                       ^~~~~~~~
   drivers/staging/xilinx-tsn/xilinx_tsn_ip.c:158:13: warning: unused variable 'qbv_addr' [-Wunused-variable]
     158 |         u32 qbv_addr, qbv_size;
         |             ^~~~~~~~
   In file included from include/linux/mm_types.h:16,
                    from include/linux/buildid.h:5,
                    from include/linux/module.h:14,
                    from drivers/staging/xilinx-tsn/xilinx_tsn_ip.c:19:
   drivers/staging/xilinx-tsn/xilinx_tsn_ip.c: In function 'axienet_tsn_open':
>> drivers/staging/xilinx-tsn/xilinx_tsn_ip.c:340:22: error: 'struct axienet_local' has no member named 'tx_tstamp_work'
     340 |         INIT_WORK(&lp->tx_tstamp_work, axienet_tx_tstamp);
         |                      ^~
   include/linux/workqueue.h:237:30: note: in definition of macro '__INIT_WORK'
     237 |                 __init_work((_work), _onstack);                         \
         |                              ^~~~~
   drivers/staging/xilinx-tsn/xilinx_tsn_ip.c:340:9: note: in expansion of macro 'INIT_WORK'
     340 |         INIT_WORK(&lp->tx_tstamp_work, axienet_tx_tstamp);
         |         ^~~~~~~~~
>> drivers/staging/xilinx-tsn/xilinx_tsn_ip.c:340:22: error: 'struct axienet_local' has no member named 'tx_tstamp_work'
     340 |         INIT_WORK(&lp->tx_tstamp_work, axienet_tx_tstamp);
         |                      ^~
   include/linux/workqueue.h:238:18: note: in definition of macro '__INIT_WORK'
     238 |                 (_work)->data = (atomic_long_t) WORK_DATA_INIT();       \
         |                  ^~~~~
   drivers/staging/xilinx-tsn/xilinx_tsn_ip.c:340:9: note: in expansion of macro 'INIT_WORK'
     340 |         INIT_WORK(&lp->tx_tstamp_work, axienet_tx_tstamp);
         |         ^~~~~~~~~
>> drivers/staging/xilinx-tsn/xilinx_tsn_ip.c:340:22: error: 'struct axienet_local' has no member named 'tx_tstamp_work'
     340 |         INIT_WORK(&lp->tx_tstamp_work, axienet_tx_tstamp);
         |                      ^~
   include/linux/workqueue.h:239:34: note: in definition of macro '__INIT_WORK'
     239 |                 INIT_LIST_HEAD(&(_work)->entry);                        \
         |                                  ^~~~~
   drivers/staging/xilinx-tsn/xilinx_tsn_ip.c:340:9: note: in expansion of macro 'INIT_WORK'
     340 |         INIT_WORK(&lp->tx_tstamp_work, axienet_tx_tstamp);
         |         ^~~~~~~~~
>> drivers/staging/xilinx-tsn/xilinx_tsn_ip.c:340:22: error: 'struct axienet_local' has no member named 'tx_tstamp_work'
     340 |         INIT_WORK(&lp->tx_tstamp_work, axienet_tx_tstamp);
         |                      ^~
   include/linux/workqueue.h:240:18: note: in definition of macro '__INIT_WORK'
     240 |                 (_work)->func = (_func);                                \
         |                  ^~~~~
   drivers/staging/xilinx-tsn/xilinx_tsn_ip.c:340:9: note: in expansion of macro 'INIT_WORK'
     340 |         INIT_WORK(&lp->tx_tstamp_work, axienet_tx_tstamp);
         |         ^~~~~~~~~
>> drivers/staging/xilinx-tsn/xilinx_tsn_ip.c:340:40: error: 'axienet_tx_tstamp' undeclared (first use in this function); did you mean 'axienet_tsn_stop'?
     340 |         INIT_WORK(&lp->tx_tstamp_work, axienet_tx_tstamp);
         |                                        ^~~~~~~~~~~~~~~~~
   include/linux/workqueue.h:240:34: note: in definition of macro '__INIT_WORK'
     240 |                 (_work)->func = (_func);                                \
         |                                  ^~~~~
   drivers/staging/xilinx-tsn/xilinx_tsn_ip.c:340:9: note: in expansion of macro 'INIT_WORK'
     340 |         INIT_WORK(&lp->tx_tstamp_work, axienet_tx_tstamp);
         |         ^~~~~~~~~
>> drivers/staging/xilinx-tsn/xilinx_tsn_ip.c:341:32: error: 'struct axienet_local' has no member named 'ptp_txq'
     341 |         skb_queue_head_init(&lp->ptp_txq);
         |                                ^~
>> drivers/staging/xilinx-tsn/xilinx_tsn_ip.c:343:11: error: 'struct axienet_local' has no member named 'ptp_rx_hw_pointer'
     343 |         lp->ptp_rx_hw_pointer = 0;
         |           ^~
>> drivers/staging/xilinx-tsn/xilinx_tsn_ip.c:344:11: error: 'struct axienet_local' has no member named 'ptp_rx_sw_pointer'
     344 |         lp->ptp_rx_sw_pointer = 0xff;
         |           ^~
>> drivers/staging/xilinx-tsn/xilinx_tsn_ip.c:346:25: error: 'PTP_RX_CONTROL_OFFSET' undeclared (first use in this function); did you mean 'PSFP_CONTROL_OFFSET'?
     346 |         axienet_iow(lp, PTP_RX_CONTROL_OFFSET, PTP_RX_PACKET_CLEAR);
         |                         ^~~~~~~~~~~~~~~~~~~~~
         |                         PSFP_CONTROL_OFFSET
>> drivers/staging/xilinx-tsn/xilinx_tsn_ip.c:346:48: error: 'PTP_RX_PACKET_CLEAR' undeclared (first use in this function); did you mean 'PTR_TO_PACKET_END'?
     346 |         axienet_iow(lp, PTP_RX_CONTROL_OFFSET, PTP_RX_PACKET_CLEAR);
         |                                                ^~~~~~~~~~~~~~~~~~~
         |                                                PTR_TO_PACKET_END
   drivers/staging/xilinx-tsn/xilinx_tsn_ip.c:348:29: error: 'struct axienet_local' has no member named 'ptp_rx_irq'
     348 |         ret = request_irq(lp->ptp_rx_irq, axienet_ptp_rx_irq,
         |                             ^~
>> drivers/staging/xilinx-tsn/xilinx_tsn_ip.c:348:43: error: 'axienet_ptp_rx_irq' undeclared (first use in this function); did you mean 'axienet_rx_irq'?
     348 |         ret = request_irq(lp->ptp_rx_irq, axienet_ptp_rx_irq,
         |                                           ^~~~~~~~~~~~~~~~~~
         |                                           axienet_rx_irq
   drivers/staging/xilinx-tsn/xilinx_tsn_ip.c:353:29: error: 'struct axienet_local' has no member named 'ptp_tx_irq'
     353 |         ret = request_irq(lp->ptp_tx_irq, axienet_ptp_tx_irq,
         |                             ^~
>> drivers/staging/xilinx-tsn/xilinx_tsn_ip.c:353:43: error: 'axienet_ptp_tx_irq' undeclared (first use in this function); did you mean 'axienet_tx_irq'?
     353 |         ret = request_irq(lp->ptp_tx_irq, axienet_ptp_tx_irq,
         |                                           ^~~~~~~~~~~~~~~~~~
         |                                           axienet_tx_irq
   drivers/staging/xilinx-tsn/xilinx_tsn_ip.c:366:20: error: 'struct axienet_local' has no member named 'ptp_rx_irq'
     366 |         free_irq(lp->ptp_rx_irq, ndev);
         |                    ^~
   drivers/staging/xilinx-tsn/xilinx_tsn_ip.c: In function 'axienet_tsn_stop':
   drivers/staging/xilinx-tsn/xilinx_tsn_ip.c:375:20: error: 'struct axienet_local' has no member named 'ptp_tx_irq'
     375 |         free_irq(lp->ptp_tx_irq, ndev);
         |                    ^~
   drivers/staging/xilinx-tsn/xilinx_tsn_ip.c:376:20: error: 'struct axienet_local' has no member named 'ptp_rx_irq'
     376 |         free_irq(lp->ptp_rx_irq, ndev);
         |                    ^~
   cc1: some warnings being treated as errors


vim +573 drivers/staging/xilinx-tsn/xilinx_tsn_ep.c

1a67745a47fc96 drivers/net/ethernet/xilinx/xilinx_tsn_ep.c Pranavi Somisetty 2020-09-10  571  
1a67745a47fc96 drivers/net/ethernet/xilinx/xilinx_tsn_ep.c Pranavi Somisetty 2020-09-10  572  	sprintf(irq_name, "tsn_ep_scheduler_irq");
1a67745a47fc96 drivers/net/ethernet/xilinx/xilinx_tsn_ep.c Pranavi Somisetty 2020-09-10 @573  	lp->qbv_irq = platform_get_irq_byname(pdev, irq_name);
0b32bd4ad9b260 drivers/net/ethernet/xilinx/xilinx_tsn_ep.c Pranavi Somisetty 2022-04-04  574  #ifdef CONFIG_XILINX_TSN_QBV
1a67745a47fc96 drivers/net/ethernet/xilinx/xilinx_tsn_ep.c Pranavi Somisetty 2020-09-10  575  	axienet_qbv_init(ndev);
0b32bd4ad9b260 drivers/net/ethernet/xilinx/xilinx_tsn_ep.c Pranavi Somisetty 2022-04-04  576  #endif
b9af3bf71cb604 drivers/net/ethernet/xilinx/xilinx_tsn_ep.c Saurabh Sengar    2017-06-02  577  
b9af3bf71cb604 drivers/net/ethernet/xilinx/xilinx_tsn_ep.c Saurabh Sengar    2017-06-02  578  	ret = register_netdev(lp->ndev);
b5fc7bed7b6a7f drivers/net/ethernet/xilinx/xilinx_tsn_ep.c Pranavi Somisetty 2022-04-04  579  	if (ret) {
b9af3bf71cb604 drivers/net/ethernet/xilinx/xilinx_tsn_ep.c Saurabh Sengar    2017-06-02  580  		dev_err(lp->dev, "register_netdev() error (%i)\n", ret);
b5fc7bed7b6a7f drivers/net/ethernet/xilinx/xilinx_tsn_ep.c Pranavi Somisetty 2022-04-04  581  		goto free_netdev;
b5fc7bed7b6a7f drivers/net/ethernet/xilinx/xilinx_tsn_ep.c Pranavi Somisetty 2022-04-04  582  	}
b9af3bf71cb604 drivers/net/ethernet/xilinx/xilinx_tsn_ep.c Saurabh Sengar    2017-06-02  583  	return ret;
b9af3bf71cb604 drivers/net/ethernet/xilinx/xilinx_tsn_ep.c Saurabh Sengar    2017-06-02  584  
b9af3bf71cb604 drivers/net/ethernet/xilinx/xilinx_tsn_ep.c Saurabh Sengar    2017-06-02  585  free_netdev:
b9af3bf71cb604 drivers/net/ethernet/xilinx/xilinx_tsn_ep.c Saurabh Sengar    2017-06-02  586  	free_netdev(ndev);
b9af3bf71cb604 drivers/net/ethernet/xilinx/xilinx_tsn_ep.c Saurabh Sengar    2017-06-02  587  
b9af3bf71cb604 drivers/net/ethernet/xilinx/xilinx_tsn_ep.c Saurabh Sengar    2017-06-02  588  	return ret;
b9af3bf71cb604 drivers/net/ethernet/xilinx/xilinx_tsn_ep.c Saurabh Sengar    2017-06-02  589  }
b9af3bf71cb604 drivers/net/ethernet/xilinx/xilinx_tsn_ep.c Saurabh Sengar    2017-06-02  590  

:::::: The code at line 573 was first introduced by commit
:::::: 1a67745a47fc9601447f7d8aff40ddb1023848d5 net: xilinx: Access qdv address and associated properties separately

:::::: TO: Pranavi Somisetty <pranavi.somisetty at xilinx.com>
:::::: CC: Michal Simek <michal.simek at xilinx.com>

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp



More information about the linux-arm-kernel mailing list