All of lore.kernel.org
 help / color / mirror / Atom feed
* [android-common:android17-6.18 1/1] include/linux/skbuff.h:5067:1: warning: control reaches end of non-void function
@ 2026-10-24  5:16 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-10-24  5:16 UTC (permalink / raw)
  To: cros-kernel-buildreports; +Cc: oe-kbuild-all

tree:   https://android.googlesource.com/kernel/common android17-6.18
head:   1c132d615b94090d2788af4407b21c6d319731e2
commit: 3e1da3739d68558bacc60ea5f469fbddaf529c32 [1/1] ANDROID: GKI: Add GKI_HIDDEN_XFRM_OFFLOAD_CONFIGS
config: arm-randconfig-1002-20261020 (https://download.01.org/0day-ci/archive/20261024/202610241313.lzRTTVmS-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 11.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261024/202610241313.lzRTTVmS-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/202610241313.lzRTTVmS-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from include/net/xfrm.h:9,
                    from net/xfrm/xfrm_replay.c:10:
   include/linux/skbuff.h: In function 'secpath_exists':
   include/linux/skbuff.h:5005:16: error: implicit declaration of function 'skb_ext_exist'; did you mean 'skb_ext_reset'? [-Werror=implicit-function-declaration]
    5005 |         return skb_ext_exist(skb, SKB_EXT_SEC_PATH);
         |                ^~~~~~~~~~~~~
         |                skb_ext_reset
   include/linux/skbuff.h:5005:35: error: 'SKB_EXT_SEC_PATH' undeclared (first use in this function)
    5005 |         return skb_ext_exist(skb, SKB_EXT_SEC_PATH);
         |                                   ^~~~~~~~~~~~~~~~
   include/linux/skbuff.h:5005:35: note: each undeclared identifier is reported only once for each function it appears in
   include/linux/skbuff.h: In function 'skb_sec_path':
   include/linux/skbuff.h:5063:16: error: implicit declaration of function 'skb_ext_find'; did you mean 'skb_ext_copy'? [-Werror=implicit-function-declaration]
    5063 |         return skb_ext_find(skb, SKB_EXT_SEC_PATH);
         |                ^~~~~~~~~~~~
         |                skb_ext_copy
   include/linux/skbuff.h:5063:34: error: 'SKB_EXT_SEC_PATH' undeclared (first use in this function)
    5063 |         return skb_ext_find(skb, SKB_EXT_SEC_PATH);
         |                                  ^~~~~~~~~~~~~~~~
   In file included from net/xfrm/xfrm_replay.c:10:
   include/net/xfrm.h: In function 'secpath_reset':
   include/net/xfrm.h:1179:26: error: 'SKB_EXT_SEC_PATH' undeclared (first use in this function)
    1179 |         skb_ext_del(skb, SKB_EXT_SEC_PATH);
         |                          ^~~~~~~~~~~~~~~~
   In file included from include/net/xfrm.h:9,
                    from net/xfrm/xfrm_replay.c:10:
   include/linux/skbuff.h: In function 'skb_sec_path':
>> include/linux/skbuff.h:5067:1: warning: control reaches end of non-void function [-Wreturn-type]
    5067 | }
         | ^
   cc1: some warnings being treated as errors
--
   In file included from include/net/net_namespace.h:43,
                    from include/linux/netdevice.h:38,
                    from net/xfrm/xfrm_input.c:16:
   include/linux/skbuff.h: In function 'secpath_exists':
   include/linux/skbuff.h:5005:16: error: implicit declaration of function 'skb_ext_exist'; did you mean 'skb_ext_reset'? [-Werror=implicit-function-declaration]
    5005 |         return skb_ext_exist(skb, SKB_EXT_SEC_PATH);
         |                ^~~~~~~~~~~~~
         |                skb_ext_reset
   include/linux/skbuff.h:5005:35: error: 'SKB_EXT_SEC_PATH' undeclared (first use in this function)
    5005 |         return skb_ext_exist(skb, SKB_EXT_SEC_PATH);
         |                                   ^~~~~~~~~~~~~~~~
   include/linux/skbuff.h:5005:35: note: each undeclared identifier is reported only once for each function it appears in
   include/linux/skbuff.h: In function 'skb_sec_path':
   include/linux/skbuff.h:5063:16: error: implicit declaration of function 'skb_ext_find'; did you mean 'skb_ext_copy'? [-Werror=implicit-function-declaration]
    5063 |         return skb_ext_find(skb, SKB_EXT_SEC_PATH);
         |                ^~~~~~~~~~~~
         |                skb_ext_copy
   include/linux/skbuff.h:5063:34: error: 'SKB_EXT_SEC_PATH' undeclared (first use in this function)
    5063 |         return skb_ext_find(skb, SKB_EXT_SEC_PATH);
         |                                  ^~~~~~~~~~~~~~~~
   In file included from net/xfrm/xfrm_input.c:20:
   include/net/xfrm.h: In function 'secpath_reset':
   include/net/xfrm.h:1179:26: error: 'SKB_EXT_SEC_PATH' undeclared (first use in this function)
    1179 |         skb_ext_del(skb, SKB_EXT_SEC_PATH);
         |                          ^~~~~~~~~~~~~~~~
   net/xfrm/xfrm_input.c: In function 'secpath_set':
   net/xfrm/xfrm_input.c:122:55: error: 'SKB_EXT_SEC_PATH' undeclared (first use in this function)
     122 |         struct sec_path *sp, *tmp = skb_ext_find(skb, SKB_EXT_SEC_PATH);
         |                                                       ^~~~~~~~~~~~~~~~
   net/xfrm/xfrm_input.c:124:14: error: implicit declaration of function 'skb_ext_add'; did you mean 'skb_ext_del'? [-Werror=implicit-function-declaration]
     124 |         sp = skb_ext_add(skb, SKB_EXT_SEC_PATH);
         |              ^~~~~~~~~~~
         |              skb_ext_del
   In file included from include/net/net_namespace.h:43,
                    from include/linux/netdevice.h:38,
                    from net/xfrm/xfrm_input.c:16:
   include/linux/skbuff.h: In function 'skb_sec_path':
>> include/linux/skbuff.h:5067:1: warning: control reaches end of non-void function [-Wreturn-type]
    5067 | }
         | ^
   cc1: some warnings being treated as errors
--
   In file included from include/net/net_namespace.h:43,
                    from include/linux/netdevice.h:38,
                    from net/xfrm/xfrm_output.c:10:
   include/linux/skbuff.h: In function 'secpath_exists':
   include/linux/skbuff.h:5005:16: error: implicit declaration of function 'skb_ext_exist'; did you mean 'skb_ext_reset'? [-Werror=implicit-function-declaration]
    5005 |         return skb_ext_exist(skb, SKB_EXT_SEC_PATH);
         |                ^~~~~~~~~~~~~
         |                skb_ext_reset
   include/linux/skbuff.h:5005:35: error: 'SKB_EXT_SEC_PATH' undeclared (first use in this function)
    5005 |         return skb_ext_exist(skb, SKB_EXT_SEC_PATH);
         |                                   ^~~~~~~~~~~~~~~~
   include/linux/skbuff.h:5005:35: note: each undeclared identifier is reported only once for each function it appears in
   include/linux/skbuff.h: In function 'skb_sec_path':
   include/linux/skbuff.h:5063:16: error: implicit declaration of function 'skb_ext_find'; did you mean 'skb_ext_copy'? [-Werror=implicit-function-declaration]
    5063 |         return skb_ext_find(skb, SKB_EXT_SEC_PATH);
         |                ^~~~~~~~~~~~
         |                skb_ext_copy
   include/linux/skbuff.h:5063:34: error: 'SKB_EXT_SEC_PATH' undeclared (first use in this function)
    5063 |         return skb_ext_find(skb, SKB_EXT_SEC_PATH);
         |                                  ^~~~~~~~~~~~~~~~
   In file included from net/xfrm/xfrm_output.c:19:
   include/net/xfrm.h: In function 'secpath_reset':
   include/net/xfrm.h:1179:26: error: 'SKB_EXT_SEC_PATH' undeclared (first use in this function)
    1179 |         skb_ext_del(skb, SKB_EXT_SEC_PATH);
         |                          ^~~~~~~~~~~~~~~~
   net/xfrm/xfrm_output.c: In function 'xfrm4_tunnel_encap_add':
   net/xfrm/xfrm_output.c:313:9: error: implicit declaration of function 'ip_select_ident'; did you mean 'ipv6_select_ident'? [-Werror=implicit-function-declaration]
     313 |         ip_select_ident(dev_net(dst->dev), skb, NULL);
         |         ^~~~~~~~~~~~~~~
         |         ipv6_select_ident
   net/xfrm/xfrm_output.c: In function 'xfrm4_tunnel_check_size':
   net/xfrm/xfrm_output.c:841:49: error: implicit declaration of function 'ip_skb_dst_mtu' [-Werror=implicit-function-declaration]
     841 |              !skb_gso_validate_network_len(skb, ip_skb_dst_mtu(skb->sk, skb)))) {
         |                                                 ^~~~~~~~~~~~~~
   In file included from include/net/net_namespace.h:43,
                    from include/linux/netdevice.h:38,
                    from net/xfrm/xfrm_output.c:10:
   include/linux/skbuff.h: In function 'skb_sec_path':
>> include/linux/skbuff.h:5067:1: warning: control reaches end of non-void function [-Wreturn-type]
    5067 | }
         | ^
   cc1: some warnings being treated as errors

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for USB_PHY
   Depends on [n]: USB_SUPPORT [=n]
   Selected by [y]:
   - GKI_HIDDEN_USB_CONFIGS [=y]
   WARNING: unmet direct dependencies detected for SND_VMASTER
   Depends on [n]: SOUND [=m] && SND [=n]
   Selected by [y]:
   - GKI_HIDDEN_SND_CONFIGS [=y]
   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 SND_JACK_INPUT_DEV
   Depends on [n]: SOUND [=m] && SND [=n] && SND_JACK [=y]
   Selected by [y]:
   - GKI_HIDDEN_SND_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]
   WARNING: unmet direct dependencies detected for SND_PCM_ELD
   Depends on [n]: SOUND [=m] && SND [=n]
   Selected by [y]:
   - GKI_HIDDEN_SND_CONFIGS [=y]
   WARNING: unmet direct dependencies detected for HVC_DRIVER
   Depends on [n]: TTY [=n]
   Selected by [y]:
   - GKI_HIDDEN_VIRTUAL_CONFIGS [=y]
   WARNING: unmet direct dependencies detected for DRM_MIPI_DSI
   Depends on [n]: HAS_IOMEM [=y] && DRM [=n]
   Selected by [y]:
   - GKI_HIDDEN_DRM_CONFIGS [=y]
   WARNING: unmet direct dependencies detected for BALLOON_COMPACTION
   Depends on [n]: COMPACTION [=n] && MEMORY_BALLOON [=y]
   Selected by [y]:
   - GKI_HIDDEN_MM_CONFIGS [=y]
   WARNING: unmet direct dependencies detected for VIDEO_V4L2_SUBDEV_API
   Depends on [n]: MEDIA_SUPPORT [=y] && VIDEO_DEV [=n] && MEDIA_CONTROLLER [=y]
   Selected by [y]:
   - GKI_HIDDEN_MEDIA_CONFIGS [=y]
   WARNING: unmet direct dependencies detected for SND_PCM_IEC958
   Depends on [n]: SOUND [=m] && SND [=n]
   Selected by [y]:
   - GKI_HIDDEN_SND_SOC_CONFIGS [=y]
   WARNING: unmet direct dependencies detected for IOMMU_SVA
   Depends on [n]: IOMMU_SUPPORT [=n]
   Selected by [y]:
   - GKI_HIDDEN_IOMMU_CONFIGS [=y]
   WARNING: unmet direct dependencies detected for XFRM
   Depends on [n]: NET [=y] && INET [=n]
   Selected by [y]:
   - XFRM_ALGO [=y] && NET [=y]
   WARNING: unmet direct dependencies detected for SND_COMPRESS_ACCEL
   Depends on [n]: SOUND [=m] && SND [=n]
   Selected by [y]:
   - GKI_HIDDEN_SND_CONFIGS [=y]
   WARNING: unmet direct dependencies detected for SND_JACK
   Depends on [n]: SOUND [=m] && SND [=n]
   Selected by [y]:
   - GKI_HIDDEN_SND_CONFIGS [=y]


vim +5067 include/linux/skbuff.h

4ff0620354f2b3 Julian Anastasov 2017-02-06  5059  
2294be0f11e22b Florian Westphal 2018-12-18  5060  static inline struct sec_path *skb_sec_path(const struct sk_buff *skb)
def8b4faff5ca3 Alexey Dobriyan  2008-10-28  5061  {
0b3d8e087bbee2 Denis Kirjanov   2013-10-02  5062  #ifdef CONFIG_XFRM
4165079ba328dd Florian Westphal 2018-12-18  5063  	return skb_ext_find(skb, SKB_EXT_SEC_PATH);
def8b4faff5ca3 Alexey Dobriyan  2008-10-28  5064  #else
def8b4faff5ca3 Alexey Dobriyan  2008-10-28  5065  	return NULL;
def8b4faff5ca3 Alexey Dobriyan  2008-10-28  5066  #endif
0b3d8e087bbee2 Denis Kirjanov   2013-10-02 @5067  }
def8b4faff5ca3 Alexey Dobriyan  2008-10-28  5068  

:::::: The code at line 5067 was first introduced by commit
:::::: 0b3d8e087bbee2a4e3f479d538a7edd3f1d2950c include/linux/skbuff.h: move CONFIG_XFRM check inside the skb_sec_path()

:::::: TO: Denis Kirjanov <kda@linux-powerpc.org>
:::::: 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:[~2026-10-24  5:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-24  5:16 [android-common:android17-6.18 1/1] include/linux/skbuff.h:5067:1: warning: control reaches end of non-void function kernel test robot

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.