Content-Type: multipart/mixed; boundary="===============5482503069261624097==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: Re: [PATCH V2 1/2] kobject: don't delay to cleanup module kobject Date: Tue, 07 Dec 2021 21:58:32 +0800 Message-ID: <202112072131.XiIJR8RS-lkp@intel.com> In-Reply-To: <20211129034509.2646872-2-ming.lei@redhat.com> List-Id: --===============5482503069261624097== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Ming, Thank you for the patch! Yet something to improve: [auto build test ERROR on driver-core/driver-core-testing] [also build test ERROR on v5.16-rc4 next-20211207] [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/Ming-Lei/kobject-avoid-to-= cleanup-kobject-after-module-is-unloaded/20211129-114940 base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.= git 2043727c2882928a10161ddee52b196b7db402fd config: s390-randconfig-r033-20211207 (https://download.01.org/0day-ci/arch= ive/20211207/202112072131.XiIJR8RS-lkp(a)intel.com/config) compiler: s390-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/39e48129051282ab6eff07460= 02e84cf56218bd7 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Ming-Lei/kobject-avoid-to-cleanup-= kobject-after-module-is-unloaded/20211129-114940 git checkout 39e48129051282ab6eff0746002e84cf56218bd7 # 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=3Ds390 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/kobject.c: In function 'kobject_release': >> lib/kobject.c:741:29: error: 'module_ktype' undeclared (first use in thi= s function); did you mean 'module_state'? 741 | if (kobj->ktype =3D=3D &module_ktype) | ^~~~~~~~~~~~ | module_state lib/kobject.c:741:29: note: each undeclared identifier is reported only = once for each function it appears in vim +741 lib/kobject.c 725 = 726 static void kobject_release(struct kref *kref) 727 { 728 struct kobject *kobj =3D container_of(kref, struct kobject, kref); 729 #ifdef CONFIG_DEBUG_KOBJECT_RELEASE 730 unsigned long delay =3D HZ + HZ * (get_random_int() & 0x3); 731 = 732 /* 733 * Don't delay to release module kobject so that we can detect late 734 * kobject release more effectively because module unloading waits 735 * for completion of module kobject release, see mod_kobject_put. 736 * 737 * Meantime mod_kobject_put() always waits for completion of module 738 * kobject's release, CONFIG_DEBUG_KOBJECT_RELEASE is basically 739 * useless for debugging module kobject's release. 740 */ > 741 if (kobj->ktype =3D=3D &module_ktype) 742 delay =3D 0; 743 = 744 pr_info("kobject: '%s' (%p): %s, parent %p (delayed %ld)\n", 745 kobject_name(kobj), kobj, __func__, kobj->parent, delay); 746 INIT_DELAYED_WORK(&kobj->release, kobject_delayed_cleanup); 747 = 748 schedule_delayed_work(&kobj->release, delay); 749 #else 750 kobject_cleanup(kobj); 751 #endif 752 } 753 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============5482503069261624097==--