Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1060007yba; Thu, 16 May 2019 13:37:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqwPjAAsgs2ua+9aD0kgzC2a4W940U4fTH5fwKA4SKkhHJI6p0ANwVA49OEyvGI4EgkVngLG X-Received: by 2002:a17:902:5ac8:: with SMTP id g8mr24086413plm.154.1558039021607; Thu, 16 May 2019 13:37:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558039021; cv=none; d=google.com; s=arc-20160816; b=bpwxvGu34yTK0VRAJ79L/gd3001VGPa4bF86zcoIdHEqS6SkY2ejC676fIpT/fXSGe 3UrHQkuAeH2XIOk4A1neoyKSezSVNvMN3CM8YTARBOzY3IDjeEnQasSSMhXhmhJ85CFu 5GnyROWxM1phXvMVmSCTV+r0pdeHgrnom3vm40OvZ86DM6SRJ32p+uINl8XT5s4N05en E0ZF8EvXymcq2+lVHtBuszLVQxuAkpRbQK4QQABvEMOaSQIAiP2AkqacgHXMU0U8WMgr JNw6yC2hYkWww+acR7d7NcLrq8eBF7MAvNJFOjTPrpkG4tidx7RNcalgutqEZxDpFB1X 40Ig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:references:message-id:date :thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=QBwuToXWMwWRM/4QO700Uxp+PCG5Gof6BboKJe7Eef0=; b=L7ROv1RDL1FAQC3N3pmj4QCSex/Efm3YZ5AIIyRhm9W1UbhBndWdD8AIrnsjgeogjl CPk8dBM0e6A6JUMl9N13NZRmsx9+eI6ZRdtBYu77nka4DB6m/+mR3BViJL95xp0jW5VU 2tin62l52lYSB+G+Mi6YrySRlnqDA52vpVpMmWmSOj73cxAVsAvgHE81tpckMiwQcS/O ZVER1zBRVUYrjyqhhoGj24ypnF2du/BHlM8sotGb+C+o9ESbGjE1p6jXYUhcfCcRyqbO hPhF+c/XHUJ7hKnnSdB3fW3HL3f9/0WJUti3u8vYPUKHBNNEG8JY5Xgro4DBhNqGkc4r vLdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=RFo89LUg; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o3si5692365plk.167.2019.05.16.13.36.46; Thu, 16 May 2019 13:37:01 -0700 (PDT) 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=pass header.i=@synopsys.com header.s=mail header.b=RFo89LUg; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728009AbfEPRhy (ORCPT + 99 others); Thu, 16 May 2019 13:37:54 -0400 Received: from dc2-smtprelay2.synopsys.com ([198.182.61.142]:39996 "EHLO smtprelay-out1.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726409AbfEPRhy (ORCPT ); Thu, 16 May 2019 13:37:54 -0400 Received: from mailhost.synopsys.com (dc8-mailhost1.synopsys.com [10.13.135.209]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by smtprelay-out1.synopsys.com (Postfix) with ESMTPS id 29261C0BC3; Thu, 16 May 2019 17:37:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1558028263; bh=Wmy4EGULNayDPs5gXSLg4GnxB4UoMyTMnJFypw/UAMs=; h=From:To:CC:Subject:Date:References:From; b=RFo89LUgrQVhapH4tg0LTkHnYmSWx/0iOcJhA1/wNiAqNlq2G0BcoBqBQ094mISSm sUJNK2Mu9R/qVLHOM4oag6F34iE9EbuUVXrqaLIT+lVPLHCmB7al/P92uaisSvB4Bu zOGPkf4va32BVku1mILHhQEYqe6wd1V0b1bJ1La3c3iWJFe3VH1WUfzI4UUsWGzGbL MpN5Bb1Q7zEq6IsqtkgA8E+mLs9zKTz4xMQ9GGnwti40hCpmIe5EwPViiGeV378wC+ KMAN1mcDI6C/1vg2v4ib8pbEAKJUvXi2inpNw9CGudQuJi37F/g62dqVkUheaDkL3e Tm/X0X86XhJJA== Received: from US01WEHTC2.internal.synopsys.com (us01wehtc2.internal.synopsys.com [10.12.239.237]) (using TLSv1.2 with cipher AES128-SHA256 (128/128 bits)) (No client certificate requested) by mailhost.synopsys.com (Postfix) with ESMTPS id 744EEA006A; Thu, 16 May 2019 17:37:52 +0000 (UTC) Received: from us01wembx1.internal.synopsys.com ([169.254.1.22]) by US01WEHTC2.internal.synopsys.com ([10.12.239.237]) with mapi id 14.03.0415.000; Thu, 16 May 2019 10:37:52 -0700 From: Vineet Gupta To: Eugeniy Paltsev CC: "paltsev@snyopsys.com" , "linux-kernel@vger.kernel.org" , Alexey Brodkin , "linux-snps-arc@lists.infradead.org" Subject: Re: [PATCH 4/9] ARC: mm: do_page_fault refactor #3: tidyup vma access permission code Thread-Topic: [PATCH 4/9] ARC: mm: do_page_fault refactor #3: tidyup vma access permission code Thread-Index: AQHVCrVZlKJI28iPlEu8hsRog7Qd0g== Date: Thu, 16 May 2019 17:37:51 +0000 Message-ID: References: <1557880176-24964-1-git-send-email-vgupta@synopsys.com> <1557880176-24964-5-git-send-email-vgupta@synopsys.com> <1558027448.2682.11.camel@synopsys.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.13.184.19] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/16/19 10:24 AM, Eugeniy Paltsev wrote:=0A= >> + unsigned int write =3D 0, exec =3D 0, mask;=0A= > Probably it's better to use 'bool' type for 'write' and 'exec' as we real= ly use them as a boolean variables.=0A= =0A= Right those are semantics, but the generated code for "bool" is not ideal -= given=0A= it is inherently a "char" it is promoted first to an int with an additional= EXTB=0A= which I really dislike.=0A= Guess it is more of a style thing.=0A= =0A= -Vineet=0A=