Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754749Ab1CYSTZ (ORCPT ); Fri, 25 Mar 2011 14:19:25 -0400 Received: from hrndva-omtalb.mail.rr.com ([71.74.56.123]:47315 "EHLO hrndva-omtalb.mail.rr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752343Ab1CYSTY (ORCPT ); Fri, 25 Mar 2011 14:19:24 -0400 X-Authority-Analysis: v=1.1 cv=pN6kzQkhXdmdOr6Akjoh3kGBD/S3UyPMKQp53EJY+ro= c=1 sm=0 a=s8bQjA_BN_cA:10 a=Q9fys5e9bTEA:10 a=OPBmh+XkhLl+Enan7BmTLg==:17 a=xzy_7BMKHT-Qhcl7e-MA:9 a=ONhjDm0qNeV-Z3mdfYR3JM3ZZHAA:4 a=PUjeQqilurYA:10 a=OPBmh+XkhLl+Enan7BmTLg==:117 X-Cloudmark-Score: 0 X-Originating-IP: 67.242.120.143 Subject: Re: [tip:core/urgent] WARN_ON_SMP(): Allow use in if() statements on UP From: Steven Rostedt To: Linus Torvalds Cc: mingo@redhat.com, hpa@zytor.com, linux-kernel@vger.kernel.org, dvhart@linux.intel.com, peterz@infradead.org, akpm@linux-foundation.org, srostedt@redhat.com, tglx@linutronix.de, laijs@cn.fujitsu.com, mingo@elte.hu, linux-tip-commits@vger.kernel.org In-Reply-To: <1301076981.14261.197.camel@gandalf.stny.rr.com> References: <20110317192208.444147791@goodmis.org> <1301076981.14261.197.camel@gandalf.stny.rr.com> Content-Type: text/plain; charset="ISO-8859-15" Date: Fri, 25 Mar 2011 14:19:23 -0400 Message-ID: <1301077163.14261.199.camel@gandalf.stny.rr.com> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 574 Lines: 25 On Fri, 2011-03-25 at 14:16 -0400, Steven Rostedt wrote: > Also, a quick test shows that > > 0; > > gives the warning: > > "warning: statement with no effect" Would you like me to add a comment that states: /* * Use ({0;}) as just "0" will cause gcc to output: * warning: statement with no effect */ -- Steve -- 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/