Re: [PATCH] scripts/gdb: Fix lx-device-list-bus and lx-device-list-class

From: Florian Fainelli
Date: Thu Nov 30 2023 - 17:00:42 EST


On 11/30/23 13:51, Andrew Morton wrote:
On Wed, 29 Nov 2023 20:33:16 -0800 Florian Fainelli <florian.fainelli@xxxxxxxxxxxx> wrote:

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.

Fixes: 83b9148df2c9 ("driver core: bus: bus iterator cleanups")
Fixes: 7b884b7f24b4 ("driver core: class.c: convert to only use class_to_subsys")

I don't know how -stable maintainers handle more than one Fixes:. One
of the above was released in 6.3, the other in 6.4. What are they to
do?

Neither are stable kernels fortunately, so any kernel >= 6.4 where both issues are present should be able to cleanly cherry-pick the change.

I suppose this should have called for me to issue two patches, one fixing lx-device-list-bus and the other one fixing lx-device-list-class, though it seems like this is such a niche usage that it may not matter that much.


My opinion: developers should use Fixes: as a request to -stable
maintainers to target a particular kernel version (and later).

If the developers indeed want to fix both kernel versions then wouldn't
two patches be best?


They probably would, or I could submit a targeted fix for 6.3 for instance.
--
Florian

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature