Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752286AbbDNAdp (ORCPT ); Mon, 13 Apr 2015 20:33:45 -0400 Received: from mail-ig0-f179.google.com ([209.85.213.179]:37868 "EHLO mail-ig0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751509AbbDNAdm (ORCPT ); Mon, 13 Apr 2015 20:33:42 -0400 MIME-Version: 1.0 X-Originating-IP: [122.106.150.15] In-Reply-To: <20150413142439.GA2596@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> Date: Tue, 14 Apr 2015 10:33:41 +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: 805 Lines: 22 Hi Tejun, > Ummm... is this really necessary? Can't we do something like the > following? > > #define SUBSYS_TAG(tag) \ > __##tag, \ > tag = __##tag - 2, Is which part necessary? That's what TAG() does. I can remove the UNUSED_IDENT() if you want, that was just to make sure you don't get clashes with other unused idents. COUNT() is so that we don't have to manually add CGROUP__COUNT for every tag we add. -- 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/