From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 81FEE1376 for ; Mon, 16 May 2022 18:51:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1652727109; x=1684263109; h=date:from:to:cc:subject:message-id:mime-version; bh=Oa/CBKFnhtFD0QwGGES1TErn9njc6jYJ9b/JNevHKWc=; b=E2QZoIjjS1+JnhNBsDuNDOCnwkjaAgVKyjxAfxiQzQgZN2cp3Ng571Oc ik766yI5KgqVUCzxR1ZxUxNg1f7juZvKXtcQWxZoRzF12evJUzHTaJA1r VuQT+0dScqNChUsGe8g/dzYZktZDCCudNnT0+rzD4I4Vy5IC+IS0L2nbv Y8INXOP5zy7d2J/f4C8AxA14BWV+VVgfXRBzgnsUx0kCt43217gT1f+yD QgkQNXX5WRoVBlOWHNmj3p+6rFW6xJiDFHvrjb9dhVXjnvPT7KOZJDZL4 L6XT1jzj/smvmDOWxQor97s2U10IWFC5g8fpt0aQoajeeG4GA1UYggIrN w==; X-IronPort-AV: E=McAfee;i="6400,9594,10349"; a="258493622" X-IronPort-AV: E=Sophos;i="5.91,230,1647327600"; d="scan'208";a="258493622" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 May 2022 11:51:47 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,230,1647327600"; d="scan'208";a="699673694" Received: from lkp-server02.sh.intel.com (HELO 242b25809ac7) ([10.239.97.151]) by orsmga004.jf.intel.com with ESMTP; 16 May 2022 11:51:45 -0700 Received: from kbuild by 242b25809ac7 with local (Exim 4.95) (envelope-from ) id 1nqfom-0000Gq-GH; Mon, 16 May 2022 18:51:44 +0000 Date: Tue, 17 May 2022 02:51:10 +0800 From: kernel test robot To: Tetsuo Handa Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, 0day robot Subject: drivers/infiniband/core/device.c:2857:2: error: call to __compiletime_assert_526 declared with 'error' attribute: Please avoid flushing system_unbound_wq. Message-ID: <202205170247.XQQJv8KQ-lkp@intel.com> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline tree: https://github.com/intel-lab-lkp/linux/commits/UPDATE-20220516-130223/Tetsuo-Handa/checkpatch-warn-about-flushing-system-wide-workqueues/20220425-073327 head: db9b183910399bd93ea36329bfef7228a09c96ec commit: db9b183910399bd93ea36329bfef7228a09c96ec workqueue: Wrap flush_workqueue() using a macro date: 14 hours ago config: mips-randconfig-r026-20220516 (https://download.01.org/0day-ci/archive/20220517/202205170247.XQQJv8KQ-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 853fa8ee225edf2d0de94b0dcbd31bea916e825e) 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 mips cross compiling tool for clang build # apt-get install binutils-mips-linux-gnu # https://github.com/intel-lab-lkp/linux/commit/db9b183910399bd93ea36329bfef7228a09c96ec git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review UPDATE-20220516-130223/Tetsuo-Handa/checkpatch-warn-about-flushing-system-wide-workqueues/20220425-073327 git checkout db9b183910399bd93ea36329bfef7228a09c96ec # 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=mips SHELL=/bin/bash drivers/infiniband/core/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): >> drivers/infiniband/core/device.c:2857:2: error: call to __compiletime_assert_526 declared with 'error' attribute: Please avoid flushing system_unbound_wq. flush_workqueue(system_unbound_wq); ^ include/linux/workqueue.h:682:2: note: expanded from macro 'flush_workqueue' BUILD_BUG_ON_MSG(__builtin_constant_p(&(wq) == &system_unbound_wq) && \ ^ include/linux/build_bug.h:39:37: note: expanded from macro 'BUILD_BUG_ON_MSG' #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) ^ include/linux/compiler_types.h:352:2: note: expanded from macro 'compiletime_assert' _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) ^ include/linux/compiler_types.h:340:2: note: expanded from macro '_compiletime_assert' __compiletime_assert(condition, msg, prefix, suffix) ^ include/linux/compiler_types.h:333:4: note: expanded from macro '__compiletime_assert' prefix ## suffix(); \ ^ :150:1: note: expanded from here __compiletime_assert_526 ^ 1 error generated. vim +/error +2857 drivers/infiniband/core/device.c ^1da177e4c3f41 Linus Torvalds 2005-04-16 2840 ^1da177e4c3f41 Linus Torvalds 2005-04-16 2841 static void __exit ib_core_cleanup(void) ^1da177e4c3f41 Linus Torvalds 2005-04-16 2842 { 5ef8c0c180a631 Jason Gunthorpe 2018-05-28 2843 roce_gid_mgmt_cleanup(); 6c80b41abe22ae Leon Romanovsky 2017-06-20 2844 nldev_exit(); c9901724a2f141 Leon Romanovsky 2017-06-05 2845 rdma_nl_unregister(RDMA_NL_LS); 4e0f7b9070726a Parav Pandit 2019-02-26 2846 unregister_pernet_device(&rdma_dev_net_ops); 42df744c4166af Janne Karhunen 2019-06-14 2847 unregister_blocking_lsm_notifier(&ibdev_lsm_nb); c2e49c92326f9b Mark Bloch 2016-05-19 2848 ib_sa_cleanup(); 4c2cb4220431cb Mark Bloch 2016-05-19 2849 ib_mad_cleanup(); e3f20f02864f6d Leon Romanovsky 2016-05-19 2850 addr_cleanup(); c9901724a2f141 Leon Romanovsky 2017-06-05 2851 rdma_nl_exit(); 55aeed06544f67 Jason Gunthorpe 2015-08-04 2852 class_unregister(&ib_class); f794809a7259df Jack Morgenstein 2018-08-27 2853 destroy_workqueue(ib_comp_unbound_wq); 14d3a3b2498eda Christoph Hellwig 2015-12-11 2854 destroy_workqueue(ib_comp_wq); f7c6a7b5d59980 Roland Dreier 2007-03-04 2855 /* Make sure that any pending umem accounting work is done. */ f06267104dd911 Tejun Heo 2010-10-19 2856 destroy_workqueue(ib_wq); d0899892edd089 Jason Gunthorpe 2019-02-12 @2857 flush_workqueue(system_unbound_wq); e59178d895afa2 Jason Gunthorpe 2019-02-06 2858 WARN_ON(!xa_empty(&clients)); 0df91bb67334ee Jason Gunthorpe 2019-02-06 2859 WARN_ON(!xa_empty(&devices)); ^1da177e4c3f41 Linus Torvalds 2005-04-16 2860 } ^1da177e4c3f41 Linus Torvalds 2005-04-16 2861 -- 0-DAY CI Kernel Test Service https://01.org/lkp