All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: cros-kernel-buildreports@googlegroups.com
Cc: oe-kbuild-all@lists.linux.dev
Subject: [android-common:android17-6.18-2026-06 2/2] drivers/net/ethernet/marvell/octeontx2/nic/cn10k_ipsec.c:954:6: error: call to undeclared function 'xfrm_input_state'; ISO C99 and later do not support implicit function declarations
Date: Thu, 06 Aug 2026 09:27:40 +0800	[thread overview]
Message-ID: <202608060918.GNiRo5An-lkp@intel.com> (raw)

tree:   https://android.googlesource.com/kernel/common android17-6.18-2026-06
head:   11fe19e75a18adc0a15fc1fb837623db140f5ac7
commit: 3e1da3739d68558bacc60ea5f469fbddaf529c32 [2/2] ANDROID: GKI: Add GKI_HIDDEN_XFRM_OFFLOAD_CONFIGS
config: arm64-randconfig-004-20260806 (https://download.01.org/0day-ci/archive/20260806/202608060918.GNiRo5An-lkp@intel.com/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project bacfe2950f8218268fcc0a8765644ea0c15f0360)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260806/202608060918.GNiRo5An-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/202608060918.GNiRo5An-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from drivers/net/ethernet/marvell/octeontx2/nic/cn10k_ipsec.c:7:
   include/net/xfrm.h:2088:30: error: no member named 'xfrm' in 'struct dst_entry'
    2088 |         struct xfrm_state *x = dst->xfrm;
         |                                ~~~  ^
   include/net/xfrm.h:2095:46: error: no member named 'xfrm' in 'struct dst_entry'
    2095 |         if (!x->xso.offload_handle && !xdst->child->xfrm)
         |                                        ~~~~~~~~~~~  ^
   include/net/xfrm.h:2098:20: error: no member named 'xfrm' in 'struct dst_entry'
    2098 |             !xdst->child->xfrm)
         |              ~~~~~~~~~~~  ^
>> drivers/net/ethernet/marvell/octeontx2/nic/cn10k_ipsec.c:954:6: error: call to undeclared function 'xfrm_input_state'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
     954 |         x = xfrm_input_state(skb);
         |             ^
   drivers/net/ethernet/marvell/octeontx2/nic/cn10k_ipsec.c:954:6: note: did you mean 'xfrm_init_state'?
   include/net/xfrm.h:1776:5: note: 'xfrm_init_state' declared here
    1776 | int xfrm_init_state(struct xfrm_state *x);
         |     ^
>> drivers/net/ethernet/marvell/octeontx2/nic/cn10k_ipsec.c:954:4: error: incompatible integer to pointer conversion assigning to 'struct xfrm_state *' from 'int' [-Wint-conversion]
     954 |         x = xfrm_input_state(skb);
         |           ^ ~~~~~~~~~~~~~~~~~~~~~
   5 errors generated.

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for CAN_RX_OFFLOAD
   Depends on [n]: NETDEVICES [=y] && CAN_DEV [=n] && CAN_NETLINK [=n]
   Selected by [y]:
   - GKI_HIDDEN_MCP251XFD_CONFIGS [=y]
   WARNING: unmet direct dependencies detected for WEXT_PROC
   Depends on [n]: NET [=y] && WIRELESS [=y] && PROC_FS [=n] && WEXT_CORE [=y]
   Selected by [y]:
   - GKI_LEGACY_WEXT_ALLCONFIG [=y]


vim +/xfrm_input_state +954 drivers/net/ethernet/marvell/octeontx2/nic/cn10k_ipsec.c

6a77a158848a8c Bharat Bhushan 2024-12-04  929  
6a77a158848a8c Bharat Bhushan 2024-12-04  930  bool cn10k_ipsec_transmit(struct otx2_nic *pf, struct netdev_queue *txq,
6a77a158848a8c Bharat Bhushan 2024-12-04  931  			  struct otx2_snd_queue *sq, struct sk_buff *skb,
6a77a158848a8c Bharat Bhushan 2024-12-04  932  			  int num_segs, int size)
6a77a158848a8c Bharat Bhushan 2024-12-04  933  {
6a77a158848a8c Bharat Bhushan 2024-12-04  934  	struct cpt_inst_s inst;
6a77a158848a8c Bharat Bhushan 2024-12-04  935  	struct cpt_res_s *res;
6a77a158848a8c Bharat Bhushan 2024-12-04  936  	struct xfrm_state *x;
6a77a158848a8c Bharat Bhushan 2024-12-04  937  	struct qmem *sa_info;
6a77a158848a8c Bharat Bhushan 2024-12-04  938  	dma_addr_t dptr_iova;
6a77a158848a8c Bharat Bhushan 2024-12-04  939  	struct sec_path *sp;
6a77a158848a8c Bharat Bhushan 2024-12-04  940  	u8 encap_offset;
6a77a158848a8c Bharat Bhushan 2024-12-04  941  	u8 auth_offset;
6a77a158848a8c Bharat Bhushan 2024-12-04  942  	u8 gthr_size;
6a77a158848a8c Bharat Bhushan 2024-12-04  943  	u8 iv_offset;
6a77a158848a8c Bharat Bhushan 2024-12-04  944  	u16 dlen;
6a77a158848a8c Bharat Bhushan 2024-12-04  945  
6a77a158848a8c Bharat Bhushan 2024-12-04  946  	/* Check for IPSEC offload enabled */
6a77a158848a8c Bharat Bhushan 2024-12-04  947  	if (!(pf->flags & OTX2_FLAG_IPSEC_OFFLOAD_ENABLED))
6a77a158848a8c Bharat Bhushan 2024-12-04  948  		goto drop;
6a77a158848a8c Bharat Bhushan 2024-12-04  949  
6a77a158848a8c Bharat Bhushan 2024-12-04  950  	sp = skb_sec_path(skb);
6a77a158848a8c Bharat Bhushan 2024-12-04  951  	if (unlikely(!sp->len))
6a77a158848a8c Bharat Bhushan 2024-12-04  952  		goto drop;
6a77a158848a8c Bharat Bhushan 2024-12-04  953  
6a77a158848a8c Bharat Bhushan 2024-12-04 @954  	x = xfrm_input_state(skb);

:::::: The code at line 954 was first introduced by commit
:::::: 6a77a158848a8c68930df27b8840660db8531222 cn10k-ipsec: Process outbound ipsec crypto offload

:::::: TO: Bharat Bhushan <bbhushan2@marvell.com>
:::::: CC: David S. Miller <davem@davemloft.net>

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

                 reply	other threads:[~2026-08-06  1:28 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=202608060918.GNiRo5An-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=cros-kernel-buildreports@googlegroups.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.