From: Greg Kroah-Hartman Date: Sun, 14 Sep 2025 13:44:13 +0000 (+0200) Subject: intel_th: make intel_th_bus_type constant X-Git-Tag: v6.19-rc1~65^2~85 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=69cddd82ef78bbd5a92d11f725ab22a84b561a10;p=thirdparty%2Fkernel%2Flinux.git intel_th: make intel_th_bus_type constant Now that the driver core can properly handle constant struct bus_type, move the intel_th_bus_type variable to be a constant structure as well, placing it into read-only memory which can not be modified at runtime. Cc: Alexander Shishkin Reviewed-by: Greg Kroah-Hartman Signed-off-by: Greg Kroah-Hartman Link: https://patch.msgid.link/2025091412-machine-despair-248e@gregkh Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/hwtracing/intel_th/core.c b/drivers/hwtracing/intel_th/core.c index 47d9e6c3bac04..ba7c8b184cbcb 100644 --- a/drivers/hwtracing/intel_th/core.c +++ b/drivers/hwtracing/intel_th/core.c @@ -166,7 +166,7 @@ static void intel_th_remove(struct device *dev) pm_runtime_enable(dev); } -static struct bus_type intel_th_bus = { +static const struct bus_type intel_th_bus = { .name = "intel_th", .match = intel_th_match, .probe = intel_th_probe,