Content-Type: multipart/mixed; boundary="===============6395482167500964043==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: Re: [PATCH RFC 1/4] net: skb: use line number to trace dropped skb Date: Fri, 04 Feb 2022 09:29:22 +0800 Message-ID: <202202040234.v2s33Nzf-lkp@intel.com> In-Reply-To: <20220203153731.8992-2-dongli.zhang@oracle.com> List-Id: --===============6395482167500964043== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Dongli, [FYI, it's a private test report for your RFC patch.] [auto build test WARNING on net/master] [also build test WARNING on horms-ipvs/master net-next/master linus/master = v5.17-rc2 next-20220203] [cannot apply to rostedt-trace/for-next mst-vhost/linux-next] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Dongli-Zhang/net-skb-to-us= e-function-line-pair-as-reason-for-kfree_skb_reason/20220203-234047 base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net.git 4a81f= 6da9cb2d1ef911131a6fd8bd15cb61fc772 config: arc-allyesconfig (https://download.01.org/0day-ci/archive/20220204/= 202202040234.v2s33Nzf-lkp(a)intel.com/config) compiler: arceb-elf-gcc (GCC) 11.2.0 reproduce (this is a W=3D1 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/f4f541c242dc39728703547e3= 088572a7f7e2f38 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Dongli-Zhang/net-skb-to-use-functi= on-line-pair-as-reason-for-kfree_skb_reason/20220203-234047 git checkout f4f541c242dc39728703547e3088572a7f7e2f38 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dgcc-11.2.0 make.cross= O=3Dbuild_dir ARCH=3Darc SHELL=3D/bin/bash net/core/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> net/core/drop_monitor.c:114:38: warning: 'enum skb_drop_reason' declared= inside parameter list will not be visible outside of this definition or de= claration 114 | enum skb_drop_reason reason); | ^~~~~~~~~~~~~~~ net/core/drop_monitor.c:268:38: warning: 'enum skb_drop_reason' declared= inside parameter list will not be visible outside of this definition or de= claration 268 | enum skb_drop_reason reason) | ^~~~~~~~~~~~~~~ net/core/drop_monitor.c:268:54: error: parameter 4 ('reason') has incomp= lete type 268 | enum skb_drop_reason reason) | ~~~~~~~~~~~~~~~~~~~~~^~~~~~ net/core/drop_monitor.c:266:13: error: function declaration isn't a prot= otype [-Werror=3Dstrict-prototypes] 266 | static void trace_kfree_skb_hit(void *ignore, struct sk_buff *sk= b, | ^~~~~~~~~~~~~~~~~~~ net/core/drop_monitor.c:497:52: warning: 'enum skb_drop_reason' declared= inside parameter list will not be visible outside of this definition or de= claration 497 | enum skb_drop_reas= on reason) | ^~~~~~~~~~~~~= ~~ net/core/drop_monitor.c:497:68: error: parameter 4 ('reason') has incomp= lete type 497 | enum skb_drop_reas= on reason) | ~~~~~~~~~~~~~~~~~~= ~~~^~~~~~ net/core/drop_monitor.c:494:13: error: function declaration isn't a prot= otype [-Werror=3Dstrict-prototypes] 494 | static void net_dm_packet_trace_kfree_skb_hit(void *ignore, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ net/core/drop_monitor.c: In function 'net_dm_trace_on_set': net/core/drop_monitor.c:1136:42: error: passing argument 1 of 'register_= trace_kfree_skb' from incompatible pointer type [-Werror=3Dincompatible-poi= nter-types] 1136 | rc =3D register_trace_kfree_skb(ops->kfree_skb_probe, NU= LL); | ~~~^~~~~~~~~~~~~~~~~ | | | void (*)(void *, struct= sk_buff *, void *, enum skb_drop_reason) In file included from include/trace/events/skb.h:10, from net/core/drop_monitor.c:34: include/linux/tracepoint.h:260:38: note: expected 'void (*)(void *, stru= ct sk_buff *, void *, unsigned int)' but argument is of type 'void (*)(void= *, struct sk_buff *, void *, enum skb_drop_reason)' 260 | register_trace_##name(void (*probe)(data_proto), void *d= ata) \ | ~~~~~~~^~~~~~~~~~~~~~~~~~ include/linux/tracepoint.h:419:9: note: in expansion of macro '__DECLARE= _TRACE' 419 | __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), = \ | ^~~~~~~~~~~~~~~ include/linux/tracepoint.h:553:9: note: in expansion of macro 'DECLARE_T= RACE' 553 | DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) | ^~~~~~~~~~~~~ include/trace/events/skb.h:15:1: note: in expansion of macro 'TRACE_EVEN= T' 15 | TRACE_EVENT(kfree_skb, | ^~~~~~~~~~~ net/core/drop_monitor.c:1151:39: error: passing argument 1 of 'unregiste= r_trace_kfree_skb' from incompatible pointer type [-Werror=3Dincompatible-p= ointer-types] 1151 | unregister_trace_kfree_skb(ops->kfree_skb_probe, NULL); | ~~~^~~~~~~~~~~~~~~~~ | | | void (*)(void *, struct sk= _buff *, void *, enum skb_drop_reason) In file included from include/trace/events/skb.h:10, from net/core/drop_monitor.c:34: include/linux/tracepoint.h:273:40: note: expected 'void (*)(void *, stru= ct sk_buff *, void *, unsigned int)' but argument is of type 'void (*)(void= *, struct sk_buff *, void *, enum skb_drop_reason)' 273 | unregister_trace_##name(void (*probe)(data_proto), void = *data) \ | ~~~~~~~^~~~~~~~~~~~~~~~~~ include/linux/tracepoint.h:419:9: note: in expansion of macro '__DECLARE= _TRACE' 419 | __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), = \ | ^~~~~~~~~~~~~~~ include/linux/tracepoint.h:553:9: note: in expansion of macro 'DECLARE_T= RACE' 553 | DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) | ^~~~~~~~~~~~~ include/trace/events/skb.h:15:1: note: in expansion of macro 'TRACE_EVEN= T' 15 | TRACE_EVENT(kfree_skb, | ^~~~~~~~~~~ net/core/drop_monitor.c: In function 'net_dm_trace_off_set': net/core/drop_monitor.c:1175:39: error: passing argument 1 of 'unregiste= r_trace_kfree_skb' from incompatible pointer type [-Werror=3Dincompatible-p= ointer-types] 1175 | unregister_trace_kfree_skb(ops->kfree_skb_probe, NULL); | ~~~^~~~~~~~~~~~~~~~~ | | | void (*)(void *, struct sk= _buff *, void *, enum skb_drop_reason) In file included from include/trace/events/skb.h:10, from net/core/drop_monitor.c:34: include/linux/tracepoint.h:273:40: note: expected 'void (*)(void *, stru= ct sk_buff *, void *, unsigned int)' but argument is of type 'void (*)(void= *, struct sk_buff *, void *, enum skb_drop_reason)' 273 | unregister_trace_##name(void (*probe)(data_proto), void = *data) \ | ~~~~~~~^~~~~~~~~~~~~~~~~~ include/linux/tracepoint.h:419:9: note: in expansion of macro '__DECLARE= _TRACE' 419 | __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), = \ | ^~~~~~~~~~~~~~~ include/linux/tracepoint.h:553:9: note: in expansion of macro 'DECLARE_T= RACE' 553 | DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) | ^~~~~~~~~~~~~ include/trace/events/skb.h:15:1: note: in expansion of macro 'TRACE_EVEN= T' 15 | TRACE_EVENT(kfree_skb, | ^~~~~~~~~~~ cc1: some warnings being treated as errors vim +114 net/core/drop_monitor.c 28315f7999870b Ido Schimmel 2019-08-11 110 = 28315f7999870b Ido Schimmel 2019-08-11 111 struct net_dm_alert_ops { 28315f7999870b Ido Schimmel 2019-08-11 112 void (*kfree_skb_probe)(void= *ignore, struct sk_buff *skb, c504e5c2f9648a Menglong Dong 2022-01-09 113 void *location, c504e5c2f9648a Menglong Dong 2022-01-09 @114 enum skb_drop_reason reas= on); 28315f7999870b Ido Schimmel 2019-08-11 115 void (*napi_poll_probe)(void= *ignore, struct napi_struct *napi, 28315f7999870b Ido Schimmel 2019-08-11 116 int work, int budget); 28315f7999870b Ido Schimmel 2019-08-11 117 void (*work_item_func)(struc= t work_struct *work); 5e58109b1ea454 Ido Schimmel 2019-08-17 118 void (*hw_work_item_func)(st= ruct work_struct *work); 5855357cd40e8b Ido Schimmel 2020-09-29 119 void (*hw_trap_probe)(void *= ignore, const struct devlink *devlink, 5855357cd40e8b Ido Schimmel 2020-09-29 120 struct sk_buff *skb, 5855357cd40e8b Ido Schimmel 2020-09-29 121 const struct devlink= _trap_metadata *metadata); 28315f7999870b Ido Schimmel 2019-08-11 122 }; 28315f7999870b Ido Schimmel 2019-08-11 123 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============6395482167500964043==--