From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762068AbXJZBYi (ORCPT ); Thu, 25 Oct 2007 21:24:38 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754836AbXJZBY2 (ORCPT ); Thu, 25 Oct 2007 21:24:28 -0400 Received: from netops-testserver-4-out.sgi.com ([192.48.171.29]:58582 "EHLO relay.sgi.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752068AbXJZBY1 (ORCPT ); Thu, 25 Oct 2007 21:24:27 -0400 Date: Thu, 25 Oct 2007 18:24:25 -0700 From: Paul Jackson To: "Paul Menage" Cc: bunk@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [2.6 patch] kernel/cgroup.c: remove dead code Message-Id: <20071025182425.1336064f.pj@sgi.com> In-Reply-To: <6599ad830710251810r6bb1e390nf3612031af8b6767@mail.gmail.com> References: <20071024162534.GZ30533@stusta.de> <6599ad830710240930r6649dec0q21b8c00f7d8a796a@mail.gmail.com> <20071024103411.dfd3ae04.pj@sgi.com> <6599ad830710251810r6bb1e390nf3612031af8b6767@mail.gmail.com> Organization: SGI X-Mailer: Sylpheed version 2.2.4 (GTK+ 2.8.3; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org 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! -- I won't rest till it's the best ... Programmer, Linux Scalability Paul Jackson 1.925.600.0401