Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6684318imu; Mon, 3 Dec 2018 00:48:32 -0800 (PST) X-Google-Smtp-Source: AFSGD/W5hbQ9QvxqY+gZ5RcF04NQp0vXUV6g9ZkV+mpfO6kNZQ94pCdyCoyCTXW2af9zMS2k9MnB X-Received: by 2002:a17:902:722:: with SMTP id 31mr15224774pli.271.1543826911950; Mon, 03 Dec 2018 00:48:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543826911; cv=none; d=google.com; s=arc-20160816; b=kYtQbRaZxd9RAAwo+t5smNaQChC9oDDjAylBXSBuq3jUJCGTeiBQQTWhbZTF45R9e8 T7FBI5U4HsL/eo9WVL0k5YOO9x9d/6c5iq1arHa4Ikx3bT2s0jBb8fkrewTlk51ZU/v1 ZMJJ5onrokg73ILntQ0wW5soPNV3sRRJhvK3V1OV66vYQJUGVWADffmXw1oejKqS2iQN Ns3dRdYXTxZP6Be0qKNZhjEXppfoQieLQxC2S9ilp2mf2EjHHc7PDJg3jqWGl+3LiwIx clj/BD8buhuMl3fQ8qBplrcdxWyzTwgB6MZdZAKZP911V9igXqY31WXqoJhZbL1uKpHp gEpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=EgHySjzcZL6cfvn0IY/qIxKvTjt+dYuyKwPO5LsghnM=; b=OBMwR/vaBW3ig1jXaMx+FiR5JcWgjvjSfH1ipqLEXBp/IXoK193OEtYZKMeHZY7PFk Dg84Z3tA2m2w80wOdb3Xa9AhjrVh/Se568frzrqdZ1B3h//vWNF9QDjWA6UOUtP8KXpx FYLja02ZLGuscO03p3GDIiHREqpbEhgjRphLggy3TSC9zvj3bM4Yua8ofb/aD11UNL08 Eguh73ERFwl4Z7/5FnXFdv8AjiaCr7ZqsdKi1i5VCWugivxhFUGMKlLTmlyxjnbYMyRB v1/uquUNn/5TB2/xxZ67GjcSqkL1UkPhX/bSgDiCkh4KjN2i+btanhKzhVOCK9b1Pqsi 9sfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b="r/xzab/p"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g31si13727209pld.358.2018.12.03.00.48.16; Mon, 03 Dec 2018 00:48:31 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b="r/xzab/p"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725983AbeLCIqb (ORCPT + 99 others); Mon, 3 Dec 2018 03:46:31 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:34518 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725870AbeLCIqa (ORCPT ); Mon, 3 Dec 2018 03:46:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=EgHySjzcZL6cfvn0IY/qIxKvTjt+dYuyKwPO5LsghnM=; b=r/xzab/p8c7PNIB3Eq2p3zrbM 1sg7eMn3IR/BDtuytzqEztTQgg6+05RLS4iRy4ZzBFmfjO4EdTad/P3RGKkfn7f7eVJeGMSQOB+bq +0GTLVIpC1DLurIUNp8LA0/Y/IzdBGpvInAt2pP7Myx39sC1rZ2Wz6dfBNjrSU89ZrXETugpOy0hw U/cJEjOprpb++biMe+UZvk0Vz8Gb5O6OdSY/hHXfNB/vSVbYx3jidfZb8hQr62OX7S2b+EH560nXm mWtZnCoNEIbL+qJM5Qm6kkpeDKHpHzAWhufVCORENZzNIctnO8WBji07gjuxT/mzEJHEdkFPvr+UV SJuRENs3Q==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1gTjri-0003II-Nd; Mon, 03 Dec 2018 08:46:06 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 309DB2029F883; Mon, 3 Dec 2018 09:46:05 +0100 (CET) Date: Mon, 3 Dec 2018 09:46:05 +0100 From: Peter Zijlstra To: "Paul E. McKenney" Cc: Wen Yang , Davidlohr Bueso , Josh Triplett , linux-kernel@vger.kernel.org, zhong.weidong@zte.com.cn, mingo@redhat.com, will.deacon@arm.com, Julia.Lawall@lip6.fr Subject: Re: [PATCH] locktorture: Fix assignment of boolean variables Message-ID: <20181203084605.GC11650@hirez.programming.kicks-ass.net> References: <20181201083149.36972-1-wen.yang99@zte.com.cn> <20181201203700.GW4170@linux.ibm.com> <20181203083500.GH11614@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181203083500.GH11614@hirez.programming.kicks-ass.net> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 03, 2018 at 09:35:00AM +0100, Peter Zijlstra wrote: > On Sat, Dec 01, 2018 at 12:37:01PM -0800, Paul E. McKenney wrote: > > On Sat, Dec 01, 2018 at 04:31:49PM +0800, Wen Yang wrote: > > > Fix the following warnings reported by coccinelle: > > > > > > kernel/locking/locktorture.c:703:6-10: WARNING: Assignment of bool to 0/1 Not to mention that WARN is gramatically incorrect. We're not assigning 'bool' to 0/1 but the other way around. What crap.. > So I strongly disagree with this. Anybody that has trouble with 0/1 vs > false/true needs to stay the heck away from C. > > I would suggest we delete that stupid coccinelle scripts that generates > these pointless warns.