lkml.org 
[lkml]   [2022]   [Jun]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[cilium:pr/meta4 2/2] include/net/sch_generic.h:744:14: error: no member named 'tc_at_ingress' in 'struct sk_buff'
tree:   https://github.com/cilium/linux.git pr/meta4
head: dcea837b60f0d9f8f3cdae284680659042f560d1
commit: dcea837b60f0d9f8f3cdae284680659042f560d1 [2/2] bpf: Add fd-based API to attach tc BPF programs
config: arm-buildonly-randconfig-r002-20220617 (https://download.01.org/0day-ci/archive/20220618/202206180759.g5Fqzf3d-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project d764aa7fc6b9cc3fbe960019018f5f9e941eb0a6)
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
# install arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# https://github.com/cilium/linux/commit/dcea837b60f0d9f8f3cdae284680659042f560d1
git remote add cilium https://github.com/cilium/linux.git
git fetch --no-tags cilium pr/meta4
git checkout dcea837b60f0d9f8f3cdae284680659042f560d1
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash net/packet/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

In file included from net/packet/af_packet.c:52:
In file included from include/linux/filter.h:26:
>> include/net/sch_generic.h:744:14: error: no member named 'tc_at_ingress' in 'struct sk_buff'
return skb->tc_at_ingress;
~~~ ^
>> include/net/sch_generic.h:753:11: error: no member named 'tc_skip_classify' in 'struct sk_buff'
if (skb->tc_skip_classify) {
~~~ ^
include/net/sch_generic.h:754:8: error: no member named 'tc_skip_classify' in 'struct sk_buff'
skb->tc_skip_classify = 0;
~~~ ^
include/net/sch_generic.h:1361:27: error: no member named 'sch_ingress' in 'struct net_device'
rcu_assign_pointer(dev->sch_ingress, entry);
~~~ ^
include/linux/rcupdate.h:454:15: note: expanded from macro 'rcu_assign_pointer'
WRITE_ONCE((p), (typeof(p))(_r_a_p__v)); \
^
include/asm-generic/rwonce.h:60:33: note: expanded from macro 'WRITE_ONCE'
compiletime_assert_rwonce_type(x); \
^
include/asm-generic/rwonce.h:36:35: note: expanded from macro 'compiletime_assert_rwonce_type'
compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
^
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
include/linux/compiler_types.h:352:22: note: expanded from macro 'compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^~~~~~~~~
include/linux/compiler_types.h:340:23: note: expanded from macro '_compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
^~~~~~~~~
include/linux/compiler_types.h:332:9: note: expanded from macro '__compiletime_assert'
if (!(condition)) \
^~~~~~~~~
In file included from net/packet/af_packet.c:52:
In file included from include/linux/filter.h:26:
include/net/sch_generic.h:1361:27: error: no member named 'sch_ingress' in 'struct net_device'
rcu_assign_pointer(dev->sch_ingress, entry);
~~~ ^
include/linux/rcupdate.h:454:15: note: expanded from macro 'rcu_assign_pointer'
WRITE_ONCE((p), (typeof(p))(_r_a_p__v)); \
^
include/asm-generic/rwonce.h:60:33: note: expanded from macro 'WRITE_ONCE'
compiletime_assert_rwonce_type(x); \
^
include/asm-generic/rwonce.h:36:35: note: expanded from macro 'compiletime_assert_rwonce_type'
compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
^
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
include/linux/compiler_types.h:352:22: note: expanded from macro 'compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^~~~~~~~~
include/linux/compiler_types.h:340:23: note: expanded from macro '_compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
^~~~~~~~~
include/linux/compiler_types.h:332:9: note: expanded from macro '__compiletime_assert'
if (!(condition)) \
^~~~~~~~~
In file included from net/packet/af_packet.c:52:
In file included from include/linux/filter.h:26:
include/net/sch_generic.h:1361:27: error: no member named 'sch_ingress' in 'struct net_device'
rcu_assign_pointer(dev->sch_ingress, entry);
~~~ ^
include/linux/rcupdate.h:454:15: note: expanded from macro 'rcu_assign_pointer'
WRITE_ONCE((p), (typeof(p))(_r_a_p__v)); \
^
include/asm-generic/rwonce.h:60:33: note: expanded from macro 'WRITE_ONCE'
compiletime_assert_rwonce_type(x); \
^
include/asm-generic/rwonce.h:36:35: note: expanded from macro 'compiletime_assert_rwonce_type'
compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
^
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
include/linux/compiler_types.h:352:22: note: expanded from macro 'compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^~~~~~~~~
include/linux/compiler_types.h:340:23: note: expanded from macro '_compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
^~~~~~~~~
include/linux/compiler_types.h:332:9: note: expanded from macro '__compiletime_assert'
if (!(condition)) \
^~~~~~~~~
In file included from net/packet/af_packet.c:52:
In file included from include/linux/filter.h:26:
include/net/sch_generic.h:1361:27: error: no member named 'sch_ingress' in 'struct net_device'
rcu_assign_pointer(dev->sch_ingress, entry);
~~~ ^
include/linux/rcupdate.h:454:15: note: expanded from macro 'rcu_assign_pointer'
WRITE_ONCE((p), (typeof(p))(_r_a_p__v)); \
^
include/asm-generic/rwonce.h:60:33: note: expanded from macro 'WRITE_ONCE'
compiletime_assert_rwonce_type(x); \
^
include/asm-generic/rwonce.h:36:35: note: expanded from macro 'compiletime_assert_rwonce_type'
compiletime_assert(__native_word(t) || sizeof(t) == sizeof(long long), \
^
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
include/linux/compiler_types.h:352:22: note: expanded from macro 'compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
^~~~~~~~~
include/linux/compiler_types.h:340:23: note: expanded from macro '_compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
^~~~~~~~~
include/linux/compiler_types.h:332:9: note: expanded from macro '__compiletime_assert'
if (!(condition)) \
^~~~~~~~~
In file included from net/packet/af_packet.c:52:


vim +744 include/net/sch_generic.h

^1da177e4c3f41 Linus Torvalds 2005-04-16 740
fdc5432a7b44ab Daniel Borkmann 2016-01-07 741 static inline bool skb_at_tc_ingress(const struct sk_buff *skb)
fdc5432a7b44ab Daniel Borkmann 2016-01-07 742 {
fdc5432a7b44ab Daniel Borkmann 2016-01-07 743 #ifdef CONFIG_NET_CLS_ACT
8dc07fdbf2054f Willem de Bruijn 2017-01-07 @744 return skb->tc_at_ingress;
fdc5432a7b44ab Daniel Borkmann 2016-01-07 745 #else
fdc5432a7b44ab Daniel Borkmann 2016-01-07 746 return false;
fdc5432a7b44ab Daniel Borkmann 2016-01-07 747 #endif
fdc5432a7b44ab Daniel Borkmann 2016-01-07 748 }
fdc5432a7b44ab Daniel Borkmann 2016-01-07 749
e7246e122aaa99 Willem de Bruijn 2017-01-07 750 static inline bool skb_skip_tc_classify(struct sk_buff *skb)
e7246e122aaa99 Willem de Bruijn 2017-01-07 751 {
e7246e122aaa99 Willem de Bruijn 2017-01-07 752 #ifdef CONFIG_NET_CLS_ACT
e7246e122aaa99 Willem de Bruijn 2017-01-07 @753 if (skb->tc_skip_classify) {
e7246e122aaa99 Willem de Bruijn 2017-01-07 754 skb->tc_skip_classify = 0;
e7246e122aaa99 Willem de Bruijn 2017-01-07 755 return true;
e7246e122aaa99 Willem de Bruijn 2017-01-07 756 }
e7246e122aaa99 Willem de Bruijn 2017-01-07 757 #endif
e7246e122aaa99 Willem de Bruijn 2017-01-07 758 return false;
e7246e122aaa99 Willem de Bruijn 2017-01-07 759 }
e7246e122aaa99 Willem de Bruijn 2017-01-07 760

:::::: The code at line 744 was first introduced by commit
:::::: 8dc07fdbf2054f157e8333f940a1ad728916c786 net-tc: convert tc_at to tc_at_ingress

:::::: TO: Willem de Bruijn <willemb@google.com>
:::::: CC: David S. Miller <davem@davemloft.net>

--
0-DAY CI Kernel Test Service
https://01.org/lkp

\
 
 \ /
  Last update: 2022-06-18 01:16    [W:0.022 / U:0.600 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site