Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757099AbXHBDcf (ORCPT ); Wed, 1 Aug 2007 23:32:35 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754244AbXHBDc1 (ORCPT ); Wed, 1 Aug 2007 23:32:27 -0400 Received: from pentafluge.infradead.org ([213.146.154.40]:56405 "EHLO pentafluge.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753952AbXHBDc0 (ORCPT ); Wed, 1 Aug 2007 23:32:26 -0400 Date: Thu, 2 Aug 2007 09:14:10 +0530 (IST) From: Satyam Sharma X-X-Sender: satyam@enigma.security.iitk.ac.in To: Heiko Carstens cc: Linus Torvalds , Andrew Morton , Alexey Dobriyan , Herbert Xu , Paul Mundt , Haavard Skinnemoen , Matthew Wilcox , Kyle McMartin , Martin Schwidefsky , linux-kernel@vger.kernel.org Subject: Re: [PATCH] Fix WARN_ON() on bitfield ops for all other archs In-Reply-To: <20070801221838.GA9010@osiris.ibm.com> Message-ID: References: <20070801221838.GA9010@osiris.ibm.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1162 Lines: 35 On Thu, 2 Aug 2007, Heiko Carstens wrote: > From: Heiko Carstens > > Fixes WARN_ON() on bitfiels ops for all architectures that have > been left out in 8d4fbcfbe0a4bfc73e7f0297c59ae514e1f1436f. Well, considering ... On Tue, 31 Jul 2007, Alexey Dobriyan wrote: > But I question the rationale of that commit: > [...] > I think that second case is more clear and immediately understandable. and On Tue, 31 Jul 2007, Linus Torvalds wrote: > For all I know, the proper solution is > to just revert the whole mess, and *not* make WARN_ON() return a value > at all, since that seems to be the fundamental mistake here. ... I think it makes sense to stop returning the value from WARN_ON() in the first place. There's only 5 places in the tree that uses its return value anyway, and one of them ( net/xfrm/xfrm_policy.c:681 ) is a good example of why it's less readable that way. Satyam - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/