Content-Type: multipart/mixed; boundary="===============7801842861358045145==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: Re: [PATCH v2 net-next 02/23] lib: add tests for reference tracker Date: Sun, 05 Dec 2021 07:39:16 +0800 Message-ID: <202112050729.hISLa0oF-lkp@intel.com> In-Reply-To: <20211203024640.1180745-3-eric.dumazet@gmail.com> List-Id: --===============7801842861358045145== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Eric, I love your patch! Yet something to improve: [auto build test ERROR on net-next/master] url: https://github.com/0day-ci/linux/commits/Eric-Dumazet/net-add-preli= minary-netdev-refcount-tracking/20211203-104930 base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git = fc993be36f9ea7fc286d84d8471a1a20e871aad4 config: nios2-allyesconfig (https://download.01.org/0day-ci/archive/2021120= 5/202112050729.hISLa0oF-lkp(a)intel.com/config) compiler: nios2-linux-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/98ad7e89138f4176a549203b6= e23c2dc1cb9581d git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Eric-Dumazet/net-add-preliminary-n= etdev-refcount-tracking/20211203-104930 git checkout 98ad7e89138f4176a549203b6e23c2dc1cb9581d # 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=3Dnios2 SHELL=3D/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): lib/ref_tracker.c: In function 'ref_tracker_alloc': >> lib/ref_tracker.c:80:22: error: implicit declaration of function 'stack_= trace_save'; did you mean 'stack_depot_save'? [-Werror=3Dimplicit-function-= declaration] 80 | nr_entries =3D stack_trace_save(entries, ARRAY_SIZE(entr= ies), 1); | ^~~~~~~~~~~~~~~~ | stack_depot_save >> lib/ref_tracker.c:81:22: error: implicit declaration of function 'filter= _irq_stacks' [-Werror=3Dimplicit-function-declaration] 81 | nr_entries =3D filter_irq_stacks(entries, nr_entries); | ^~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors Kconfig warnings: (for reference only) WARNING: unmet direct dependencies detected for REF_TRACKER Depends on STACKTRACE_SUPPORT Selected by - TEST_REF_TRACKER && RUNTIME_TESTING_MENU && DEBUG_KERNEL vim +80 lib/ref_tracker.c fc2d884275133c Eric Dumazet 2021-12-02 64 = fc2d884275133c Eric Dumazet 2021-12-02 65 int ref_tracker_alloc(struct re= f_tracker_dir *dir, fc2d884275133c Eric Dumazet 2021-12-02 66 struct ref_tracker **tr= ackerp, fc2d884275133c Eric Dumazet 2021-12-02 67 gfp_t gfp) fc2d884275133c Eric Dumazet 2021-12-02 68 { fc2d884275133c Eric Dumazet 2021-12-02 69 unsigned long entries[REF_TRAC= KER_STACK_ENTRIES]; fc2d884275133c Eric Dumazet 2021-12-02 70 struct ref_tracker *tracker; fc2d884275133c Eric Dumazet 2021-12-02 71 unsigned int nr_entries; fc2d884275133c Eric Dumazet 2021-12-02 72 unsigned long flags; fc2d884275133c Eric Dumazet 2021-12-02 73 = fc2d884275133c Eric Dumazet 2021-12-02 74 *trackerp =3D tracker =3D kzal= loc(sizeof(*tracker), gfp | __GFP_NOFAIL); fc2d884275133c Eric Dumazet 2021-12-02 75 if (unlikely(!tracker)) { fc2d884275133c Eric Dumazet 2021-12-02 76 pr_err_once("memory allocatio= n failure, unreliable refcount tracker.\n"); fc2d884275133c Eric Dumazet 2021-12-02 77 refcount_inc(&dir->untracked); fc2d884275133c Eric Dumazet 2021-12-02 78 return -ENOMEM; fc2d884275133c Eric Dumazet 2021-12-02 79 } fc2d884275133c Eric Dumazet 2021-12-02 @80 nr_entries =3D stack_trace_sav= e(entries, ARRAY_SIZE(entries), 1); fc2d884275133c Eric Dumazet 2021-12-02 @81 nr_entries =3D filter_irq_stac= ks(entries, nr_entries); fc2d884275133c Eric Dumazet 2021-12-02 82 tracker->alloc_stack_handle = =3D stack_depot_save(entries, nr_entries, gfp); fc2d884275133c Eric Dumazet 2021-12-02 83 = fc2d884275133c Eric Dumazet 2021-12-02 84 spin_lock_irqsave(&dir->lock, = flags); fc2d884275133c Eric Dumazet 2021-12-02 85 list_add(&tracker->head, &dir-= >list); fc2d884275133c Eric Dumazet 2021-12-02 86 spin_unlock_irqrestore(&dir->l= ock, flags); fc2d884275133c Eric Dumazet 2021-12-02 87 return 0; fc2d884275133c Eric Dumazet 2021-12-02 88 } fc2d884275133c Eric Dumazet 2021-12-02 89 EXPORT_SYMBOL_GPL(ref_tracker_a= lloc); fc2d884275133c Eric Dumazet 2021-12-02 90 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============7801842861358045145==--