]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
driver core: faux: stop using static struct device
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Jan 2026 10:29:45 +0000 (11:29 +0100)
committerSasha Levin <sashal@kernel.org>
Wed, 4 Mar 2026 12:20:27 +0000 (07:20 -0500)
commit21a85c632f52e9303093124c3ef83fcc2f4b7941
tree908b8f0963c91614e193678967102b2ecf34a1b6
parent5c6c2cc5d866c07b452813b906cb76f840640ad1
driver core: faux: stop using static struct device

[ Upstream commit 61b76d07d2b46a86ea91267d36449fc78f8a1f6e ]

faux_bus_root should not have been a static struct device, but rather a
dynamically created structure so that lockdep and other testing tools do
not trip over it (as well as being the right thing overall to do.)  Fix
this up by making it properly dynamic.

Reported-by: Gui-Dong Han <hanguidong02@gmail.com>
Closes: https://lore.kernel.org/lkml/CALbr=LYKJsj6cbrDLA07qioKhWJcRj+gW8=bq5=4ZvpEe2c4Yg@mail.gmail.com/
Reviewed-by: Danilo Krummrich <dakr@kernel.org>
Link: https://patch.msgid.link/2026012145-lapping-countless-ef81@gregkh
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/base/faux.c