Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753183AbbDQUzv (ORCPT ); Fri, 17 Apr 2015 16:55:51 -0400 Received: from mail-qk0-f181.google.com ([209.85.220.181]:34984 "EHLO mail-qk0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751494AbbDQUzu (ORCPT ); Fri, 17 Apr 2015 16:55:50 -0400 Date: Fri, 17 Apr 2015 16:55:45 -0400 From: Tejun Heo To: Aleksa Sarai Cc: lizefan@huawei.com, mingo@redhat.com, peterz@infradead.org, richard@nod.at, =?iso-8859-1?Q?Fr=E9d=E9ric?= Weisbecker , linux-kernel@vger.kernel.org, cgroups@vger.kernel.org Subject: Re: [PATCH v9 3/4] cgroups: allow a cgroup subsystem to reject a fork Message-ID: <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 759 Lines: 23 On Sat, Apr 18, 2015 at 06:48:55AM +1000, Aleksa Sarai wrote: > 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. -- tejun -- 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/