From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arnd Bergmann Subject: Re: [PATCH] arch: configuration, deleting 'CONFIG_BUG' since always need it. Date: Thu, 23 May 2013 14:09:02 +0200 Message-ID: <201305231409.02359.arnd@arndb.de> References: <519DCBEF.3090208@asianux.com> <201305231259.43750.arnd@arndb.de> <20130523112401.GO18614@n2100.arm.linux.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20130523112401.GO18614-l+eeeJia6m9vn6HldHNs0ANdhmdF6hFW@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: uclinux-dist-devel-bounces-ZG0+EudsQA8dtHy/vicBwGD2FQJk+8+b@public.gmane.org Errors-To: uclinux-dist-devel-bounces-ZG0+EudsQA8dtHy/vicBwGD2FQJk+8+b@public.gmane.org To: Russell King - ARM Linux Cc: Linux-sh list , Catalin Marinas , Benjamin Herrenschmidt , Chen Gang , Heiko Carstens , "paulus-eUNUBHrolfbYtjvyW6yDsg@public.gmane.org" , "H. Peter Anvin" , Michel Lespinasse , Hans-Christian Egtvedt , Linux-Arch , linux-s390-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Yoshinori Sato , Richard Weinberger , Helge Deller , the arch/x86 maintainers , "James E.J. Bottomley" , "mingo-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org" , Geert Uytterhoeven , Frederic Weisbecker List-Id: linux-arch.vger.kernel.org On Thursday 23 May 2013, Russell King - ARM Linux wrote: > This is the problem you guys are missing - unreachable() means "we lose > control of the CPU at this point". I'm absolutely aware of this. Again, the current behaviour of doing nothing at all isn't very different from undefined behavior when you get when you get to the end of a function returning a pointer without a "return" statement, or when you return from a function that has determined that it is not safe to continue. > If you have an embedded system and you've taken out all the printk() > stuff, you most certainly want the system to do something if you hit > an unexpected condition. I did not claim that it was a good idea to disable BUG(), all I said is that "random stuff may happen" is probably what Matt Mackall had in mind when he introduced the option. Arnd