Re: [PATCH v3] driver core: Add timeout for device shutdown

From: kernel test robot
Date: Thu Jun 06 2024 - 20:04:38 EST


Hi Soumya,

kernel test robot noticed the following build warnings:

[auto build test WARNING on driver-core/driver-core-testing]
[also build test WARNING on driver-core/driver-core-next driver-core/driver-core-linus linus/master v6.10-rc2 next-20240606]
[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#_base_tree_information]

url: https://github.com/intel-lab-lkp/linux/commits/Soumya-Khasnis/driver-core-Add-timeout-for-device-shutdown/20240606-165454
base: driver-core/driver-core-testing
patch link: https://lore.kernel.org/r/20240606085003.GA118950%40sony.com
patch subject: [PATCH v3] driver core: Add timeout for device shutdown
config: x86_64-randconfig-121-20240607 (https://download.01.org/0day-ci/archive/20240607/202406070712.OeIvg472-lkp@xxxxxxxxx/config)
compiler: gcc-13 (Ubuntu 13.2.0-4ubuntu3) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240607/202406070712.OeIvg472-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202406070712.OeIvg472-lkp@xxxxxxxxx/

sparse warnings: (new ones prefixed by >>)
>> drivers/base/core.c:42:32: sparse: sparse: symbol 'devs_shutdown' was not declared. Should it be static?
drivers/base/core.c: note: in included file (through include/linux/resource_ext.h, include/linux/acpi.h):
include/linux/list.h:83:21: sparse: sparse: self-comparison always evaluates to true
include/linux/list.h:83:21: sparse: sparse: self-comparison always evaluates to true
include/linux/list.h:83:21: sparse: sparse: self-comparison always evaluates to true
include/linux/list.h:83:21: sparse: sparse: self-comparison always evaluates to true
include/linux/list.h:83:21: sparse: sparse: self-comparison always evaluates to true
include/linux/list.h:83:21: sparse: sparse: self-comparison always evaluates to true
include/linux/list.h:83:21: sparse: sparse: self-comparison always evaluates to true
include/linux/list.h:83:21: sparse: sparse: self-comparison always evaluates to true
include/linux/list.h:83:21: sparse: sparse: self-comparison always evaluates to true
include/linux/list.h:83:21: sparse: sparse: self-comparison always evaluates to true

vim +/devs_shutdown +42 drivers/base/core.c

40
41 #ifdef CONFIG_DEVICE_SHUTDOWN_TIMEOUT
> 42 struct device_shutdown_timeout devs_shutdown;
43 #endif
44

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki