lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Wed, 13 May 2015 15:44:51 +1000 From: Aleksa Sarai <cyphar@...har.com> To: Tejun Heo <tj@...nel.org> Cc: lizefan@...wei.com, richard@....at, linux-kernel@...r.kernel.org, Frédéric Weisbecker <fweisbec@...il.com>, cgroups@...r.kernel.org, mingo@...hat.com, Peter Zijlstra <peterz@...radead.org> Subject: Re: [PATCH v10 1/4] cgroups: use bitmask to filter for_each_subsys Hi Tejun, > Hmmmm... You can either convert all masks to ulong (which is fine) or > do something like the following. > > #define for_each_subsys_which(ss_mask, ss, ssid) \ > unsigned long __tmp_mask = (ss_mask); \ > for_each_set_bit(ssid, &__tmp_mask, CGROUP_SUBSYS_COUNT)\ > if ((ss) = group_subsys[ssid] && false) \ > ; \ > else I think I'll just do casting and manually make new variables where required. The above (and similar) doesn't work very well, generates warnings like crazy and breaks stuff like: if (...) for_each_subsys_which(...) -- Aleksa Sarai (cyphar) www.cyphar.com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists