From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Mackall Subject: Re: Behavior of BUG() [Was: Re: [PATCH 2/5] of/fdt: add kernel command line option for dtb_compat string] Date: Tue, 16 Nov 2010 22:07:23 -0600 Message-ID: <1289966843.26343.359.camel@calx> References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: linux-kbuild-owner@vger.kernel.org To: Arnaud Lacombe Cc: linux-kernel@vger.kernel.org, dirk.brandewie@gmail.com, linux-arch@vger.kernel.org, linux-kbuild@vger.kernel.org, Grant Likely List-Id: linux-arch.vger.kernel.org On Tue, 2010-11-16 at 22:45 -0500, Arnaud Lacombe wrote: > Hi, > > [CC: list reduced as starting a new thread, most on the context > removed as this concern a different issue.] > > On Tue, Nov 16, 2010 at 7:16 PM, Grant Likely wrote: > > On Tue, Nov 16, 2010 at 3:41 PM, wrote: > >> From: Dirk Brandewie > >> [...] > > The kernel needs to complain *loudly* if this occurs because it > > represents a bug. I'm tempted to say use BUG, but that would halt the > > kernel and prevent any possibility of kernel log output. > > [...] > does it ? if CONFIG_BUG is not enabled and the arch has no define for > it, the default does _nothing_: That's because CONFIG_BUG=N is intended for machines where logging is irrelevant/impossible. You are encouraged to ignore all options under CONFIG_EMBEDDED when trying to have a sensible discussion. -- Mathematics is the supreme nostalgia of our time. From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from waste.org ([173.11.57.241]:49525 "EHLO waste.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754444Ab0KQEH0 (ORCPT ); Tue, 16 Nov 2010 23:07:26 -0500 Subject: Re: Behavior of BUG() [Was: Re: [PATCH 2/5] of/fdt: add kernel command line option for dtb_compat string] From: Matt Mackall In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Date: Tue, 16 Nov 2010 22:07:23 -0600 Message-ID: <1289966843.26343.359.camel@calx> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-arch-owner@vger.kernel.org List-ID: To: Arnaud Lacombe Cc: linux-kernel@vger.kernel.org, dirk.brandewie@gmail.com, linux-arch@vger.kernel.org, linux-kbuild@vger.kernel.org, Grant Likely Message-ID: <20101117040723.thNtWGQqxVxeUReMcVbph5vv__U_qVos1kVPZiDsFD0@z> On Tue, 2010-11-16 at 22:45 -0500, Arnaud Lacombe wrote: > Hi, > > [CC: list reduced as starting a new thread, most on the context > removed as this concern a different issue.] > > On Tue, Nov 16, 2010 at 7:16 PM, Grant Likely wrote: > > On Tue, Nov 16, 2010 at 3:41 PM, wrote: > >> From: Dirk Brandewie > >> [...] > > The kernel needs to complain *loudly* if this occurs because it > > represents a bug. I'm tempted to say use BUG, but that would halt the > > kernel and prevent any possibility of kernel log output. > > [...] > does it ? if CONFIG_BUG is not enabled and the arch has no define for > it, the default does _nothing_: That's because CONFIG_BUG=N is intended for machines where logging is irrelevant/impossible. You are encouraged to ignore all options under CONFIG_EMBEDDED when trying to have a sensible discussion. -- Mathematics is the supreme nostalgia of our time.