lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202506200609.aTq7YfBa-lkp@intel.com>
Date: Fri, 20 Jun 2025 07:19:34 +0800
From: kernel test robot <lkp@...el.com>
To: Tanmay Jagdale <tanmay@...vell.com>, davem@...emloft.net,
	leon@...nel.org, horms@...nel.org, sgoutham@...vell.com,
	bbhushan2@...vell.com, herbert@...dor.apana.org.au
Cc: llvm@...ts.linux.dev, oe-kbuild-all@...ts.linux.dev,
	linux-crypto@...r.kernel.org, netdev@...r.kernel.org,
	Tanmay Jagdale <tanmay@...vell.com>
Subject: Re: [PATCH net-next v2 13/14] octeontx2-pf: ipsec: Manage NPC rules
 and SPI-to-SA table entries

Hi Tanmay,

kernel test robot noticed the following build errors:

[auto build test ERROR on net-next/main]

url:    https://github.com/intel-lab-lkp/linux/commits/Tanmay-Jagdale/crypto-octeontx2-Share-engine-group-info-with-AF-driver/20250618-193646
base:   net-next/main
patch link:    https://lore.kernel.org/r/20250618113020.130888-14-tanmay%40marvell.com
patch subject: [PATCH net-next v2 13/14] octeontx2-pf: ipsec: Manage NPC rules and SPI-to-SA table entries
config: um-randconfig-002-20250620 (https://download.01.org/0day-ci/archive/20250620/202506200609.aTq7YfBa-lkp@intel.com/config)
compiler: clang version 21.0.0git (https://github.com/llvm/llvm-project 875b36a8742437b95f623bab1e0332562c7b4b3f)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250620/202506200609.aTq7YfBa-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@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202506200609.aTq7YfBa-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c:9:
   In file included from include/linux/interrupt.h:11:
   In file included from include/linux/hardirq.h:11:
   In file included from arch/um/include/asm/hardirq.h:5:
   In file included from include/asm-generic/hardirq.h:17:
   In file included from include/linux/irq.h:20:
   In file included from include/linux/io.h:12:
   In file included from arch/um/include/asm/io.h:24:
   include/asm-generic/io.h:1175:55: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
    1175 |         return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port;
         |                                                   ~~~~~~~~~~ ^
   In file included from drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c:22:
   In file included from drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h:35:
   drivers/net/ethernet/marvell/octeontx2/nic/cn10k_ipsec.h:404:22: warning: no previous prototype for function 'cn10k_ipsec_process_cpt_metapkt' [-Wmissing-prototypes]
     404 | struct nix_wqe_rx_s *cn10k_ipsec_process_cpt_metapkt(struct otx2_nic *pfvf,
         |                      ^
   drivers/net/ethernet/marvell/octeontx2/nic/cn10k_ipsec.h:404:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
     404 | struct nix_wqe_rx_s *cn10k_ipsec_process_cpt_metapkt(struct otx2_nic *pfvf,
         | ^
         | static 
>> drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c:1808:3: error: call to undeclared function 'cn10k_ipsec_inb_disable_flows'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    1808 |                 cn10k_ipsec_inb_disable_flows(pf);
         |                 ^
   drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c:1808:3: note: did you mean 'cn10k_ipsec_inb_delete_flows'?
   drivers/net/ethernet/marvell/octeontx2/nic/cn10k_ipsec.h:413:1: note: 'cn10k_ipsec_inb_delete_flows' declared here
     413 | cn10k_ipsec_inb_delete_flows(struct otx2_nic *pfvf)
         | ^
   2 warnings and 1 error generated.


vim +/cn10k_ipsec_inb_disable_flows +1808 drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c

  1772	
  1773		if (!otx2_rep_dev(pf->pdev))
  1774			otx2_clean_qos_queues(pf);
  1775	
  1776		mutex_lock(&mbox->lock);
  1777		/* Disable backpressure */
  1778		if (!is_otx2_lbkvf(pf->pdev))
  1779			otx2_nix_config_bp(pf, false);
  1780		mutex_unlock(&mbox->lock);
  1781	
  1782		/* Disable RQs */
  1783		otx2_ctx_disable(mbox, NIX_AQ_CTYPE_RQ, false);
  1784	
  1785		/*Dequeue all CQEs */
  1786		for (qidx = 0; qidx < qset->cq_cnt; qidx++) {
  1787			cq = &qset->cq[qidx];
  1788			if (cq->cq_type == CQ_RX)
  1789				otx2_cleanup_rx_cqes(pf, cq, qidx);
  1790			else
  1791				otx2_cleanup_tx_cqes(pf, cq);
  1792		}
  1793		otx2_free_pending_sqe(pf);
  1794	
  1795		otx2_free_sq_res(pf);
  1796	
  1797		/* Free RQ buffer pointers*/
  1798		otx2_free_aura_ptr(pf, AURA_NIX_RQ);
  1799	
  1800		otx2_free_cq_res(pf);
  1801	
  1802		/* Free all ingress bandwidth profiles allocated */
  1803		if (!otx2_rep_dev(pf->pdev))
  1804			cn10k_free_all_ipolicers(pf);
  1805	
  1806		/* Delete Inbound IPSec flows if any SA's are installed */
  1807		if (!list_empty(&pf->ipsec.inb_sw_ctx_list))
> 1808			cn10k_ipsec_inb_disable_flows(pf);
  1809	
  1810		mutex_lock(&mbox->lock);
  1811	
  1812		/* Reset NIX LF */
  1813		free_req = otx2_mbox_alloc_msg_nix_lf_free(mbox);
  1814		if (free_req) {
  1815			free_req->flags = NIX_LF_DISABLE_FLOWS;
  1816			if (!(pf->flags & OTX2_FLAG_PF_SHUTDOWN))
  1817				free_req->flags |= NIX_LF_DONT_FREE_TX_VTAG;
  1818			if (otx2_sync_mbox_msg(mbox))
  1819				dev_err(pf->dev, "%s failed to free nixlf\n", __func__);
  1820		}
  1821		mutex_unlock(&mbox->lock);
  1822	
  1823		/* Disable NPA Pool and Aura hw context */
  1824		otx2_ctx_disable(mbox, NPA_AQ_CTYPE_POOL, true);
  1825		otx2_ctx_disable(mbox, NPA_AQ_CTYPE_AURA, true);
  1826		otx2_aura_pool_free(pf);
  1827	
  1828		mutex_lock(&mbox->lock);
  1829		/* Reset NPA LF */
  1830		req = otx2_mbox_alloc_msg_npa_lf_free(mbox);
  1831		if (req) {
  1832			if (otx2_sync_mbox_msg(mbox))
  1833				dev_err(pf->dev, "%s failed to free npalf\n", __func__);
  1834		}
  1835		mutex_unlock(&mbox->lock);
  1836	}
  1837	EXPORT_SYMBOL(otx2_free_hw_resources);
  1838	

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ