From patchwork Tue May 8 14:59:47 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Ellerman X-Patchwork-Id: 10386299 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 9F3D7602D8 for ; Tue, 8 May 2018 15:00:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8F99E28E35 for ; Tue, 8 May 2018 15:00:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 848B628E36; Tue, 8 May 2018 15:00:27 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 06A0228E39 for ; Tue, 8 May 2018 15:00:27 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 0E68D6B0296; Tue, 8 May 2018 11:00:05 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 0BE036B0297; Tue, 8 May 2018 11:00:05 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E033B6B0298; Tue, 8 May 2018 11:00:04 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-pg0-f72.google.com (mail-pg0-f72.google.com [74.125.83.72]) by kanga.kvack.org (Postfix) with ESMTP id A98D36B0296 for ; Tue, 8 May 2018 11:00:04 -0400 (EDT) Received: by mail-pg0-f72.google.com with SMTP id w9-v6so7952984pgq.21 for ; Tue, 08 May 2018 08:00:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-original-authentication-results:x-gm-message-state:from:to:cc :subject:date:message-id:in-reply-to:references; bh=h7wbHyFGciCxYnYbUGv1maxOlL36pO0wF7UJMX+AdXY=; b=NnwO+xb5xr2TnxpTa+UAoVjlmJwVJ5wzGjwNXNYLwl3ecMmWoQjWeN1e2FyEvCglRt SJBsU1IBVCoj9//Zb+Smc8fe5aQIsP+N0cqWBxvaDJJ4iY6prAYva3w9cpAdFypxpxZt XYHIIRsXVZSsQMeUSuCU+p1D/v6iKSowHEhm/YLLzyPm4xHCVpMgAfsDNWKWwIqU5U6b ZuqSdt8D4l4/zds4NMQHOp1S41dyxprkKO7cNqIzxYKxj2GOeumcABocD4/RpZLHMwo0 1esoySESkbEJkaBOA6dpFDzsSgXnXQEK2W5j1pIG3fFemx+Y13gU/qWnOItnWZ8OnsCX jmaA== X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of michael@ozlabs.org designates 2401:3900:2:1::2 as permitted sender) smtp.mailfrom=michael@ozlabs.org X-Gm-Message-State: ALKqPwcBPzy22guysyGAlFEWSL7BPEyUAy7CBjYGclJFxQw1+VOepPKf AiDK/kQSY7e+8UL/TNmh/hWzXogyzDJ7C4hgTFdSGsYKd+fD1Jgktthn26aIo4foNhYiCMw6L+p 4gBbBExiRaYZMUZy7PAjXBnlZR8n/z3NBWSbaEfudgRzeN/iDoLtlb4k6l2OpWeo= X-Received: by 2002:a63:824a:: with SMTP id w71-v6mr1925355pgd.37.1525791604353; Tue, 08 May 2018 08:00:04 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoOR8bdGOlBVGb+YPd/TBQk1m1yjJt3i3pGdi7NN5QahqvMiR3yd/sem+4CCfTOsAxH9JTJ X-Received: by 2002:a63:824a:: with SMTP id w71-v6mr1925316pgd.37.1525791603646; Tue, 08 May 2018 08:00:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525791603; cv=none; d=google.com; s=arc-20160816; b=v4HjBZ4JWa1HrIJ5OcxxGhleIcNcnsRLEALio32yvLoBGO1JcHQn7TzyOmeuw9cT0v ep/NCC3UXqMnhUPCocKajWjuE+9+hqUZwS8Mvk02AEClN8+AmKw7HHyZf41HoIRQ/HWY vQbaIp8t5YVtxABTf0+oC4w2rcE2iDoeFJ06ZXW0m+HlLAAbBEkUY/JVDVlWzOIHX+eQ d+6Yw3lPqkn7uccI8n/DxRoWJisZ6/nbhLheNKSWy6cJY+eqkF6569C6Mex5nKBCWh+1 Mtn+1Euom/j9R/+gaE1yjNYxpz8yy/ZjKhixlcvF8/DY3JsuqHWqmckqa5wOgzNyeboo 6vww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=h7wbHyFGciCxYnYbUGv1maxOlL36pO0wF7UJMX+AdXY=; b=I/0RTcwYcDzbIVXHvjnBHJEbeqn/ov9KGZUpBFTXG0dmuJYl/l2785BreFliwJTvHW bTJTrFRT26ICj+ngYlj2WHSBQz8b3zF8kYf8nt1Yf2vZjPjrR/Ku0STn3gXJoA0rz2lQ 2oKdmBSZt6KcyhW+KKF79DQ3mPwOea6TULKljOH61dP7NZQGl/4+QXWb8VV5GaYdiTd5 k+Vttx+bR59jV4YvrLrjhp4CE4KaYxnX5EPhJ3nbVBxG1AYaqU6WL3EqtwX7WttlGYhx eDNwfuHAcuvzDbIhCWXAmhE/QacqlGkj8BcAV8Jl/SnFJ0JYpVgu+zALb9ZFeOf1xDep g0rA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of michael@ozlabs.org designates 2401:3900:2:1::2 as permitted sender) smtp.mailfrom=michael@ozlabs.org Received: from ozlabs.org (ozlabs.org. [2401:3900:2:1::2]) by mx.google.com with ESMTPS id n4si23955277pfa.66.2018.05.08.08.00.03 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 08 May 2018 08:00:03 -0700 (PDT) Received-SPF: pass (google.com: domain of michael@ozlabs.org designates 2401:3900:2:1::2 as permitted sender) client-ip=2401:3900:2:1::2; Authentication-Results: mx.google.com; spf=pass (google.com: domain of michael@ozlabs.org designates 2401:3900:2:1::2 as permitted sender) smtp.mailfrom=michael@ozlabs.org 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> X-Bogosity: Ham, tests=bogofilter, spamicity=0.019713, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: X-Virus-Scanned: ClamAV using ClamSMTP 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) { }