Received: by 10.192.165.148 with SMTP id m20csp4408045imm; Tue, 8 May 2018 08:01:38 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqy5UXtxGjkdC2ZUDiIa7spoq+4robTJiwsGZa6BmGTONR0ZAolOTeilaOzmjXyqJfa11Qz X-Received: by 2002:a63:6d41:: with SMTP id i62-v6mr33066711pgc.233.1525791698172; Tue, 08 May 2018 08:01:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525791698; cv=none; d=google.com; s=arc-20160816; b=tgIc0/V+yKaOeDExqseORqodq3yNBPUzJCXaWgwxJvXo/tDBuzASHDJCWUuir84zFZ HGpcV0NGPWMH5FhFWrr3siJhZjsbYj5nYEg4xMsgT5f/HVjGJ/hpYZ8v0mjEiPd+H7Pv L2in1c6BegrWdYZhkwpfPP8Ra/NSGQQmxnS3TkguTjFEp02xMjbnyBpmNLYq607UB7m1 oq5E3CSEYWcDdC+1BTu2sPQpBTUx2+T+V98ycqGDIuD6Etbst2ukpa8ubEESswtcziZ8 OXsT0z/izMk7HTrHS7BYP9gmjIZiz2CyDprIUIiyBY1RKH+pL7u7G92euqdTLHXAhX87 0i0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=h7wbHyFGciCxYnYbUGv1maxOlL36pO0wF7UJMX+AdXY=; b=kH3DYEypQ9geqblGvsgcBx/G6OL+T/u/PvOZqGRvO4n+taiL+R2jD7IsUZCpViDQ0c UBL97pzbBPacjvPQoS7Ux9qaGZjMBWTKx3Bdi21zS4XfYBsllxidxDyQLeml/VJnuCBR 075WEMCsMtYWEaRXkzbsMn8Ihp/GyEZhpcXC/mSuutwixqXgp35jBmIq23+A4D4a9XY2 asw5DLyQBXbkEAdfsysNBCXY/3dpaIc2Livx1rqdChdz6Cz4H/jV4lmLHf7+WA5hTlEI EEiQSQIBHmUI+kN0h8grjuPXbVBissPO02snzfquBjquyMqfX8ewwREe5z9OsGsmxGW0 joQQ== 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 u12-v6si24517959plz.563.2018.05.08.08.01.22; Tue, 08 May 2018 08:01:38 -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; 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 S932965AbeEHPAv (ORCPT + 99 others); Tue, 8 May 2018 11:00:51 -0400 Received: from ozlabs.org ([203.11.71.1]:44627 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932679AbeEHPAC (ORCPT ); Tue, 8 May 2018 11:00:02 -0400 Received: by ozlabs.org (Postfix, from userid 1034) id 40gN293WzXz9s6v; Wed, 9 May 2018 01:00:01 +1000 (AEST) From: Michael Ellerman To: linuxram@us.ibm.com Cc: mingo@redhat.com, linuxppc-dev@ozlabs.org, linux-mm@kvack.org, x86@kernel.org, linux-kernel@vger.kernel.org, dave.hansen@intel.com Subject: [PATCH 7/8] mm/pkeys: Add an empty arch_pkeys_enabled() Date: Wed, 9 May 2018 00:59:47 +1000 Message-Id: <20180508145948.9492-8-mpe@ellerman.id.au> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180508145948.9492-1-mpe@ellerman.id.au> References: <20180508145948.9492-1-mpe@ellerman.id.au> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add an empty arch_pkeys_enabled() in linux/pkeys.h for the CONFIG_ARCH_HAS_PKEYS=n case. Split out of a patch by Ram Pai . Signed-off-by: Michael Ellerman --- include/linux/pkeys.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/linux/pkeys.h b/include/linux/pkeys.h index 946cb773b79f..2955ba976048 100644 --- a/include/linux/pkeys.h +++ b/include/linux/pkeys.h @@ -39,6 +39,11 @@ static inline int arch_set_user_pkey_access(struct task_struct *tsk, int pkey, return 0; } +static inline bool arch_pkeys_enabled(void) +{ + return false; +} + static inline void copy_init_pkru_to_fpregs(void) { } -- 2.14.1