Content-Type: multipart/mixed; boundary="===============5565086300083624756==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: Re: [RFC][PATCH v6 1/5] trace: Add trace any kernel object Date: Tue, 30 Nov 2021 07:05:54 +0800 Message-ID: <202111300652.yLaNuuKr-lkp@intel.com> In-Reply-To: <20211129164951.220511-2-xiehuan09@gmail.com> List-Id: --===============5565086300083624756== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Jeff, [FYI, it's a private test report for your RFC patch.] [auto build test WARNING on rostedt-trace/for-next] [also build test WARNING on linux/master linus/master v5.16-rc3 next-202111= 29] [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/Jeff-Xie/trace-Introduce-o= bjtrace-trigger-to-trace-the-kernel-object/20211130-041958 base: https://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace= .git for-next config: i386-buildonly-randconfig-r003-20211128 (https://download.01.org/0d= ay-ci/archive/20211130/202111300652.yLaNuuKr-lkp(a)intel.com/config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project df08b2= fe8b35cb63dfb3b49738a3494b9b4e6f8e) 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/88ea43d691b0980bf49b4e579= c39303cf3c9cd72 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Jeff-Xie/trace-Introduce-objtrace-= trigger-to-trace-the-kernel-object/20211130-041958 git checkout 88ea43d691b0980bf49b4e579c39303cf3c9cd72 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dclang make.cross W=3D= 1 O=3Dbuild_dir ARCH=3Di386 SHELL=3D/bin/bash kernel/trace/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> kernel/trace/trace_object.c:518:6: warning: variable 'ret' is used unini= tialized whenever 'if' condition is true [-Wsometimes-uninitialized] if (WARN_ON_ONCE(atomic_read(&trace_object_ref) <=3D 0)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/asm-generic/bug.h:179:33: note: expanded from macro 'WARN_ON_ONC= E' #define WARN_ON_ONCE(condition) WARN_ON(condition) ^~~~~~~~~~~~~~~~~~ include/asm-generic/bug.h:165:28: note: expanded from macro 'WARN_ON' #define WARN_ON(condition) ({ \ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ kernel/trace/trace_object.c:533:9: note: uninitialized use occurs here return ret; ^~~ kernel/trace/trace_object.c:518:2: note: remove the 'if' if its conditio= n is always false if (WARN_ON_ONCE(atomic_read(&trace_object_ref) <=3D 0)) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ kernel/trace/trace_object.c:516:9: note: initialize the variable 'ret' t= o silence this warning int ret; ^ =3D 0 1 warning generated. vim +518 kernel/trace/trace_object.c 513 = 514 static int exit_trace_object(void) 515 { 516 int ret; 517 = > 518 if (WARN_ON_ONCE(atomic_read(&trace_object_ref) <=3D 0)) --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org --===============5565086300083624756==--