Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp3546461pxb; Mon, 4 Apr 2022 20:45:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxUcoUX0zlu6SXCeLZlxz0TkFVJS/k3smR+1nzpc10rKTgSRH18u+ND26+3vkgYA+/QF9OZ X-Received: by 2002:a63:eb13:0:b0:382:1cd5:7d06 with SMTP id t19-20020a63eb13000000b003821cd57d06mr1210827pgh.280.1649130343528; Mon, 04 Apr 2022 20:45:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649130343; cv=none; d=google.com; s=arc-20160816; b=Sbu8UHIjmVy3NII+NUw//9StJCvpqJ89liRZauiXm0vcd4CU4JvUeuzmKz4/aM5jaJ 47JzDbhuBvXIO6gNcAIJLfBVmiu6LBmQnz4uPYlymiqvabq0UdRNAORtwEK/ldSvmCDJ 2zMfXt66CQYv/InUgsmxChiDZYZvdNX5HsPJMMn+bYfUeeCPUixikyEXwwEZyq+KjKu1 KFzXk22bPZV6aWsCpwm05IJqI4WIGQPZ5JBLwVMYKEP+uwc7nDLhHLfKmuwd7fSruwG0 CDzaXnYGtI6Sp5GZ0wGLfo+23rOmAZR1iLCF/yPdj8HKgaZpO310Qm0jqrtlSxZvYF7w Olzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=PwZ76pi+E1pphrWaO+JmzsmgfjzaPFORwHErcJhS/Zg=; b=ueI1sUX05Z1Vp66Q7kNcNJZ1Y3FW/UHWHQ/5jDEE77nb9av1yjuKtcwym2C9cW9QDt 7ANFdRFWpdhpDPTjyT1EoVotJQVyguGmumoWomz+sfpNshzqJKv7D1vBiMrGZJ9LiQf5 J3F7YJAz+U7L8LLI+mdc4H/ervHEGZ5r0P14sj4YQWMTfHCMnTnFyU8uReioqQ9gYjry aeN1Z+39CDWjVtxbgICDQkNf6j3iuZWn9Jy1TJABwxrO5eLNZ8j05NPuxzII7J6UB1ds mmSGHMzHlCBovW8qyfadNUF405iZ0MIt9D7C3sBExdThK8HvEehoRejoJTGrFy3POMx+ fJFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=QrXbGUeS; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=pOt0TEUA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id z9-20020a170902ccc900b00153b2d16482si11628265ple.138.2022.04.04.20.45.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Apr 2022 20:45:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=QrXbGUeS; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=pOt0TEUA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B35B52983F; Mon, 4 Apr 2022 19:44:56 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229872AbiDECqr (ORCPT + 99 others); Mon, 4 Apr 2022 22:46:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40354 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230201AbiDECqL (ORCPT ); Mon, 4 Apr 2022 22:46:11 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B8ABB385F04; Mon, 4 Apr 2022 18:51:52 -0700 (PDT) Date: Mon, 04 Apr 2022 23:57:39 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1649116660; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=PwZ76pi+E1pphrWaO+JmzsmgfjzaPFORwHErcJhS/Zg=; b=QrXbGUeSZ9tGnmphT8TVTod8Sqjxw3V58/+JVTiLk13f6s1wfOXsVmhLHXnCf/C/XLChI4 LEbyvkizoyR0OyEUhkZKbqZTYs4FmLacKYi4MoyuJ6RTmhuN/+Wt9coa8N+2LFDNKouYnL VmfvfPpJFRkNF+qLNBohrSfDo3S097QY0M/IGnzqdmsZNHWlWo/GuDa8xKA1A7nGSejiNQ wMuyo5MSC83tLnrPxM20urOX4YvrYiCiXwzqWd64i8yKYdbJiuvvBnz4iIUpySEQyR+oIB lcJH/UP7CWF4quGMG7SBmTNujzv7neOt2zZ0phuIqAUXXV1u5JXynaNaBTTECQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1649116660; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=PwZ76pi+E1pphrWaO+JmzsmgfjzaPFORwHErcJhS/Zg=; b=pOt0TEUAEEyXcTRvW6fkt+VJcvDDSV1Irqcmvzd8lD9nnCf34QCK+EqxzP5yG4FVoftznR 7/dBbdMaP0F6faAw== From: "tip-bot2 for Ira Weiny" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/cleanups] x86/pkeys: Remove __arch_set_user_pkey_access() declaration Cc: Ira Weiny , Dave Hansen , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20220331180655.2946086-1-ira.weiny@intel.com> References: <20220331180655.2946086-1-ira.weiny@intel.com> MIME-Version: 1.0 Message-ID: <164911665956.389.14418304758202721398.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the x86/cleanups branch of tip: Commit-ID: 5a0893088a20252cc268cbeabb25e883c2b6f94f Gitweb: https://git.kernel.org/tip/5a0893088a20252cc268cbeabb25e883c2b6f94f Author: Ira Weiny AuthorDate: Thu, 31 Mar 2022 11:06:55 -07:00 Committer: Dave Hansen CommitterDate: Mon, 04 Apr 2022 15:58:24 -07:00 x86/pkeys: Remove __arch_set_user_pkey_access() declaration In the x86 code __arch_set_user_pkey_access() is not used and is not defined. Remove the dead declaration. Signed-off-by: Ira Weiny Signed-off-by: Dave Hansen Link: https://lkml.kernel.org/r/20220331180655.2946086-1-ira.weiny@intel.com --- arch/x86/include/asm/pkeys.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/arch/x86/include/asm/pkeys.h b/arch/x86/include/asm/pkeys.h index 9c53053..2e6c04d 100644 --- a/arch/x86/include/asm/pkeys.h +++ b/arch/x86/include/asm/pkeys.h @@ -41,9 +41,6 @@ static inline int arch_override_mprotect_pkey(struct vm_area_struct *vma, return __arch_override_mprotect_pkey(vma, prot, pkey); } -extern int __arch_set_user_pkey_access(struct task_struct *tsk, int pkey, - unsigned long init_val); - #define ARCH_VM_PKEY_FLAGS (VM_PKEY_BIT0 | VM_PKEY_BIT1 | VM_PKEY_BIT2 | VM_PKEY_BIT3) #define mm_pkey_allocation_map(mm) (mm->context.pkey_allocation_map) @@ -118,9 +115,6 @@ int mm_pkey_free(struct mm_struct *mm, int pkey) return 0; } -extern int __arch_set_user_pkey_access(struct task_struct *tsk, int pkey, - unsigned long init_val); - static inline int vma_pkey(struct vm_area_struct *vma) { unsigned long vma_pkey_mask = VM_PKEY_BIT0 | VM_PKEY_BIT1 |