Received: by 10.223.185.116 with SMTP id b49csp4212809wrg; Mon, 26 Feb 2018 13:17:48 -0800 (PST) X-Google-Smtp-Source: AH8x224YQuNWdj5mUzJIw8QoPfypLe8xdITvA4TE7/sTXlml7aMH9xG1U1Q9MlkSihDP4aPaEEk7 X-Received: by 10.101.69.134 with SMTP id o6mr9714199pgq.340.1519679868139; Mon, 26 Feb 2018 13:17:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519679868; cv=none; d=google.com; s=arc-20160816; b=VivXNvedb4J2HWpKZurplEA8f+4ETHDp5c/imKtcTVw3Dox9IfVaLHGHAxSJ+6/3Vg AZzTV63V0IJrLy1Cp6s3pRmKUjxcY5f1h9DVPziHA2qmLOGXRiOP2x1s8laUiRUbUxAE 2kdWQEgLpZG7BAX+8hKguSVX219Wk3FWTUwhEHI6K5CQabwhP9m4JkVn/slF118c3aFd F/UWQdV6Bmt+fb1EhiNHs9e84LaUtT94Oq9GZ2Z3QD+ZR69mk5fBOKNWq4oEB8V2k1hq kuT17TuDz+UiGhnJpxkW6uhJ+GqhgvALlMryovyWfccAKPVawkJz6qDGHasvOsYb0x2u TGwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:cc:references:to:subject:arc-authentication-results; bh=vRiDAwczybwNp0VLGVZ7A4x2YfNCTZRchw3FP9NYdjY=; b=nnAGQ6M5DmJvbLkrDg7o3CaEY5wJOiTmsvwtb8OeUMn9rPixmJlcbkUE1DAwfrXQC6 LC+dGOEzcvPQ2j4eii4J+alET4l5XOH5PZH1NQgvxC4Ra7xACgwjhCq09OmQblSSYYr0 UziYhmZWEyt7oSYDwoTwZk9sRFo4owTdurAPeUN0CZu9GadRr6j/bsEa8maqBdidnd+F fAx5u2MoO0alnsOCSFHyphLn8AFCyfZwLz00vOhd9wQC653P2Dox98C06767t5ZnhZwe 08lKmssXkt5VBCagaq25dcYIDtpXd/+wM5GsRVAyJFLzvPhnZo6g3t6tHW7kBuIULiRa ojrg== ARC-Authentication-Results: i=1; mx.google.com; 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 a8-v6si7244777ple.435.2018.02.26.13.17.31; Mon, 26 Feb 2018 13:17:48 -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; 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 S1751574AbeBZVQV (ORCPT + 99 others); Mon, 26 Feb 2018 16:16:21 -0500 Received: from mga11.intel.com ([192.55.52.93]:39291 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751245AbeBZVQT (ORCPT ); Mon, 26 Feb 2018 16:16:19 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Feb 2018 13:16:19 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.47,398,1515484800"; d="scan'208";a="20475463" Received: from ray.jf.intel.com (HELO [10.7.201.16]) ([10.7.201.16]) by orsmga007.jf.intel.com with ESMTP; 26 Feb 2018 13:16:18 -0800 Subject: Re: [PATCH v12 3/3] mm, x86, powerpc: display pkey in smaps only if arch supports pkeys To: Ram Pai , mpe@ellerman.id.au, mingo@redhat.com, akpm@linux-foundation.org References: <1519257138-23797-1-git-send-email-linuxram@us.ibm.com> <1519257138-23797-4-git-send-email-linuxram@us.ibm.com> Cc: linuxppc-dev@lists.ozlabs.org, linux-mm@kvack.org, x86@kernel.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, benh@kernel.crashing.org, paulus@samba.org, khandual@linux.vnet.ibm.com, aneesh.kumar@linux.vnet.ibm.com, bsingharora@gmail.com, hbabu@us.ibm.com, mhocko@kernel.org, bauerman@linux.vnet.ibm.com, ebiederm@xmission.com, corbet@lwn.net, arnd@arndb.de, fweimer@redhat.com, msuchanek@suse.com From: Dave Hansen Message-ID: <2a7737cf-a5ba-c814-fdc7-45b5cdd47376@intel.com> Date: Mon, 26 Feb 2018 13:16:16 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <1519257138-23797-4-git-send-email-linuxram@us.ibm.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/21/2018 03:52 PM, Ram Pai wrote: > Currently the architecture specific code is expected to > display the protection keys in smap for a given vma. > This can lead to redundant code and possibly to divergent > formats in which the key gets displayed. > > This patch changes the implementation. It displays the > pkey only if the architecture support pkeys, i.e > arch_pkeys_enabled() returns true. This patch > provides x86 implementation for arch_pkeys_enabled(). > > x86 arch_show_smap() function is not needed anymore. > Deleting it. This looks fine to me. Thanks for doing these, Ram. Reviewed-by: Dave Hansen