tree: https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git bleeding-edge head: ef9088c776e0c49411bfb413ad43d110a9de1519 commit: e511ff6b4174fa81ca7ee16f8c17f7362c08fadf [20/24] ACPI: scan: Walk ACPI device's children using driver core config: x86_64-randconfig-a013-20220620 (https://download.01.org/0day-ci/archive/20220621/202206211629.ncqadywd-lkp@xxxxxxxxx/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project af6d2a0b6825e71965f3e2701a63c239fa0ad70f) 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 # https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git/commit/?id=e511ff6b4174fa81ca7ee16f8c17f7362c08fadf git remote add rafael-pm https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git git fetch --no-tags rafael-pm bleeding-edge git checkout e511ff6b4174fa81ca7ee16f8c17f7362c08fadf # 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/acpi/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot <lkp@xxxxxxxxx> All warnings (new ones prefixed by >>): >> drivers/acpi/scan.c:2449:5: warning: no previous prototype for function 'acpi_bus_trim_one' [-Wmissing-prototypes] int acpi_bus_trim_one(struct acpi_device *adev, void *not_used) ^ drivers/acpi/scan.c:2449:1: note: declare 'static' if the function is not intended to be used outside of this translation unit int acpi_bus_trim_one(struct acpi_device *adev, void *not_used) ^ static 1 warning generated. vim +/acpi_bus_trim_one +2449 drivers/acpi/scan.c 2448 > 2449 int acpi_bus_trim_one(struct acpi_device *adev, void *not_used) 2450 { 2451 struct acpi_scan_handler *handler = adev->handler; 2452 2453 acpi_dev_for_each_child_reverse(adev, acpi_bus_trim_one, NULL); 2454 2455 adev->flags.match_driver = false; 2456 if (handler) { 2457 if (handler->detach) 2458 handler->detach(adev); 2459 2460 adev->handler = NULL; 2461 } else { 2462 device_release_driver(&adev->dev); 2463 } 2464 /* 2465 * Most likely, the device is going away, so put it into D3cold before 2466 * that. 2467 */ 2468 acpi_device_set_power(adev, ACPI_STATE_D3_COLD); 2469 adev->flags.initialized = false; 2470 acpi_device_clear_enumerated(adev); 2471 2472 return 0; 2473 } 2474 -- 0-DAY CI Kernel Test Service https://01.org/lkp