]> git.ipfire.org Git - thirdparty/linux.git/commit
intel_th: make intel_th_bus_type constant
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 14 Sep 2025 13:44:13 +0000 (15:44 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Oct 2025 05:54:24 +0000 (07:54 +0200)
commit69cddd82ef78bbd5a92d11f725ab22a84b561a10
tree1544f1d9d513ac9380dd2a53de26c2605dc176be
parentcdc93023954b8c2c8f228f501d82342cfad53354
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 <alexander.shishkin@linux.intel.com>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://patch.msgid.link/2025091412-machine-despair-248e@gregkh
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwtracing/intel_th/core.c