From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753460AbcIBXcc (ORCPT ); Fri, 2 Sep 2016 19:32:32 -0400 Received: from out1134-242.mail.aliyun.com ([42.120.134.242]:49049 "EHLO out1134-242.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752249AbcIBXcb (ORCPT ); Fri, 2 Sep 2016 19:32:31 -0400 X-Greylist: delayed 305 seconds by postgrey-1.27 at vger.kernel.org; Fri, 02 Sep 2016 19:32:31 EDT X-Alimail-AntiSpam: AC=CONTINUE;BC=0.08071605|-1;FP=0|0|0|0|0|-1|-1|-1;HT=e02c03288;MF=chengang@emindsoft.com.cn;NM=1;PH=DS;RN=38;RT=38;SR=0;TI=SMTPD_----5EW1.Z6_1472858793; Message-ID: <57CA0C5D.1080701@emindsoft.com.cn> Date: Sat, 03 Sep 2016 07:33:49 +0800 From: Chen Gang User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Al Viro CC: Vineet Gupta , Arnd Bergmann , akpm@linux-foundation.org, minchan@kernel.org, vbabka@suse.cz, gi-oh.kim@profitbricks.com, iamjoonsoo.kim@lge.com, hillf.zj@alibaba-inc.com, mgorman@techsingularity.net, mhocko@suse.com, rientjes@google.com, linux-kernel@vger.kernel.org, rth@twiddle.net, ink@jurassic.park.msu.ru, mattst88@gmail.com, linux@armlinux.org.uk, catalin.marinas@arm.com, will.deacon@arm.com, hskinnemoen@gmail.com, egtvedt@samfundet.no, realmz6@gmail.com, ysato@users.sourceforge.jp, rkuo@codeaurora.org, tony.luck@intel.com, fenghua.yu@intel.com, geert@linux-m68k.org, james.hogan@imgtec.com, ralf@linux-mips.org, dhowells@redhat.com, deller@gmx.de, benh@kernel.crashing.org, paulus@samba.org, mpe@ellerman.id.au, schwidefsky@de.ibm.com, heiko.carstens@de.ibm.com, dalias@libc.org, "David S. Miller" Subject: Re: cmsg newgroup alt.sex.fetish.bool (was Re: [PATCH] arch: all: include: asm: bitops: Use bool instead of int for all bit test functions) References: <1472362755-26776-1-git-send-email-chengang@emindsoft.com.cn> <201608291503.41630.arnd@arndb.de> <80e3ae6c-e81d-3541-9051-07ad726b59cd@synopsys.com> <57C4ADD1.6020609@emindsoft.com.cn> <20160901204348.GQ2356@ZenIV.linux.org.uk> In-Reply-To: <20160901204348.GQ2356@ZenIV.linux.org.uk> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/2/16 04:43, Al Viro wrote: > On Tue, Aug 30, 2016 at 05:49:05AM +0800, Chen Gang wrote: > >> Could you provide the related proof? >> >> Or shall I try to analyze about it and get proof? > > Can you show a proof that it actually improves anything? He who proposes > a patch gets to defend it, not the other way round... > > Al, bloody annoyed > OK, what you said sounds reasonable to me. It makes the code more readable since they are really pure Boolean functions, and let the functions are precisely same in all archs. But really, I shall try to prove that it has no negative effect. e.g. for arc arch. now, I have built the arc raw compiler to build arc kernel, but excuse me, I plan to finish proof next week, because during these days, I have to work, buy house, and focus on my father's health. Thanks. -- Chen Gang (陈刚) Managing Natural Environments is the Duty of Human Beings.