Commit 19cfa6ff authored by Florian Fainelli's avatar Florian Fainelli Committed by Zheng Zengkai
Browse files

scripts/gdb: fix lx-device-list-bus and lx-device-list-class

stable inclusion
from stable-v6.6.7
commit af448bb2eaba0d069f66b069a15440fcd36a21ca
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8SSQ4

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=af448bb2eaba0d069f66b069a15440fcd36a21ca

--------------------------------

[ Upstream commit 801a2b1b49f4dcf06703130922806e9c639c2ca8 ]

After the conversion to bus_to_subsys() and class_to_subsys(), the gdb
scripts listing the system buses and classes respectively was broken, fix
those by returning the subsys_priv pointer and have the various caller
de-reference either the 'bus' or 'class' structure members accordingly.

Link: https://lkml.kernel.org/r/20231130043317.174188-1-florian.fainelli@broadcom.com


Fixes: 7b884b7f ("driver core: class.c: convert to only use class_to_subsys")
Signed-off-by: default avatarFlorian Fainelli <florian.fainelli@broadcom.com>
Tested-by: default avatarKuan-Ying Lee <Kuan-Ying.Lee@mediatek.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Jan Kiszka <jan.kiszka@siemens.com>
Cc: Kieran Bingham <kbingham@kernel.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent f3fc717b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment