[PATCH 7/9] fix compile error in cgroup_taskset_for_each() when skip_css is NULL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The gcc error message is:
include/linux/cgroup.h:587:14: error: request for member ‘ss’ in something
not a structure or union

Signed-off-by: Dwight Engen <dwight.engen@xxxxxxxxxx>
---
 include/linux/cgroup.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h
index 3561d30..9b20ba9 100644
--- a/include/linux/cgroup.h
+++ b/include/linux/cgroup.h
@@ -584,7 +584,7 @@ int cgroup_taskset_size(struct cgroup_taskset *tset);
 	     (task) = cgroup_taskset_next((tset)))			\
 		if (!(skip_css) ||					\
 		    cgroup_taskset_cur_css((tset),			\
-			(skip_css)->ss->subsys_id) != (skip_css))
+			((struct cgroup_subsys_state *)skip_css)->ss->subsys_id) != (skip_css))
 
 /*
  * Control Group subsystem type.
-- 
1.8.3.1

_______________________________________________
Containers mailing list
Containers@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linuxfoundation.org/mailman/listinfo/containers





[Index of Archives]     [Cgroups]     [Netdev]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux