From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761738AbXJZB0q (ORCPT ); Thu, 25 Oct 2007 21:26:46 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758880AbXJZB0I (ORCPT ); Thu, 25 Oct 2007 21:26:08 -0400 Received: from smtp-out.google.com ([216.239.33.17]:16052 "EHLO smtp-out.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757834AbXJZB0G (ORCPT ); Thu, 25 Oct 2007 21:26:06 -0400 DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=received:message-id:date:from:to:subject:cc:in-reply-to: mime-version:content-type:content-transfer-encoding: content-disposition:references; b=B1f3io1XI+muXNZl5mAyDoWhCXtYwNnF30Ck0dffojfp2dfSbkzqXVbpbSXXa0u/R hqpIfDjrxTpWZffdi7p7A== Message-ID: <6599ad830710251826g5669a4cw3696ad500ff90bb4@mail.gmail.com> Date: Thu, 25 Oct 2007 18:26:00 -0700 From: "Paul Menage" To: "Paul Jackson" Subject: Re: [2.6 patch] kernel/cgroup.c: remove dead code Cc: bunk@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20071025182425.1336064f.pj@sgi.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20071024162534.GZ30533@stusta.de> <6599ad830710240930r6649dec0q21b8c00f7d8a796a@mail.gmail.com> <20071024103411.dfd3ae04.pj@sgi.com> <6599ad830710251810r6bb1e390nf3612031af8b6767@mail.gmail.com> <20071025182425.1336064f.pj@sgi.com> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On 10/25/07, Paul Jackson wrote: > Paul M wrote: > > Sounds reasonable to me. Is there any kind of compile-time assert > > macro in the kernel? > > Check out the assembly code generated by: > > BUG_ON(sizeof(cgrp->root->release_agent_path) < PATH_MAX)); > > (Hint: you can't find it ;) > > It -is- compile time! > Sounds like a good solution. Paul