Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753630AbbDQVGG (ORCPT ); Fri, 17 Apr 2015 17:06:06 -0400 Received: from mail-ig0-f182.google.com ([209.85.213.182]:33532 "EHLO mail-ig0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751749AbbDQVGD (ORCPT ); Fri, 17 Apr 2015 17:06:03 -0400 MIME-Version: 1.0 X-Originating-IP: [122.106.150.15] In-Reply-To: <20150417205545.GJ16743@htj.duckdns.org> References: <1428799917-15141-1-git-send-email-cyphar@cyphar.com> <1428799917-15141-4-git-send-email-cyphar@cyphar.com> <20150413142439.GA2596@htj.duckdns.org> <20150414121732.GL2596@htj.duckdns.org> <20150417144519.GC1954@htj.duckdns.org> <20150417204206.GI16743@htj.duckdns.org> <20150417205545.GJ16743@htj.duckdns.org> Date: Sat, 18 Apr 2015 07:06:02 +1000 Message-ID: Subject: Re: [PATCH v9 3/4] cgroups: allow a cgroup subsystem to reject a fork From: Aleksa Sarai To: Tejun Heo Cc: lizefan@huawei.com, mingo@redhat.com, peterz@infradead.org, richard@nod.at, =?UTF-8?B?RnLDqWTDqXJpYyBXZWlzYmVja2Vy?= , linux-kernel@vger.kernel.org, cgroups@vger.kernel.org Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 774 Lines: 25 >> Do you mean like this? >> >> #define SUBSYS_TAG_COUNT(_tag) (CGROUP_ ## _tag ## _END - CGROUP_ ## >> _tag ## _START) >> >> That's fine I guess, I just wanted to match CGROUP_SUBSYS_COUNT in >> semantics, but I'll do that if you prefer it that way. > > Not even that, just do it manually. > > #define CGROUP_TAGNAME_COUNT (CGROUP_TAGNAME_END - CGROUP_TAGNAME_START) > > At maximum, we're only gonna have a few of these. No reason to be > smart about it. Yeah, that's fair I guess. -- 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/