From: kernel test robot <lkp@intel.com>
To: "Rafael J. Wysocki" <rjw@rjwysocki.net>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
linux-acpi@vger.kernel.org, devel@acpica.org,
linux-pm@vger.kernel.org,
Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Subject: [rafael-pm:bleeding-edge 20/24] drivers/acpi/scan.c:2449:5: warning: no previous prototype for function 'acpi_bus_trim_one'
Date: Tue, 21 Jun 2022 16:18:43 +0800 [thread overview]
Message-ID: <202206211629.ncqadywd-lkp@intel.com> (raw)
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@intel.com/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@intel.com>
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
reply other threads:[~2022-06-21 8:19 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202206211629.ncqadywd-lkp@intel.com \
--to=lkp@intel.com \
--cc=andriy.shevchenko@linux.intel.com \
--cc=devel@acpica.org \
--cc=kbuild-all@lists.01.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=rjw@rjwysocki.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox