|
@@ -92,7 +92,7 @@ static DEFINE_MUTEX(cgroup_root_mutex);
|
|
|
* registered after that. The mutable section of this array is protected by
|
|
|
* cgroup_mutex.
|
|
|
*/
|
|
|
-#define SUBSYS(_x) &_x ## _subsys,
|
|
|
+#define SUBSYS(_x) [_x ## _subsys_id] = &_x ## _subsys,
|
|
|
#define IS_SUBSYS_ENABLED(option) IS_BUILTIN(option)
|
|
|
static struct cgroup_subsys *subsys[CGROUP_SUBSYS_COUNT] = {
|
|
|
#include <linux/cgroup_subsys.h>
|