From: kernel test robot <lkp@intel.com>
To: Stuart Hayes <stuart.w.hayes@gmail.com>,
linux-kernel@vger.kernel.org,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
"Rafael J . Wysocki" <rafael@kernel.org>,
Tanjore Suresh <tansuresh@google.com>,
Martin Belanger <Martin.Belanger@dell.com>,
Oliver O'Halloran <oohall@gmail.com>,
Daniel Wagner <dwagner@suse.de>, Keith Busch <kbusch@kernel.org>,
Lukas Wunner <lukas@wunner.de>
Cc: oe-kbuild-all@lists.linux.dev, Stuart Hayes <stuart.w.hayes@gmail.com>
Subject: Re: [PATCH] driver core: shut down devices asynchronously
Date: Thu, 17 Aug 2023 06:07:14 +0800 [thread overview]
Message-ID: <202308170534.naCLTFzQ-lkp@intel.com> (raw)
In-Reply-To: <20230816154518.3487-1-stuart.w.hayes@gmail.com>
Hi Stuart,
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.5-rc6 next-20230816]
[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/Stuart-Hayes/driver-core-shut-down-devices-asynchronously/20230816-234737
base: driver-core/driver-core-testing
patch link: https://lore.kernel.org/r/20230816154518.3487-1-stuart.w.hayes%40gmail.com
patch subject: [PATCH] driver core: shut down devices asynchronously
config: loongarch-allyesconfig (https://download.01.org/0day-ci/archive/20230817/202308170534.naCLTFzQ-lkp@intel.com/config)
compiler: loongarch64-linux-gcc (GCC) 12.3.0
reproduce: (https://download.01.org/0day-ci/archive/20230817/202308170534.naCLTFzQ-lkp@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202308170534.naCLTFzQ-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/base/core.c:4762:6: warning: no previous prototype for 'shutdown_dev_work' [-Wmissing-prototypes]
4762 | void shutdown_dev_work(struct work_struct *work)
| ^~~~~~~~~~~~~~~~~
vim +/shutdown_dev_work +4762 drivers/base/core.c
4761
> 4762 void shutdown_dev_work(struct work_struct *work)
4763 {
4764 struct shutdown_work *sd_work = container_of(work, struct shutdown_work, work);
4765 struct shutdown_work *child_sd_work;
4766 struct device *dev = sd_work->dev;
4767
4768 /*
4769 * wait for child devices to finish shutdown
4770 */
4771 list_for_each_entry(child_sd_work, &sd_work->children, node) {
4772 wait_for_completion(&child_sd_work->complete);
4773 }
4774
4775 if (dev) {
4776 /*
4777 * Make sure the device is off the kset list, in the
4778 * event that dev->*->shutdown() doesn't remove it.
4779 */
4780 spin_lock(&devices_kset->list_lock);
4781 list_del_init(&dev->kobj.entry);
4782 spin_unlock(&devices_kset->list_lock);
4783
4784 shutdown_device(dev, dev->parent);
4785 }
4786
4787 complete(&sd_work->complete);
4788 }
4789
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2023-08-16 22:09 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-16 15:45 [PATCH] driver core: shut down devices asynchronously Stuart Hayes
2023-08-16 15:54 ` Lukas Wunner
2023-08-16 19:42 ` stuart hayes
2023-08-16 19:52 ` Lukas Wunner
2023-08-16 22:07 ` kernel test robot [this message]
2023-08-17 0:10 ` kernel test robot
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=202308170534.naCLTFzQ-lkp@intel.com \
--to=lkp@intel.com \
--cc=Martin.Belanger@dell.com \
--cc=dwagner@suse.de \
--cc=gregkh@linuxfoundation.org \
--cc=kbusch@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lukas@wunner.de \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=oohall@gmail.com \
--cc=rafael@kernel.org \
--cc=stuart.w.hayes@gmail.com \
--cc=tansuresh@google.com \
/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