Messages in this thread | | | Date | Mon, 23 May 2022 10:30:24 +0800 | From | kernel test robot <> | Subject | [tomoyo-tomoyo-test1:master 1/1] drivers/input/mouse/psmouse-smbus.c:320:2: warning: call to __warn_flushing_systemwide_wq declared with 'warning' attribute: Please avoid flushing system-wide workqueues. |
| |
tree: git://git.osdn.net/gitroot/tomoyo/tomoyo-test1.git master head: 84baad17cb8286b6b53b675f8c3d7343ee6a990c commit: 84baad17cb8286b6b53b675f8c3d7343ee6a990c [1/1] workqueue: Wrap flush_workqueue() using a macro config: x86_64-randconfig-a012 (https://download.01.org/0day-ci/archive/20220523/202205231050.yd4wTc2M-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 768a1ca5eccb678947f4155e38a5f5744dcefb56) 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 git remote add tomoyo-tomoyo-test1 git://git.osdn.net/gitroot/tomoyo/tomoyo-test1.git git fetch --no-tags tomoyo-tomoyo-test1 master git checkout 84baad17cb8286b6b53b675f8c3d7343ee6a990c # 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=x86_64 SHELL=/bin/bash drivers/input/mouse/
If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> drivers/input/mouse/psmouse-smbus.c:320:2: warning: call to __warn_flushing_systemwide_wq declared with 'warning' attribute: Please avoid flushing system-wide workqueues. [-Wattribute-warning] flush_scheduled_work(); ^ include/linux/workqueue.h:705:32: note: expanded from macro 'flush_scheduled_work' #define flush_scheduled_work() flush_workqueue(system_wq) ^ include/linux/workqueue.h:695:3: note: expanded from macro 'flush_workqueue' __warn_flushing_systemwide_wq(); \ ^ 1 warning generated.
vim +/warning +320 drivers/input/mouse/psmouse-smbus.c
8eb92e5c91338e Benjamin Tissoires 2017-03-02 316 8eb92e5c91338e Benjamin Tissoires 2017-03-02 317 void psmouse_smbus_module_exit(void) 8eb92e5c91338e Benjamin Tissoires 2017-03-02 318 { 8eb92e5c91338e Benjamin Tissoires 2017-03-02 319 bus_unregister_notifier(&i2c_bus_type, &psmouse_smbus_notifier); 8eb92e5c91338e Benjamin Tissoires 2017-03-02 @320 flush_scheduled_work();
:::::: The code at line 320 was first introduced by commit :::::: 8eb92e5c91338eb19f86ffb2232258337ebf905b Input: psmouse - add support for SMBus companions
:::::: TO: Benjamin Tissoires <benjamin.tissoires@redhat.com> :::::: CC: Dmitry Torokhov <dmitry.torokhov@gmail.com>
-- 0-DAY CI Kernel Test Service https://01.org/lkp
| |