From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754009AbYISOeb (ORCPT ); Fri, 19 Sep 2008 10:34:31 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752011AbYISOeX (ORCPT ); Fri, 19 Sep 2008 10:34:23 -0400 Received: from courier.cs.helsinki.fi ([128.214.9.1]:52061 "EHLO mail.cs.helsinki.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751645AbYISOeX (ORCPT ); Fri, 19 Sep 2008 10:34:23 -0400 Subject: Re: [patch 3/4] cpu alloc: The allocator From: Pekka Enberg To: Christoph Lameter Cc: akpm@linux-foundation.org, linux-kernel@vger.kernel.org, linux-mm@vger.kernel.org, jeremy@goop.org, ebiederm@xmission.com, travis@sgi.com, herbert@gondor.apana.org.au, xemul@openvz.org In-Reply-To: <48D3B6E4.90206@linux-foundation.org> References: <20080918233648.581696416@quilx.com> <20080918233701.599037712@quilx.com> <84144f020809190058j425eb995y7f441da18079dc8d@mail.gmail.com> <48D3A4F5.9010804@linux-foundation.org> <1221833529.15030.1.camel@penberg-laptop> <48D3B6E4.90206@linux-foundation.org> Date: Fri, 19 Sep 2008 17:35:08 +0300 Message-Id: <1221834908.15030.3.camel@penberg-laptop> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit X-Mailer: Evolution 2.22.3.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2008-09-19 at 09:27 -0500, Christoph Lameter wrote: > Pekka Enberg wrote: > > On Fri, 2008-09-19 at 08:11 -0500, Christoph Lameter wrote: > >> I thought we could handle early boot panics with early_printk? > > > > Sure, but *if* we can limp along it's usually much nicer to debug > > WARN_ONs that trigger during early boot. But anyway, I'm fine with > > either way. > > How would you do this? > > if (condition) { > WARN_ON(1); > return NULL; > } > > or do we have a macro for this situation. > > if (WARN(condition)) > return NULL; if (WARN_ON(condition)) return NULL; or am I missing something here?