[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <170731561842.398.2305673935013890574.tip-bot2@tip-bot2>
Date: Wed, 07 Feb 2024 14:20:18 -0000
From: "tip-bot2 for Ricardo B. Marliere" <tip-bot2@...utronix.de>
To: linux-tip-commits@...r.kernel.org
Cc: "Greg Kroah-Hartman" <gregkh@...uxfoundation.org>,
"Ricardo B. Marliere" <ricardo@...liere.net>,
Thomas Gleixner <tglx@...utronix.de>, x86@...nel.org,
linux-kernel@...r.kernel.org
Subject: [tip: timers/core] clockevents: Make clockevents_subsys const
The following commit has been merged into the timers/core branch of tip:
Commit-ID: 49f1ff50d49fb8b40bc0271177de8092226396e9
Gitweb: https://git.kernel.org/tip/49f1ff50d49fb8b40bc0271177de8092226396e9
Author: Ricardo B. Marliere <ricardo@...liere.net>
AuthorDate: Sun, 04 Feb 2024 10:40:16 -03:00
Committer: Thomas Gleixner <tglx@...utronix.de>
CommitterDate: Wed, 07 Feb 2024 15:11:24 +01:00
clockevents: Make clockevents_subsys const
Now that the driver core can properly handle constant struct bus_type,
move the clockevents_subsys variable to be a constant structure as well,
placing it into read-only memory which can not be modified at runtime.
Suggested-by: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Signed-off-by: Ricardo B. Marliere <ricardo@...liere.net>
Signed-off-by: Thomas Gleixner <tglx@...utronix.de>
Reviewed-by: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Link: https://lore.kernel.org/r/20240204-bus_cleanup-time-v1-2-207ec18e24b8@marliere.net
---
kernel/time/clockevents.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/time/clockevents.c b/kernel/time/clockevents.c
index 960143b..a7ca458 100644
--- a/kernel/time/clockevents.c
+++ b/kernel/time/clockevents.c
@@ -659,7 +659,7 @@ void tick_cleanup_dead_cpu(int cpu)
#endif
#ifdef CONFIG_SYSFS
-static struct bus_type clockevents_subsys = {
+static const struct bus_type clockevents_subsys = {
.name = "clockevents",
.dev_name = "clockevent",
};
Powered by blists - more mailing lists