From: kernel test robot <lkp@intel.com>
To: Jian Shen <shenjian15@huawei.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org
Subject: Re: [RFCv4 PATCH net-next] net: extend netdev_features_t
Date: Sun, 7 Nov 2021 20:10:56 +0800 [thread overview]
Message-ID: <202111072012.RLqHHlu2-lkp@intel.com> (raw)
In-Reply-To: <20211107101519.29264-1-shenjian15@huawei.com>
[-- Attachment #1: Type: text/plain, Size: 26233 bytes --]
Hi Jian,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on net-next/master]
url: https://github.com/0day-ci/linux/commits/Jian-Shen/net-extend-netdev_features_t/20211107-182136
base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git 84882cf72cd774cf16fd338bdbf00f69ac9f9194
config: x86_64-buildonly-randconfig-r001-20211107 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project cefc01fa65a7ebcc10cbf3c3bb2278a6a122deaf)
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/0day-ci/linux/commit/1e2d15fe96b9ee363f2de176506f0b60f79835e0
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Jian-Shen/net-extend-netdev_features_t/20211107-182136
git checkout 1e2d15fe96b9ee363f2de176506f0b60f79835e0
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash kernel/sched/ net/core/ net/tls/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
In file included from kernel/sched/core.c:13:
In file included from kernel/sched/sched.h:50:
In file included from include/linux/init_task.h:18:
In file included from include/net/net_namespace.h:39:
>> include/linux/skbuff.h:3737:50: error: use of undeclared identifier 'NETIF_F_FRAGLIST'
((skb_has_frag_list(skb) && !(features & NETIF_F_FRAGLIST)) ||
^
>> include/linux/skbuff.h:3738:46: error: use of undeclared identifier 'NETIF_F_SG'
(skb_shinfo(skb)->nr_frags && !(features & NETIF_F_SG)));
^
kernel/sched/core.c:3416:6: warning: no previous prototype for function 'sched_set_stop_task' [-Wmissing-prototypes]
void sched_set_stop_task(int cpu, struct task_struct *stop)
^
kernel/sched/core.c:3416:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void sched_set_stop_task(int cpu, struct task_struct *stop)
^
static
1 warning and 2 errors generated.
--
In file included from kernel/sched/loadavg.c:9:
In file included from kernel/sched/sched.h:50:
In file included from include/linux/init_task.h:18:
In file included from include/net/net_namespace.h:39:
>> include/linux/skbuff.h:3737:50: error: use of undeclared identifier 'NETIF_F_FRAGLIST'
((skb_has_frag_list(skb) && !(features & NETIF_F_FRAGLIST)) ||
^
>> include/linux/skbuff.h:3738:46: error: use of undeclared identifier 'NETIF_F_SG'
(skb_shinfo(skb)->nr_frags && !(features & NETIF_F_SG)));
^
2 errors generated.
--
In file included from kernel/sched/fair.c:23:
In file included from kernel/sched/sched.h:50:
In file included from include/linux/init_task.h:18:
In file included from include/net/net_namespace.h:39:
>> include/linux/skbuff.h:3737:50: error: use of undeclared identifier 'NETIF_F_FRAGLIST'
((skb_has_frag_list(skb) && !(features & NETIF_F_FRAGLIST)) ||
^
>> include/linux/skbuff.h:3738:46: error: use of undeclared identifier 'NETIF_F_SG'
(skb_shinfo(skb)->nr_frags && !(features & NETIF_F_SG)));
^
kernel/sched/fair.c:10996:6: warning: no previous prototype for function 'task_vruntime_update' [-Wmissing-prototypes]
void task_vruntime_update(struct rq *rq, struct task_struct *p, bool in_fi)
^
kernel/sched/fair.c:10996:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void task_vruntime_update(struct rq *rq, struct task_struct *p, bool in_fi)
^
static
1 warning and 2 errors generated.
--
In file included from kernel/sched/rt.c:6:
In file included from kernel/sched/sched.h:50:
In file included from include/linux/init_task.h:18:
In file included from include/net/net_namespace.h:39:
>> include/linux/skbuff.h:3737:50: error: use of undeclared identifier 'NETIF_F_FRAGLIST'
((skb_has_frag_list(skb) && !(features & NETIF_F_FRAGLIST)) ||
^
>> include/linux/skbuff.h:3738:46: error: use of undeclared identifier 'NETIF_F_SG'
(skb_shinfo(skb)->nr_frags && !(features & NETIF_F_SG)));
^
kernel/sched/rt.c:669:6: warning: no previous prototype for function 'sched_rt_bandwidth_account' [-Wmissing-prototypes]
bool sched_rt_bandwidth_account(struct rt_rq *rt_rq)
^
kernel/sched/rt.c:669:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
bool sched_rt_bandwidth_account(struct rt_rq *rt_rq)
^
static
1 warning and 2 errors generated.
--
In file included from kernel/sched/topology.c:5:
In file included from kernel/sched/sched.h:50:
In file included from include/linux/init_task.h:18:
In file included from include/net/net_namespace.h:39:
>> include/linux/skbuff.h:3737:50: error: use of undeclared identifier 'NETIF_F_FRAGLIST'
((skb_has_frag_list(skb) && !(features & NETIF_F_FRAGLIST)) ||
^
>> include/linux/skbuff.h:3738:46: error: use of undeclared identifier 'NETIF_F_SG'
(skb_shinfo(skb)->nr_frags && !(features & NETIF_F_SG)));
^
kernel/sched/topology.c:691:6: warning: variable 'numa_distance' set but not used [-Wunused-but-set-variable]
int numa_distance = 0;
^
1 warning and 2 errors generated.
--
In file included from net/core/sock.c:91:
In file included from include/linux/errqueue.h:6:
In file included from include/net/ip.h:22:
In file included from include/linux/ip.h:16:
>> include/linux/skbuff.h:3737:50: error: use of undeclared identifier 'NETIF_F_FRAGLIST'
((skb_has_frag_list(skb) && !(features & NETIF_F_FRAGLIST)) ||
^
>> include/linux/skbuff.h:3738:46: error: use of undeclared identifier 'NETIF_F_SG'
(skb_shinfo(skb)->nr_frags && !(features & NETIF_F_SG)));
^
In file included from net/core/sock.c:91:
In file included from include/linux/errqueue.h:6:
In file included from include/net/ip.h:29:
In file included from include/net/inet_sock.h:19:
>> include/linux/netdevice.h:5605:30: error: used type 'netdev_features_t' where arithmetic or pointer type is required
netdev_features_t feature = (netdev_features_t)gso_type << NETIF_F_GSO_SHIFT;
^ ~~~~~~~~
>> include/linux/netdevice.h:5608:35: error: use of undeclared identifier 'NETIF_F_TSO'
BUILD_BUG_ON(SKB_GSO_TCPV4 != (NETIF_F_TSO >> NETIF_F_GSO_SHIFT));
^
>> include/linux/netdevice.h:5609:35: error: use of undeclared identifier 'NETIF_F_GSO_ROBUST'
BUILD_BUG_ON(SKB_GSO_DODGY != (NETIF_F_GSO_ROBUST >> NETIF_F_GSO_SHIFT));
^
>> include/linux/netdevice.h:5610:35: error: use of undeclared identifier 'NETIF_F_TSO_ECN'; did you mean 'NETIF_F_TSO_BIT'?
BUILD_BUG_ON(SKB_GSO_TCP_ECN != (NETIF_F_TSO_ECN >> NETIF_F_GSO_SHIFT));
^~~~~~~~~~~~~~~
NETIF_F_TSO_BIT
include/linux/build_bug.h:50:19: note: expanded from macro 'BUILD_BUG_ON'
BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
^
include/linux/build_bug.h:39:58: note: expanded from macro 'BUILD_BUG_ON_MSG'
#define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
^
include/linux/compiler_types.h:322:22: note: expanded from macro 'compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^
include/linux/compiler_types.h:310:23: note: expanded from macro '_compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
^
include/linux/compiler_types.h:302:9: note: expanded from macro '__compiletime_assert'
if (!(condition)) \
^
include/linux/netdev_features.h:32:2: note: 'NETIF_F_TSO_BIT' declared here
NETIF_F_TSO_BIT /* ... TCPv4 segmentation */
^
In file included from net/core/sock.c:91:
In file included from include/linux/errqueue.h:6:
In file included from include/net/ip.h:29:
In file included from include/net/inet_sock.h:19:
>> include/linux/netdevice.h:5611:39: error: use of undeclared identifier 'NETIF_F_TSO_MANGLEID'; did you mean 'NETIF_F_TSO_MANGLEID_BIT'?
BUILD_BUG_ON(SKB_GSO_TCP_FIXEDID != (NETIF_F_TSO_MANGLEID >> NETIF_F_GSO_SHIFT));
^~~~~~~~~~~~~~~~~~~~
NETIF_F_TSO_MANGLEID_BIT
include/linux/build_bug.h:50:19: note: expanded from macro 'BUILD_BUG_ON'
BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
^
include/linux/build_bug.h:39:58: note: expanded from macro 'BUILD_BUG_ON_MSG'
#define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
^
include/linux/compiler_types.h:322:22: note: expanded from macro 'compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^
include/linux/compiler_types.h:310:23: note: expanded from macro '_compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
^
include/linux/compiler_types.h:302:9: note: expanded from macro '__compiletime_assert'
if (!(condition)) \
^
include/linux/netdev_features.h:36:2: note: 'NETIF_F_TSO_MANGLEID_BIT' declared here
NETIF_F_TSO_MANGLEID_BIT, /* ... IPV4 ID mangling allowed */
^
In file included from net/core/sock.c:91:
In file included from include/linux/errqueue.h:6:
In file included from include/net/ip.h:29:
In file included from include/net/inet_sock.h:19:
>> include/linux/netdevice.h:5612:35: error: use of undeclared identifier 'NETIF_F_TSO6'
BUILD_BUG_ON(SKB_GSO_TCPV6 != (NETIF_F_TSO6 >> NETIF_F_GSO_SHIFT));
^
>> include/linux/netdevice.h:5613:35: error: use of undeclared identifier 'NETIF_F_FSO'
BUILD_BUG_ON(SKB_GSO_FCOE != (NETIF_F_FSO >> NETIF_F_GSO_SHIFT));
^
>> include/linux/netdevice.h:5614:35: error: use of undeclared identifier 'NETIF_F_GSO_GRE'; did you mean 'NETIF_F_GSO_BIT'?
BUILD_BUG_ON(SKB_GSO_GRE != (NETIF_F_GSO_GRE >> NETIF_F_GSO_SHIFT));
^~~~~~~~~~~~~~~
NETIF_F_GSO_BIT
include/linux/build_bug.h:50:19: note: expanded from macro 'BUILD_BUG_ON'
BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
^
include/linux/build_bug.h:39:58: note: expanded from macro 'BUILD_BUG_ON_MSG'
#define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
^
include/linux/compiler_types.h:322:22: note: expanded from macro 'compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^
include/linux/compiler_types.h:310:23: note: expanded from macro '_compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
^
include/linux/compiler_types.h:302:9: note: expanded from macro '__compiletime_assert'
if (!(condition)) \
^
include/linux/netdev_features.h:24:2: note: 'NETIF_F_GSO_BIT' declared here
NETIF_F_GSO_BIT, /* Enable software GSO. */
^
In file included from net/core/sock.c:91:
In file included from include/linux/errqueue.h:6:
In file included from include/net/ip.h:29:
In file included from include/net/inet_sock.h:19:
>> include/linux/netdevice.h:5615:36: error: use of undeclared identifier 'NETIF_F_GSO_GRE_CSUM'
BUILD_BUG_ON(SKB_GSO_GRE_CSUM != (NETIF_F_GSO_GRE_CSUM >> NETIF_F_GSO_SHIFT));
^
>> include/linux/netdevice.h:5616:35: error: use of undeclared identifier 'NETIF_F_GSO_IPXIP4'; did you mean 'NETIF_F_GSO_IPXIP4_BIT'?
BUILD_BUG_ON(SKB_GSO_IPXIP4 != (NETIF_F_GSO_IPXIP4 >> NETIF_F_GSO_SHIFT));
^~~~~~~~~~~~~~~~~~
NETIF_F_GSO_IPXIP4_BIT
include/linux/build_bug.h:50:19: note: expanded from macro 'BUILD_BUG_ON'
BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
^
include/linux/build_bug.h:39:58: note: expanded from macro 'BUILD_BUG_ON_MSG'
#define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
^
include/linux/compiler_types.h:322:22: note: expanded from macro 'compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^
include/linux/compiler_types.h:310:23: note: expanded from macro '_compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
^
include/linux/compiler_types.h:302:9: note: expanded from macro '__compiletime_assert'
if (!(condition)) \
^
include/linux/netdev_features.h:41:2: note: 'NETIF_F_GSO_IPXIP4_BIT' declared here
NETIF_F_GSO_IPXIP4_BIT, /* ... IP4 or IP6 over IP4 with TSO */
^
In file included from net/core/sock.c:91:
In file included from include/linux/errqueue.h:6:
In file included from include/net/ip.h:29:
In file included from include/net/inet_sock.h:19:
>> include/linux/netdevice.h:5617:35: error: use of undeclared identifier 'NETIF_F_GSO_IPXIP6'; did you mean 'NETIF_F_GSO_IPXIP6_BIT'?
BUILD_BUG_ON(SKB_GSO_IPXIP6 != (NETIF_F_GSO_IPXIP6 >> NETIF_F_GSO_SHIFT));
^~~~~~~~~~~~~~~~~~
NETIF_F_GSO_IPXIP6_BIT
include/linux/build_bug.h:50:19: note: expanded from macro 'BUILD_BUG_ON'
BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
^
include/linux/build_bug.h:39:58: note: expanded from macro 'BUILD_BUG_ON_MSG'
#define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
^
include/linux/compiler_types.h:322:22: note: expanded from macro 'compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^
include/linux/compiler_types.h:310:23: note: expanded from macro '_compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
^
include/linux/compiler_types.h:302:9: note: expanded from macro '__compiletime_assert'
if (!(condition)) \
^
include/linux/netdev_features.h:42:2: note: 'NETIF_F_GSO_IPXIP6_BIT' declared here
NETIF_F_GSO_IPXIP6_BIT, /* ... IP4 or IP6 over IP6 with TSO */
^
In file included from net/core/sock.c:91:
In file included from include/linux/errqueue.h:6:
In file included from include/net/ip.h:29:
In file included from include/net/inet_sock.h:19:
>> include/linux/netdevice.h:5618:38: error: use of undeclared identifier 'NETIF_F_GSO_UDP_TUNNEL'; did you mean 'NETIF_F_GSO_UDP_TUNNEL_BIT'?
BUILD_BUG_ON(SKB_GSO_UDP_TUNNEL != (NETIF_F_GSO_UDP_TUNNEL >> NETIF_F_GSO_SHIFT));
^~~~~~~~~~~~~~~~~~~~~~
NETIF_F_GSO_UDP_TUNNEL_BIT
include/linux/build_bug.h:50:19: note: expanded from macro 'BUILD_BUG_ON'
BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
^
include/linux/build_bug.h:39:58: note: expanded from macro 'BUILD_BUG_ON_MSG'
#define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
^
include/linux/compiler_types.h:322:22: note: expanded from macro 'compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^
include/linux/compiler_types.h:310:23: note: expanded from macro '_compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
^
include/linux/compiler_types.h:302:9: note: expanded from macro '__compiletime_assert'
if (!(condition)) \
^
include/linux/netdev_features.h:43:2: note: 'NETIF_F_GSO_UDP_TUNNEL_BIT' declared here
NETIF_F_GSO_UDP_TUNNEL_BIT, /* ... UDP TUNNEL with TSO */
^
In file included from net/core/sock.c:91:
In file included from include/linux/errqueue.h:6:
In file included from include/net/ip.h:29:
In file included from include/net/inet_sock.h:19:
>> include/linux/netdevice.h:5619:43: error: use of undeclared identifier 'NETIF_F_GSO_UDP_TUNNEL_CSUM'
BUILD_BUG_ON(SKB_GSO_UDP_TUNNEL_CSUM != (NETIF_F_GSO_UDP_TUNNEL_CSUM >> NETIF_F_GSO_SHIFT));
^
>> include/linux/netdevice.h:5620:35: error: use of undeclared identifier 'NETIF_F_GSO_PARTIAL'; did you mean 'NETIF_F_GSO_PARTIAL_BIT'?
BUILD_BUG_ON(SKB_GSO_PARTIAL != (NETIF_F_GSO_PARTIAL >> NETIF_F_GSO_SHIFT));
^~~~~~~~~~~~~~~~~~~
NETIF_F_GSO_PARTIAL_BIT
include/linux/build_bug.h:50:19: note: expanded from macro 'BUILD_BUG_ON'
BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
^
include/linux/build_bug.h:39:58: note: expanded from macro 'BUILD_BUG_ON_MSG'
#define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
^
include/linux/compiler_types.h:322:22: note: expanded from macro 'compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^
include/linux/compiler_types.h:310:23: note: expanded from macro '_compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
^
include/linux/compiler_types.h:302:9: note: expanded from macro '__compiletime_assert'
if (!(condition)) \
^
include/linux/netdev_features.h:45:2: note: 'NETIF_F_GSO_PARTIAL_BIT' declared here
NETIF_F_GSO_PARTIAL_BIT, /* ... Only segment inner-most L4
^
In file included from net/core/sock.c:91:
In file included from include/linux/errqueue.h:6:
In file included from include/net/ip.h:29:
In file included from include/net/inet_sock.h:19:
>> include/linux/netdevice.h:5621:42: error: use of undeclared identifier 'NETIF_F_GSO_TUNNEL_REMCSUM'; did you mean 'NETIF_F_GSO_TUNNEL_REMCSUM_BIT'?
BUILD_BUG_ON(SKB_GSO_TUNNEL_REMCSUM != (NETIF_F_GSO_TUNNEL_REMCSUM >> NETIF_F_GSO_SHIFT));
^~~~~~~~~~~~~~~~~~~~~~~~~~
NETIF_F_GSO_TUNNEL_REMCSUM_BIT
include/linux/build_bug.h:50:19: note: expanded from macro 'BUILD_BUG_ON'
BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
^
include/linux/build_bug.h:39:58: note: expanded from macro 'BUILD_BUG_ON_MSG'
#define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
^
include/linux/compiler_types.h:322:22: note: expanded from macro 'compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^
include/linux/compiler_types.h:310:23: note: expanded from macro '_compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
^
include/linux/compiler_types.h:302:9: note: expanded from macro '__compiletime_assert'
if (!(condition)) \
^
include/linux/netdev_features.h:49:2: note: 'NETIF_F_GSO_TUNNEL_REMCSUM_BIT' declared here
NETIF_F_GSO_TUNNEL_REMCSUM_BIT, /* ... TUNNEL with TSO & REMCSUM */
^
In file included from net/core/sock.c:91:
In file included from include/linux/errqueue.h:6:
In file included from include/net/ip.h:29:
In file included from include/net/inet_sock.h:19:
>> include/linux/netdevice.h:5622:35: error: use of undeclared identifier 'NETIF_F_GSO_SCTP'; did you mean 'NETIF_F_GSO_BIT'?
BUILD_BUG_ON(SKB_GSO_SCTP != (NETIF_F_GSO_SCTP >> NETIF_F_GSO_SHIFT));
^~~~~~~~~~~~~~~~
NETIF_F_GSO_BIT
include/linux/build_bug.h:50:19: note: expanded from macro 'BUILD_BUG_ON'
BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
^
include/linux/build_bug.h:39:58: note: expanded from macro 'BUILD_BUG_ON_MSG'
#define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
^
include/linux/compiler_types.h:322:22: note: expanded from macro 'compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^
include/linux/compiler_types.h:310:23: note: expanded from macro '_compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
^
include/linux/compiler_types.h:302:9: note: expanded from macro '__compiletime_assert'
if (!(condition)) \
^
include/linux/netdev_features.h:24:2: note: 'NETIF_F_GSO_BIT' declared here
NETIF_F_GSO_BIT, /* Enable software GSO. */
^
In file included from net/core/sock.c:91:
In file included from include/linux/errqueue.h:6:
In file included from include/net/ip.h:29:
In file included from include/net/inet_sock.h:19:
>> include/linux/netdevice.h:5623:31: error: use of undeclared identifier 'NETIF_F_GSO_ESP'
BUILD_BUG_ON(SKB_GSO_ESP != (NETIF_F_GSO_ESP >> NETIF_F_GSO_SHIFT));
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
..
vim +/NETIF_F_FRAGLIST +3737 include/linux/skbuff.h
690e36e726d00d David S. Miller 2014-08-23 3722
4262e5ccbbb517 Daniel Borkmann 2013-12-06 3723 /**
4262e5ccbbb517 Daniel Borkmann 2013-12-06 3724 * skb_needs_linearize - check if we need to linearize a given skb
4262e5ccbbb517 Daniel Borkmann 2013-12-06 3725 * depending on the given device features.
4262e5ccbbb517 Daniel Borkmann 2013-12-06 3726 * @skb: socket buffer to check
4262e5ccbbb517 Daniel Borkmann 2013-12-06 3727 * @features: net device features
4262e5ccbbb517 Daniel Borkmann 2013-12-06 3728 *
4262e5ccbbb517 Daniel Borkmann 2013-12-06 3729 * Returns true if either:
4262e5ccbbb517 Daniel Borkmann 2013-12-06 3730 * 1. skb has frag_list and the device doesn't support FRAGLIST, or
4262e5ccbbb517 Daniel Borkmann 2013-12-06 3731 * 2. skb is fragmented and the device does not support SG.
4262e5ccbbb517 Daniel Borkmann 2013-12-06 3732 */
4262e5ccbbb517 Daniel Borkmann 2013-12-06 3733 static inline bool skb_needs_linearize(struct sk_buff *skb,
4262e5ccbbb517 Daniel Borkmann 2013-12-06 3734 netdev_features_t features)
4262e5ccbbb517 Daniel Borkmann 2013-12-06 3735 {
4262e5ccbbb517 Daniel Borkmann 2013-12-06 3736 return skb_is_nonlinear(skb) &&
4262e5ccbbb517 Daniel Borkmann 2013-12-06 @3737 ((skb_has_frag_list(skb) && !(features & NETIF_F_FRAGLIST)) ||
4262e5ccbbb517 Daniel Borkmann 2013-12-06 @3738 (skb_shinfo(skb)->nr_frags && !(features & NETIF_F_SG)));
4262e5ccbbb517 Daniel Borkmann 2013-12-06 3739 }
4262e5ccbbb517 Daniel Borkmann 2013-12-06 3740
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 38675 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [RFCv4 PATCH net-next] net: extend netdev_features_t
Date: Sun, 07 Nov 2021 20:10:56 +0800 [thread overview]
Message-ID: <202111072012.RLqHHlu2-lkp@intel.com> (raw)
In-Reply-To: <20211107101519.29264-1-shenjian15@huawei.com>
[-- Attachment #1: Type: text/plain, Size: 26646 bytes --]
Hi Jian,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on net-next/master]
url: https://github.com/0day-ci/linux/commits/Jian-Shen/net-extend-netdev_features_t/20211107-182136
base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git 84882cf72cd774cf16fd338bdbf00f69ac9f9194
config: x86_64-buildonly-randconfig-r001-20211107 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project cefc01fa65a7ebcc10cbf3c3bb2278a6a122deaf)
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/0day-ci/linux/commit/1e2d15fe96b9ee363f2de176506f0b60f79835e0
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Jian-Shen/net-extend-netdev_features_t/20211107-182136
git checkout 1e2d15fe96b9ee363f2de176506f0b60f79835e0
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash kernel/sched/ net/core/ net/tls/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
In file included from kernel/sched/core.c:13:
In file included from kernel/sched/sched.h:50:
In file included from include/linux/init_task.h:18:
In file included from include/net/net_namespace.h:39:
>> include/linux/skbuff.h:3737:50: error: use of undeclared identifier 'NETIF_F_FRAGLIST'
((skb_has_frag_list(skb) && !(features & NETIF_F_FRAGLIST)) ||
^
>> include/linux/skbuff.h:3738:46: error: use of undeclared identifier 'NETIF_F_SG'
(skb_shinfo(skb)->nr_frags && !(features & NETIF_F_SG)));
^
kernel/sched/core.c:3416:6: warning: no previous prototype for function 'sched_set_stop_task' [-Wmissing-prototypes]
void sched_set_stop_task(int cpu, struct task_struct *stop)
^
kernel/sched/core.c:3416:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void sched_set_stop_task(int cpu, struct task_struct *stop)
^
static
1 warning and 2 errors generated.
--
In file included from kernel/sched/loadavg.c:9:
In file included from kernel/sched/sched.h:50:
In file included from include/linux/init_task.h:18:
In file included from include/net/net_namespace.h:39:
>> include/linux/skbuff.h:3737:50: error: use of undeclared identifier 'NETIF_F_FRAGLIST'
((skb_has_frag_list(skb) && !(features & NETIF_F_FRAGLIST)) ||
^
>> include/linux/skbuff.h:3738:46: error: use of undeclared identifier 'NETIF_F_SG'
(skb_shinfo(skb)->nr_frags && !(features & NETIF_F_SG)));
^
2 errors generated.
--
In file included from kernel/sched/fair.c:23:
In file included from kernel/sched/sched.h:50:
In file included from include/linux/init_task.h:18:
In file included from include/net/net_namespace.h:39:
>> include/linux/skbuff.h:3737:50: error: use of undeclared identifier 'NETIF_F_FRAGLIST'
((skb_has_frag_list(skb) && !(features & NETIF_F_FRAGLIST)) ||
^
>> include/linux/skbuff.h:3738:46: error: use of undeclared identifier 'NETIF_F_SG'
(skb_shinfo(skb)->nr_frags && !(features & NETIF_F_SG)));
^
kernel/sched/fair.c:10996:6: warning: no previous prototype for function 'task_vruntime_update' [-Wmissing-prototypes]
void task_vruntime_update(struct rq *rq, struct task_struct *p, bool in_fi)
^
kernel/sched/fair.c:10996:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void task_vruntime_update(struct rq *rq, struct task_struct *p, bool in_fi)
^
static
1 warning and 2 errors generated.
--
In file included from kernel/sched/rt.c:6:
In file included from kernel/sched/sched.h:50:
In file included from include/linux/init_task.h:18:
In file included from include/net/net_namespace.h:39:
>> include/linux/skbuff.h:3737:50: error: use of undeclared identifier 'NETIF_F_FRAGLIST'
((skb_has_frag_list(skb) && !(features & NETIF_F_FRAGLIST)) ||
^
>> include/linux/skbuff.h:3738:46: error: use of undeclared identifier 'NETIF_F_SG'
(skb_shinfo(skb)->nr_frags && !(features & NETIF_F_SG)));
^
kernel/sched/rt.c:669:6: warning: no previous prototype for function 'sched_rt_bandwidth_account' [-Wmissing-prototypes]
bool sched_rt_bandwidth_account(struct rt_rq *rt_rq)
^
kernel/sched/rt.c:669:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
bool sched_rt_bandwidth_account(struct rt_rq *rt_rq)
^
static
1 warning and 2 errors generated.
--
In file included from kernel/sched/topology.c:5:
In file included from kernel/sched/sched.h:50:
In file included from include/linux/init_task.h:18:
In file included from include/net/net_namespace.h:39:
>> include/linux/skbuff.h:3737:50: error: use of undeclared identifier 'NETIF_F_FRAGLIST'
((skb_has_frag_list(skb) && !(features & NETIF_F_FRAGLIST)) ||
^
>> include/linux/skbuff.h:3738:46: error: use of undeclared identifier 'NETIF_F_SG'
(skb_shinfo(skb)->nr_frags && !(features & NETIF_F_SG)));
^
kernel/sched/topology.c:691:6: warning: variable 'numa_distance' set but not used [-Wunused-but-set-variable]
int numa_distance = 0;
^
1 warning and 2 errors generated.
--
In file included from net/core/sock.c:91:
In file included from include/linux/errqueue.h:6:
In file included from include/net/ip.h:22:
In file included from include/linux/ip.h:16:
>> include/linux/skbuff.h:3737:50: error: use of undeclared identifier 'NETIF_F_FRAGLIST'
((skb_has_frag_list(skb) && !(features & NETIF_F_FRAGLIST)) ||
^
>> include/linux/skbuff.h:3738:46: error: use of undeclared identifier 'NETIF_F_SG'
(skb_shinfo(skb)->nr_frags && !(features & NETIF_F_SG)));
^
In file included from net/core/sock.c:91:
In file included from include/linux/errqueue.h:6:
In file included from include/net/ip.h:29:
In file included from include/net/inet_sock.h:19:
>> include/linux/netdevice.h:5605:30: error: used type 'netdev_features_t' where arithmetic or pointer type is required
netdev_features_t feature = (netdev_features_t)gso_type << NETIF_F_GSO_SHIFT;
^ ~~~~~~~~
>> include/linux/netdevice.h:5608:35: error: use of undeclared identifier 'NETIF_F_TSO'
BUILD_BUG_ON(SKB_GSO_TCPV4 != (NETIF_F_TSO >> NETIF_F_GSO_SHIFT));
^
>> include/linux/netdevice.h:5609:35: error: use of undeclared identifier 'NETIF_F_GSO_ROBUST'
BUILD_BUG_ON(SKB_GSO_DODGY != (NETIF_F_GSO_ROBUST >> NETIF_F_GSO_SHIFT));
^
>> include/linux/netdevice.h:5610:35: error: use of undeclared identifier 'NETIF_F_TSO_ECN'; did you mean 'NETIF_F_TSO_BIT'?
BUILD_BUG_ON(SKB_GSO_TCP_ECN != (NETIF_F_TSO_ECN >> NETIF_F_GSO_SHIFT));
^~~~~~~~~~~~~~~
NETIF_F_TSO_BIT
include/linux/build_bug.h:50:19: note: expanded from macro 'BUILD_BUG_ON'
BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
^
include/linux/build_bug.h:39:58: note: expanded from macro 'BUILD_BUG_ON_MSG'
#define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
^
include/linux/compiler_types.h:322:22: note: expanded from macro 'compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^
include/linux/compiler_types.h:310:23: note: expanded from macro '_compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
^
include/linux/compiler_types.h:302:9: note: expanded from macro '__compiletime_assert'
if (!(condition)) \
^
include/linux/netdev_features.h:32:2: note: 'NETIF_F_TSO_BIT' declared here
NETIF_F_TSO_BIT /* ... TCPv4 segmentation */
^
In file included from net/core/sock.c:91:
In file included from include/linux/errqueue.h:6:
In file included from include/net/ip.h:29:
In file included from include/net/inet_sock.h:19:
>> include/linux/netdevice.h:5611:39: error: use of undeclared identifier 'NETIF_F_TSO_MANGLEID'; did you mean 'NETIF_F_TSO_MANGLEID_BIT'?
BUILD_BUG_ON(SKB_GSO_TCP_FIXEDID != (NETIF_F_TSO_MANGLEID >> NETIF_F_GSO_SHIFT));
^~~~~~~~~~~~~~~~~~~~
NETIF_F_TSO_MANGLEID_BIT
include/linux/build_bug.h:50:19: note: expanded from macro 'BUILD_BUG_ON'
BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
^
include/linux/build_bug.h:39:58: note: expanded from macro 'BUILD_BUG_ON_MSG'
#define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
^
include/linux/compiler_types.h:322:22: note: expanded from macro 'compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^
include/linux/compiler_types.h:310:23: note: expanded from macro '_compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
^
include/linux/compiler_types.h:302:9: note: expanded from macro '__compiletime_assert'
if (!(condition)) \
^
include/linux/netdev_features.h:36:2: note: 'NETIF_F_TSO_MANGLEID_BIT' declared here
NETIF_F_TSO_MANGLEID_BIT, /* ... IPV4 ID mangling allowed */
^
In file included from net/core/sock.c:91:
In file included from include/linux/errqueue.h:6:
In file included from include/net/ip.h:29:
In file included from include/net/inet_sock.h:19:
>> include/linux/netdevice.h:5612:35: error: use of undeclared identifier 'NETIF_F_TSO6'
BUILD_BUG_ON(SKB_GSO_TCPV6 != (NETIF_F_TSO6 >> NETIF_F_GSO_SHIFT));
^
>> include/linux/netdevice.h:5613:35: error: use of undeclared identifier 'NETIF_F_FSO'
BUILD_BUG_ON(SKB_GSO_FCOE != (NETIF_F_FSO >> NETIF_F_GSO_SHIFT));
^
>> include/linux/netdevice.h:5614:35: error: use of undeclared identifier 'NETIF_F_GSO_GRE'; did you mean 'NETIF_F_GSO_BIT'?
BUILD_BUG_ON(SKB_GSO_GRE != (NETIF_F_GSO_GRE >> NETIF_F_GSO_SHIFT));
^~~~~~~~~~~~~~~
NETIF_F_GSO_BIT
include/linux/build_bug.h:50:19: note: expanded from macro 'BUILD_BUG_ON'
BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
^
include/linux/build_bug.h:39:58: note: expanded from macro 'BUILD_BUG_ON_MSG'
#define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
^
include/linux/compiler_types.h:322:22: note: expanded from macro 'compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^
include/linux/compiler_types.h:310:23: note: expanded from macro '_compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
^
include/linux/compiler_types.h:302:9: note: expanded from macro '__compiletime_assert'
if (!(condition)) \
^
include/linux/netdev_features.h:24:2: note: 'NETIF_F_GSO_BIT' declared here
NETIF_F_GSO_BIT, /* Enable software GSO. */
^
In file included from net/core/sock.c:91:
In file included from include/linux/errqueue.h:6:
In file included from include/net/ip.h:29:
In file included from include/net/inet_sock.h:19:
>> include/linux/netdevice.h:5615:36: error: use of undeclared identifier 'NETIF_F_GSO_GRE_CSUM'
BUILD_BUG_ON(SKB_GSO_GRE_CSUM != (NETIF_F_GSO_GRE_CSUM >> NETIF_F_GSO_SHIFT));
^
>> include/linux/netdevice.h:5616:35: error: use of undeclared identifier 'NETIF_F_GSO_IPXIP4'; did you mean 'NETIF_F_GSO_IPXIP4_BIT'?
BUILD_BUG_ON(SKB_GSO_IPXIP4 != (NETIF_F_GSO_IPXIP4 >> NETIF_F_GSO_SHIFT));
^~~~~~~~~~~~~~~~~~
NETIF_F_GSO_IPXIP4_BIT
include/linux/build_bug.h:50:19: note: expanded from macro 'BUILD_BUG_ON'
BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
^
include/linux/build_bug.h:39:58: note: expanded from macro 'BUILD_BUG_ON_MSG'
#define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
^
include/linux/compiler_types.h:322:22: note: expanded from macro 'compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^
include/linux/compiler_types.h:310:23: note: expanded from macro '_compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
^
include/linux/compiler_types.h:302:9: note: expanded from macro '__compiletime_assert'
if (!(condition)) \
^
include/linux/netdev_features.h:41:2: note: 'NETIF_F_GSO_IPXIP4_BIT' declared here
NETIF_F_GSO_IPXIP4_BIT, /* ... IP4 or IP6 over IP4 with TSO */
^
In file included from net/core/sock.c:91:
In file included from include/linux/errqueue.h:6:
In file included from include/net/ip.h:29:
In file included from include/net/inet_sock.h:19:
>> include/linux/netdevice.h:5617:35: error: use of undeclared identifier 'NETIF_F_GSO_IPXIP6'; did you mean 'NETIF_F_GSO_IPXIP6_BIT'?
BUILD_BUG_ON(SKB_GSO_IPXIP6 != (NETIF_F_GSO_IPXIP6 >> NETIF_F_GSO_SHIFT));
^~~~~~~~~~~~~~~~~~
NETIF_F_GSO_IPXIP6_BIT
include/linux/build_bug.h:50:19: note: expanded from macro 'BUILD_BUG_ON'
BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
^
include/linux/build_bug.h:39:58: note: expanded from macro 'BUILD_BUG_ON_MSG'
#define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
^
include/linux/compiler_types.h:322:22: note: expanded from macro 'compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^
include/linux/compiler_types.h:310:23: note: expanded from macro '_compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
^
include/linux/compiler_types.h:302:9: note: expanded from macro '__compiletime_assert'
if (!(condition)) \
^
include/linux/netdev_features.h:42:2: note: 'NETIF_F_GSO_IPXIP6_BIT' declared here
NETIF_F_GSO_IPXIP6_BIT, /* ... IP4 or IP6 over IP6 with TSO */
^
In file included from net/core/sock.c:91:
In file included from include/linux/errqueue.h:6:
In file included from include/net/ip.h:29:
In file included from include/net/inet_sock.h:19:
>> include/linux/netdevice.h:5618:38: error: use of undeclared identifier 'NETIF_F_GSO_UDP_TUNNEL'; did you mean 'NETIF_F_GSO_UDP_TUNNEL_BIT'?
BUILD_BUG_ON(SKB_GSO_UDP_TUNNEL != (NETIF_F_GSO_UDP_TUNNEL >> NETIF_F_GSO_SHIFT));
^~~~~~~~~~~~~~~~~~~~~~
NETIF_F_GSO_UDP_TUNNEL_BIT
include/linux/build_bug.h:50:19: note: expanded from macro 'BUILD_BUG_ON'
BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
^
include/linux/build_bug.h:39:58: note: expanded from macro 'BUILD_BUG_ON_MSG'
#define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
^
include/linux/compiler_types.h:322:22: note: expanded from macro 'compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^
include/linux/compiler_types.h:310:23: note: expanded from macro '_compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
^
include/linux/compiler_types.h:302:9: note: expanded from macro '__compiletime_assert'
if (!(condition)) \
^
include/linux/netdev_features.h:43:2: note: 'NETIF_F_GSO_UDP_TUNNEL_BIT' declared here
NETIF_F_GSO_UDP_TUNNEL_BIT, /* ... UDP TUNNEL with TSO */
^
In file included from net/core/sock.c:91:
In file included from include/linux/errqueue.h:6:
In file included from include/net/ip.h:29:
In file included from include/net/inet_sock.h:19:
>> include/linux/netdevice.h:5619:43: error: use of undeclared identifier 'NETIF_F_GSO_UDP_TUNNEL_CSUM'
BUILD_BUG_ON(SKB_GSO_UDP_TUNNEL_CSUM != (NETIF_F_GSO_UDP_TUNNEL_CSUM >> NETIF_F_GSO_SHIFT));
^
>> include/linux/netdevice.h:5620:35: error: use of undeclared identifier 'NETIF_F_GSO_PARTIAL'; did you mean 'NETIF_F_GSO_PARTIAL_BIT'?
BUILD_BUG_ON(SKB_GSO_PARTIAL != (NETIF_F_GSO_PARTIAL >> NETIF_F_GSO_SHIFT));
^~~~~~~~~~~~~~~~~~~
NETIF_F_GSO_PARTIAL_BIT
include/linux/build_bug.h:50:19: note: expanded from macro 'BUILD_BUG_ON'
BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
^
include/linux/build_bug.h:39:58: note: expanded from macro 'BUILD_BUG_ON_MSG'
#define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
^
include/linux/compiler_types.h:322:22: note: expanded from macro 'compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^
include/linux/compiler_types.h:310:23: note: expanded from macro '_compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
^
include/linux/compiler_types.h:302:9: note: expanded from macro '__compiletime_assert'
if (!(condition)) \
^
include/linux/netdev_features.h:45:2: note: 'NETIF_F_GSO_PARTIAL_BIT' declared here
NETIF_F_GSO_PARTIAL_BIT, /* ... Only segment inner-most L4
^
In file included from net/core/sock.c:91:
In file included from include/linux/errqueue.h:6:
In file included from include/net/ip.h:29:
In file included from include/net/inet_sock.h:19:
>> include/linux/netdevice.h:5621:42: error: use of undeclared identifier 'NETIF_F_GSO_TUNNEL_REMCSUM'; did you mean 'NETIF_F_GSO_TUNNEL_REMCSUM_BIT'?
BUILD_BUG_ON(SKB_GSO_TUNNEL_REMCSUM != (NETIF_F_GSO_TUNNEL_REMCSUM >> NETIF_F_GSO_SHIFT));
^~~~~~~~~~~~~~~~~~~~~~~~~~
NETIF_F_GSO_TUNNEL_REMCSUM_BIT
include/linux/build_bug.h:50:19: note: expanded from macro 'BUILD_BUG_ON'
BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
^
include/linux/build_bug.h:39:58: note: expanded from macro 'BUILD_BUG_ON_MSG'
#define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
^
include/linux/compiler_types.h:322:22: note: expanded from macro 'compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^
include/linux/compiler_types.h:310:23: note: expanded from macro '_compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
^
include/linux/compiler_types.h:302:9: note: expanded from macro '__compiletime_assert'
if (!(condition)) \
^
include/linux/netdev_features.h:49:2: note: 'NETIF_F_GSO_TUNNEL_REMCSUM_BIT' declared here
NETIF_F_GSO_TUNNEL_REMCSUM_BIT, /* ... TUNNEL with TSO & REMCSUM */
^
In file included from net/core/sock.c:91:
In file included from include/linux/errqueue.h:6:
In file included from include/net/ip.h:29:
In file included from include/net/inet_sock.h:19:
>> include/linux/netdevice.h:5622:35: error: use of undeclared identifier 'NETIF_F_GSO_SCTP'; did you mean 'NETIF_F_GSO_BIT'?
BUILD_BUG_ON(SKB_GSO_SCTP != (NETIF_F_GSO_SCTP >> NETIF_F_GSO_SHIFT));
^~~~~~~~~~~~~~~~
NETIF_F_GSO_BIT
include/linux/build_bug.h:50:19: note: expanded from macro 'BUILD_BUG_ON'
BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
^
include/linux/build_bug.h:39:58: note: expanded from macro 'BUILD_BUG_ON_MSG'
#define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
^
include/linux/compiler_types.h:322:22: note: expanded from macro 'compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^
include/linux/compiler_types.h:310:23: note: expanded from macro '_compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
^
include/linux/compiler_types.h:302:9: note: expanded from macro '__compiletime_assert'
if (!(condition)) \
^
include/linux/netdev_features.h:24:2: note: 'NETIF_F_GSO_BIT' declared here
NETIF_F_GSO_BIT, /* Enable software GSO. */
^
In file included from net/core/sock.c:91:
In file included from include/linux/errqueue.h:6:
In file included from include/net/ip.h:29:
In file included from include/net/inet_sock.h:19:
>> include/linux/netdevice.h:5623:31: error: use of undeclared identifier 'NETIF_F_GSO_ESP'
BUILD_BUG_ON(SKB_GSO_ESP != (NETIF_F_GSO_ESP >> NETIF_F_GSO_SHIFT));
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
..
vim +/NETIF_F_FRAGLIST +3737 include/linux/skbuff.h
690e36e726d00d David S. Miller 2014-08-23 3722
4262e5ccbbb517 Daniel Borkmann 2013-12-06 3723 /**
4262e5ccbbb517 Daniel Borkmann 2013-12-06 3724 * skb_needs_linearize - check if we need to linearize a given skb
4262e5ccbbb517 Daniel Borkmann 2013-12-06 3725 * depending on the given device features.
4262e5ccbbb517 Daniel Borkmann 2013-12-06 3726 * @skb: socket buffer to check
4262e5ccbbb517 Daniel Borkmann 2013-12-06 3727 * @features: net device features
4262e5ccbbb517 Daniel Borkmann 2013-12-06 3728 *
4262e5ccbbb517 Daniel Borkmann 2013-12-06 3729 * Returns true if either:
4262e5ccbbb517 Daniel Borkmann 2013-12-06 3730 * 1. skb has frag_list and the device doesn't support FRAGLIST, or
4262e5ccbbb517 Daniel Borkmann 2013-12-06 3731 * 2. skb is fragmented and the device does not support SG.
4262e5ccbbb517 Daniel Borkmann 2013-12-06 3732 */
4262e5ccbbb517 Daniel Borkmann 2013-12-06 3733 static inline bool skb_needs_linearize(struct sk_buff *skb,
4262e5ccbbb517 Daniel Borkmann 2013-12-06 3734 netdev_features_t features)
4262e5ccbbb517 Daniel Borkmann 2013-12-06 3735 {
4262e5ccbbb517 Daniel Borkmann 2013-12-06 3736 return skb_is_nonlinear(skb) &&
4262e5ccbbb517 Daniel Borkmann 2013-12-06 @3737 ((skb_has_frag_list(skb) && !(features & NETIF_F_FRAGLIST)) ||
4262e5ccbbb517 Daniel Borkmann 2013-12-06 @3738 (skb_shinfo(skb)->nr_frags && !(features & NETIF_F_SG)));
4262e5ccbbb517 Daniel Borkmann 2013-12-06 3739 }
4262e5ccbbb517 Daniel Borkmann 2013-12-06 3740
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 38675 bytes --]
next prev parent reply other threads:[~2021-11-07 12:11 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-07 10:15 [RFCv4 PATCH net-next] net: extend netdev_features_t Jian Shen
2021-11-07 11:48 ` kernel test robot
2021-11-07 11:48 ` kernel test robot
2021-11-07 12:10 ` kernel test robot [this message]
2021-11-07 12:10 ` kernel test robot
2021-11-09 22:32 ` Andrew Lunn
2021-11-10 1:17 ` shenjian (K)
2021-11-10 13:36 ` Andrew Lunn
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=202111072012.RLqHHlu2-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=llvm@lists.linux.dev \
--cc=shenjian15@huawei.com \
/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.