lkml.org 
[lkml]   [2022]   [May]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectdrivers/infiniband/core/device.c:2857:2: error: call to __compiletime_assert_526 declared with 'error' attribute: Please avoid flushing system_unbound_wq.
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 <lkp@intel.com>

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(); \
^
<scratch space>: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

\
 
 \ /
  Last update: 2022-05-16 20:52    [W:0.039 / U:0.464 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site