linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [linux-next:master 11916/12223] drivers/net/ethernet/broadcom/bnxt/bnxt.c:14028:9: error: call to undeclared function 'rps_may_expire_flow'; ISO C99 and later do not support implicit function declarations
@ 2024-01-03 18:35 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-01-03 18:35 UTC (permalink / raw)
  To: Michael Chan
  Cc: llvm, oe-kbuild-all, Linux Memory Management List,
	Vasundhara Volam, Andy Gospodarek, Pavan Chebbi

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   0fef202ac2f8e6d9ad21aead648278f1226b9053
commit: 59cde76f33fa4ae5cdc7f51ce87bab9e531ca183 [11916/12223] bnxt_en: Refactor filter insertion logic in bnxt_rx_flow_steer().
config: arm-randconfig-002-20240103 (https://download.01.org/0day-ci/archive/20240104/202401040200.5tvkIIgP-lkp@intel.com/config)
compiler: clang version 15.0.7 (https://github.com/llvm/llvm-project.git 8dfdcc7b7bf66834a761bd8de445840ef68e4d1a)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240104/202401040200.5tvkIIgP-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/202401040200.5tvkIIgP-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/net/ethernet/broadcom/bnxt/bnxt.c:14028:9: error: call to undeclared function 'rps_may_expire_flow'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]
                                   if (rps_may_expire_flow(bp->dev, fltr->base.rxq,
                                       ^
   1 error generated.


vim +/rps_may_expire_flow +14028 drivers/net/ethernet/broadcom/bnxt/bnxt.c

c0c050c58d8409 Michael Chan   2015-10-22  14012  
c0c050c58d8409 Michael Chan   2015-10-22  14013  static void bnxt_cfg_ntp_filters(struct bnxt *bp)
c0c050c58d8409 Michael Chan   2015-10-22  14014  {
c0c050c58d8409 Michael Chan   2015-10-22  14015  	int i;
c0c050c58d8409 Michael Chan   2015-10-22  14016  
c0c050c58d8409 Michael Chan   2015-10-22  14017  	for (i = 0; i < BNXT_NTP_FLTR_HASH_SIZE; i++) {
c0c050c58d8409 Michael Chan   2015-10-22  14018  		struct hlist_head *head;
c0c050c58d8409 Michael Chan   2015-10-22  14019  		struct hlist_node *tmp;
c0c050c58d8409 Michael Chan   2015-10-22  14020  		struct bnxt_ntuple_filter *fltr;
c0c050c58d8409 Michael Chan   2015-10-22  14021  		int rc;
c0c050c58d8409 Michael Chan   2015-10-22  14022  
c0c050c58d8409 Michael Chan   2015-10-22  14023  		head = &bp->ntp_fltr_hash_tbl[i];
992d38d2b988a7 Michael Chan   2023-12-22  14024  		hlist_for_each_entry_safe(fltr, tmp, head, base.hash) {
c0c050c58d8409 Michael Chan   2015-10-22  14025  			bool del = false;
c0c050c58d8409 Michael Chan   2015-10-22  14026  
992d38d2b988a7 Michael Chan   2023-12-22  14027  			if (test_bit(BNXT_FLTR_VALID, &fltr->base.state)) {
992d38d2b988a7 Michael Chan   2023-12-22 @14028  				if (rps_may_expire_flow(bp->dev, fltr->base.rxq,
c0c050c58d8409 Michael Chan   2015-10-22  14029  							fltr->flow_id,
992d38d2b988a7 Michael Chan   2023-12-22  14030  							fltr->base.sw_id)) {
c0c050c58d8409 Michael Chan   2015-10-22  14031  					bnxt_hwrm_cfa_ntuple_filter_free(bp,
c0c050c58d8409 Michael Chan   2015-10-22  14032  									 fltr);
c0c050c58d8409 Michael Chan   2015-10-22  14033  					del = true;
c0c050c58d8409 Michael Chan   2015-10-22  14034  				}
c0c050c58d8409 Michael Chan   2015-10-22  14035  			} else {
c0c050c58d8409 Michael Chan   2015-10-22  14036  				rc = bnxt_hwrm_cfa_ntuple_filter_alloc(bp,
c0c050c58d8409 Michael Chan   2015-10-22  14037  								       fltr);
c0c050c58d8409 Michael Chan   2015-10-22  14038  				if (rc)
c0c050c58d8409 Michael Chan   2015-10-22  14039  					del = true;
c0c050c58d8409 Michael Chan   2015-10-22  14040  				else
992d38d2b988a7 Michael Chan   2023-12-22  14041  					set_bit(BNXT_FLTR_VALID, &fltr->base.state);
c0c050c58d8409 Michael Chan   2015-10-22  14042  			}
c0c050c58d8409 Michael Chan   2015-10-22  14043  
c0c050c58d8409 Michael Chan   2015-10-22  14044  			if (del) {
c0c050c58d8409 Michael Chan   2015-10-22  14045  				spin_lock_bh(&bp->ntp_fltr_lock);
ee908d05dd2acd Michael Chan   2023-12-22  14046  				if (!test_and_clear_bit(BNXT_FLTR_INSERTED, &fltr->base.state)) {
ee908d05dd2acd Michael Chan   2023-12-22  14047  					spin_unlock_bh(&bp->ntp_fltr_lock);
ee908d05dd2acd Michael Chan   2023-12-22  14048  					continue;
ee908d05dd2acd Michael Chan   2023-12-22  14049  				}
992d38d2b988a7 Michael Chan   2023-12-22  14050  				hlist_del_rcu(&fltr->base.hash);
c0c050c58d8409 Michael Chan   2015-10-22  14051  				bp->ntp_fltr_count--;
c0c050c58d8409 Michael Chan   2015-10-22  14052  				spin_unlock_bh(&bp->ntp_fltr_lock);
bfeabf7e4615bf Michael Chan   2023-12-22  14053  				bnxt_del_l2_filter(bp, fltr->l2_fltr);
c0c050c58d8409 Michael Chan   2015-10-22  14054  				synchronize_rcu();
992d38d2b988a7 Michael Chan   2023-12-22  14055  				clear_bit(fltr->base.sw_id, bp->ntp_fltr_bmap);
c0c050c58d8409 Michael Chan   2015-10-22  14056  				kfree(fltr);
c0c050c58d8409 Michael Chan   2015-10-22  14057  			}
c0c050c58d8409 Michael Chan   2015-10-22  14058  		}
c0c050c58d8409 Michael Chan   2015-10-22  14059  	}
19241368443ff9 Jeffrey Huang  2016-02-26  14060  	if (test_and_clear_bit(BNXT_HWRM_PF_UNLOAD_SP_EVENT, &bp->sp_event))
9a005c3898aa07 Jonathan Lemon 2020-02-24  14061  		netdev_info(bp->dev, "Receive PF driver unload event!\n");
c0c050c58d8409 Michael Chan   2015-10-22  14062  }
c0c050c58d8409 Michael Chan   2015-10-22  14063  

:::::: The code at line 14028 was first introduced by commit
:::::: 992d38d2b988a7d71c2416dad9af2b769f51ac25 bnxt_en: Refactor bnxt_ntuple_filter structure.

:::::: TO: Michael Chan <michael.chan@broadcom.com>
:::::: CC: David S. Miller <davem@davemloft.net>

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-01-03 18:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-03 18:35 [linux-next:master 11916/12223] drivers/net/ethernet/broadcom/bnxt/bnxt.c:14028:9: error: call to undeclared function 'rps_may_expire_flow'; ISO C99 and later do not support implicit function declarations kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox