Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

workqueue: make wq_subsys const

Now that the driver core can properly handle constant struct bus_type,
move the wq_subsys variable to be a constant structure as well,
placing it into read-only memory which can not be modified at runtime.

Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Suggested-and-reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ricardo B. Marliere <ricardo@marliere.net>
Signed-off-by: Tejun Heo <tj@kernel.org>

authored by

Ricardo B. Marliere and committed by
Tejun Heo
d412ace1 c70e1779

+1 -1
+1 -1
kernel/workqueue.c
··· 6692 6692 __ATTR_NULL, 6693 6693 }; 6694 6694 6695 - static struct bus_type wq_subsys = { 6695 + static const struct bus_type wq_subsys = { 6696 6696 .name = "workqueue", 6697 6697 .dev_groups = wq_sysfs_groups, 6698 6698 };