Re: [PATCH] ALSA: mark all struct bus_type as const

From: Takashi Iwai
Date: Sat Dec 30 2023 - 04:13:32 EST


On Tue, 19 Dec 2023 14:34:46 +0100,
Greg Kroah-Hartman wrote:
>
> Now that the driver core can properly handle constant struct bus_type,
> move all of the sound subsystem struct bus_type structures as const,
> placing them into read-only memory which can not be modified at runtime.
>
> Note, this fixes a duplicate definition of ac97_bus_type, which somehow
> was declared extern in a .h file, and then static as a prototype in a .c
> file, and then properly later on in the same .c file. Amazing that no
> compiler warning ever showed up for this.
>
> Cc: Jaroslav Kysela <perex@xxxxxxxx>
> Cc: Takashi Iwai <tiwai@xxxxxxxx>
> Cc: Dawei Li <set_pte_at@xxxxxxxxxxx>
> Cc: Yu Liao <liaoyu15@xxxxxxxxxx>
> Cc: "Rafael J. Wysocki" <rafael@xxxxxxxxxx>
> Cc: Hans de Goede <hdegoede@xxxxxxxxxx>
> Cc: linux-sound@xxxxxxxxxxxxxxx
> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>

Applied to for-next branch now. Thanks.


Takashi