We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32f78ab commit dedb868Copy full SHA for dedb868
drivers/base/container.c
@@ -24,7 +24,7 @@ static int container_offline(struct device *dev)
24
return cdev->offline ? cdev->offline(cdev) : 0;
25
}
26
27
-struct bus_type container_subsys = {
+const struct bus_type container_subsys = {
28
.name = CONTAINER_BUS_NAME,
29
.dev_name = CONTAINER_BUS_NAME,
30
.online = trivial_online,
include/linux/container.h
@@ -12,7 +12,7 @@
12
#include <linux/device.h>
13
14
/* drivers/base/power/container.c */
15
-extern struct bus_type container_subsys;
+extern const struct bus_type container_subsys;
16
17
struct container_dev {
18
struct device dev;
0 commit comments