From nobody Tue Jun 23 12:17:53 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 990BAC433EF for ; Fri, 4 Mar 2022 21:03:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229768AbiCDVDu (ORCPT ); Fri, 4 Mar 2022 16:03:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229520AbiCDVDr (ORCPT ); Fri, 4 Mar 2022 16:03:47 -0500 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B4D46D4C3 for ; Fri, 4 Mar 2022 13:02:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1646427778; x=1677963778; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=84rzB7EGCaXOZL1cBO3nEdZINVTxlpedFJz4fEGxUic=; b=HGW00jORUgLSWp8CiOzpAhHiHcKA/4a2HCXJzSuz/PwN8wlBt9eK9pfW IlzhKomc5SoQJQLlhRHgBg5anqx33N/p9CIalN/Os72ds+NWHxvkk1wnH XbIOov/kd7O2yDw/rwwKhklPFOIuTX5hJjElcjbNL1B9tSvDQZ9NZAzN3 GqMYuxBK+YqyDuDSKYLyezgkD5lgHSHeclnENu3DqmLVAeT7r2cN9YXq/ c8bSxdR294uzmcZaQkEB/C/H5NBYAK54vq3U2LPMIJOP6NDd11Qo9TZ2C aIcbyvxZslk5ldjksDVmWBDCbV6F2aT0Ke0q4rb3NHBHEBekQng0ccxHl A==; X-IronPort-AV: E=McAfee;i="6200,9189,10276"; a="340493361" X-IronPort-AV: E=Sophos;i="5.90,156,1643702400"; d="scan'208";a="340493361" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Mar 2022 13:02:58 -0800 X-IronPort-AV: E=Sophos;i="5.90,156,1643702400"; d="scan'208";a="810883039" Received: from fushengl-mobl1.amr.corp.intel.com (HELO localhost) ([10.212.64.239]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Mar 2022 13:02:58 -0800 From: ira.weiny@intel.com To: Dave Hansen Cc: Ira Weiny , linux-kernel@vger.kernel.org Subject: [PATCH] x86/pkeys: Remove __arch_set_user_pkey_access() declaration Date: Fri, 4 Mar 2022 13:02:48 -0800 Message-Id: <20220304210248.3490549-1-ira.weiny@intel.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Ira Weiny In the x86 code __arch_set_user_pkey_access() is not used and is not defined. Remove the dead declaration. To: Dave Hansen Signed-off-by: Ira Weiny --- arch/x86/include/asm/pkeys.h | 5 ----- 1 file changed, 5 deletions(-) diff --git a/arch/x86/include/asm/pkeys.h b/arch/x86/include/asm/pkeys.h index 1d5f14aff5f6..5292e6dfe2a7 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_a= rea_struct *vma, return __arch_override_mprotect_pkey(vma, prot, pkey); } =20 -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 | V= M_PKEY_BIT3) =20 #define mm_pkey_allocation_map(mm) (mm->context.pkey_allocation_map) @@ -120,8 +117,6 @@ int mm_pkey_free(struct mm_struct *mm, int pkey) =20 extern int arch_set_user_pkey_access(struct task_struct *tsk, int pkey, unsigned long init_val); -extern int __arch_set_user_pkey_access(struct task_struct *tsk, int pkey, - unsigned long init_val); =20 static inline int vma_pkey(struct vm_area_struct *vma) { --=20 2.35.1