From nobody Thu Apr 2 22:59:31 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 75CCDC54EE9 for ; Tue, 20 Sep 2022 02:07:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230121AbiITCHZ (ORCPT ); Mon, 19 Sep 2022 22:07:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34608 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230110AbiITCHQ (ORCPT ); Mon, 19 Sep 2022 22:07:16 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F3F757244 for ; Mon, 19 Sep 2022 19:07:15 -0700 (PDT) Received: from kwepemi500012.china.huawei.com (unknown [172.30.72.55]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4MWlDS4XGqzMn1N; Tue, 20 Sep 2022 10:02:32 +0800 (CST) Received: from cgs.huawei.com (10.244.148.83) by kwepemi500012.china.huawei.com (7.221.188.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Tue, 20 Sep 2022 10:07:12 +0800 From: Gaosheng Cui To: , , , , , , , , , , , , , , , CC: Subject: [PATCH 1/4] x86/asm: remove orphan nx_enabled declaration Date: Tue, 20 Sep 2022 10:07:08 +0800 Message-ID: <20220920020711.789296-2-cuigaosheng1@huawei.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220920020711.789296-1-cuigaosheng1@huawei.com> References: <20220920020711.789296-1-cuigaosheng1@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [10.244.148.83] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To kwepemi500012.china.huawei.com (7.221.188.12) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" The nx_enabled has been removed by commit 4763ed4d4552 ("x86, mm: Clean up and simplify NX enablement"), so remove the orphan declaration. Signed-off-by: Gaosheng Cui --- arch/x86/include/asm/pgtable_types.h | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/x86/include/asm/pgtable_types.h b/arch/x86/include/asm/pg= table_types.h index aa174fed3a71..53cc7a5ceae3 100644 --- a/arch/x86/include/asm/pgtable_types.h +++ b/arch/x86/include/asm/pgtable_types.h @@ -490,7 +490,6 @@ typedef struct page *pgtable_t; extern pteval_t __supported_pte_mask; extern pteval_t __default_kernel_pte_mask; extern void set_nx(void); -extern int nx_enabled; =20 #define pgprot_writecombine pgprot_writecombine extern pgprot_t pgprot_writecombine(pgprot_t prot); --=20 2.25.1 From nobody Thu Apr 2 22:59:31 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 25C54C6FA82 for ; Tue, 20 Sep 2022 02:07:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230137AbiITCH3 (ORCPT ); Mon, 19 Sep 2022 22:07:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230112AbiITCHR (ORCPT ); Mon, 19 Sep 2022 22:07:17 -0400 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA81857247 for ; Mon, 19 Sep 2022 19:07:15 -0700 (PDT) Received: from kwepemi500012.china.huawei.com (unknown [172.30.72.54]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4MWlF86NJSz14Qdw; Tue, 20 Sep 2022 10:03:08 +0800 (CST) Received: from cgs.huawei.com (10.244.148.83) by kwepemi500012.china.huawei.com (7.221.188.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Tue, 20 Sep 2022 10:07:13 +0800 From: Gaosheng Cui To: , , , , , , , , , , , , , , , CC: Subject: [PATCH 2/4] x86/platform/intel-mid: remove orphan declarations from intel-mid.h Date: Tue, 20 Sep 2022 10:07:09 +0800 Message-ID: <20220920020711.789296-3-cuigaosheng1@huawei.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220920020711.789296-1-cuigaosheng1@huawei.com> References: <20220920020711.789296-1-cuigaosheng1@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [10.244.148.83] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To kwepemi500012.china.huawei.com (7.221.188.12) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" All uses of intel_scu_devices_create() and intel_scu_devices_destroy() have been removed by commit 4590d98f5a4f ("sfi: Remove framework for deprecated firmware") So remove the orphan declarations and the unused inline functions. Signed-off-by: Gaosheng Cui --- arch/x86/include/asm/intel-mid.h | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/arch/x86/include/asm/intel-mid.h b/arch/x86/include/asm/intel-= mid.h index c201083b34f6..1020a761bb7e 100644 --- a/arch/x86/include/asm/intel-mid.h +++ b/arch/x86/include/asm/intel-mid.h @@ -20,18 +20,6 @@ extern void intel_mid_pwr_power_off(void); =20 extern int intel_mid_pwr_get_lss_id(struct pci_dev *pdev); =20 -#ifdef CONFIG_X86_INTEL_MID - -extern void intel_scu_devices_create(void); -extern void intel_scu_devices_destroy(void); - -#else /* !CONFIG_X86_INTEL_MID */ - -static inline void intel_scu_devices_create(void) { } -static inline void intel_scu_devices_destroy(void) { } - -#endif /* !CONFIG_X86_INTEL_MID */ - /* Bus Select SoC Fuse value */ #define BSEL_SOC_FUSE_MASK 0x7 /* FSB 133MHz */ --=20 2.25.1 From nobody Thu Apr 2 22:59:31 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 A4B2CC54EE9 for ; Tue, 20 Sep 2022 02:07:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229832AbiITCHg (ORCPT ); Mon, 19 Sep 2022 22:07:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230122AbiITCHS (ORCPT ); Mon, 19 Sep 2022 22:07:18 -0400 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A7D1757254 for ; Mon, 19 Sep 2022 19:07:16 -0700 (PDT) Received: from kwepemi500012.china.huawei.com (unknown [172.30.72.55]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4MWlF94Gtmz14Qjc; Tue, 20 Sep 2022 10:03:09 +0800 (CST) Received: from cgs.huawei.com (10.244.148.83) by kwepemi500012.china.huawei.com (7.221.188.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Tue, 20 Sep 2022 10:07:13 +0800 From: Gaosheng Cui To: , , , , , , , , , , , , , , , CC: Subject: [PATCH 3/4] x86: remove orphan ia32_setup_arg_pages() declaration Date: Tue, 20 Sep 2022 10:07:10 +0800 Message-ID: <20220920020711.789296-4-cuigaosheng1@huawei.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220920020711.789296-1-cuigaosheng1@huawei.com> References: <20220920020711.789296-1-cuigaosheng1@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [10.244.148.83] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To kwepemi500012.china.huawei.com (7.221.188.12) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" The ia32_setup_arg_pages() has been removed by commit b6a2fea39318 ("mm: variable length argument support"), so remove the orphan declaration. Signed-off-by: Gaosheng Cui --- arch/x86/include/asm/ia32.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/x86/include/asm/ia32.h b/arch/x86/include/asm/ia32.h index fada857f0a1e..32e51ca35c0a 100644 --- a/arch/x86/include/asm/ia32.h +++ b/arch/x86/include/asm/ia32.h @@ -61,8 +61,6 @@ struct stat64 { =20 #ifdef __KERNEL__ struct linux_binprm; -extern int ia32_setup_arg_pages(struct linux_binprm *bprm, - unsigned long stack_top, int exec_stack); struct mm_struct; extern void ia32_pick_mmap_layout(struct mm_struct *mm); =20 --=20 2.25.1 From nobody Thu Apr 2 22:59:31 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 D5214C6FA90 for ; Tue, 20 Sep 2022 02:07:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230142AbiITCHc (ORCPT ); Mon, 19 Sep 2022 22:07:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34664 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230123AbiITCHS (ORCPT ); Mon, 19 Sep 2022 22:07:18 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 421EA57234 for ; Mon, 19 Sep 2022 19:07:17 -0700 (PDT) Received: from kwepemi500012.china.huawei.com (unknown [172.30.72.57]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4MWlDV5Bw8zMn50; Tue, 20 Sep 2022 10:02:34 +0800 (CST) Received: from cgs.huawei.com (10.244.148.83) by kwepemi500012.china.huawei.com (7.221.188.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Tue, 20 Sep 2022 10:07:14 +0800 From: Gaosheng Cui To: , , , , , , , , , , , , , , , CC: Subject: [PATCH 4/4] x86/extable: remove orphan fixup_bug() declaration Date: Tue, 20 Sep 2022 10:07:11 +0800 Message-ID: <20220920020711.789296-5-cuigaosheng1@huawei.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220920020711.789296-1-cuigaosheng1@huawei.com> References: <20220920020711.789296-1-cuigaosheng1@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [10.244.148.83] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To kwepemi500012.china.huawei.com (7.221.188.12) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" The fixup_bug() has been removed by commit 15a416e8aaa7 ("x86/entry: Treat BUG/WARN as NMI-like entries"), so remove the orphan declaration. Signed-off-by: Gaosheng Cui --- arch/x86/include/asm/extable.h | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/x86/include/asm/extable.h b/arch/x86/include/asm/extable.h index eeed395c3177..a0e0c6b50155 100644 --- a/arch/x86/include/asm/extable.h +++ b/arch/x86/include/asm/extable.h @@ -37,7 +37,6 @@ struct pt_regs; =20 extern int fixup_exception(struct pt_regs *regs, int trapnr, unsigned long error_code, unsigned long fault_addr); -extern int fixup_bug(struct pt_regs *regs, int trapnr); extern int ex_get_fixup_type(unsigned long ip); extern void early_fixup_exception(struct pt_regs *regs, int trapnr); =20 --=20 2.25.1