All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] Remove orphan declarations for x86
@ 2022-09-20  2:07 Gaosheng Cui
  2022-09-20  2:07 ` [PATCH 1/4] x86/asm: remove orphan nx_enabled declaration Gaosheng Cui
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Gaosheng Cui @ 2022-09-20  2:07 UTC (permalink / raw)
  To: tglx, mingo, bp, dave.hansen, x86, hpa, peterz, ndesaulniers,
	jpoimboe, cuigaosheng1, lukas.bulwahn, akpm, pbonzini,
	anshuman.khandual, namit, seanjc
  Cc: linux-kernel

This series contains a few cleanup patches, to remove orphan
declarations which have been removed. Thanks!

Gaosheng Cui (4):
  x86/asm: remove orphan nx_enabled declaration
  x86/platform/intel-mid: remove orphan declarations from intel-mid.h
  x86: remove orphan ia32_setup_arg_pages() declaration
  x86/extable: remove orphan fixup_bug() declaration

 arch/x86/include/asm/extable.h       |  1 -
 arch/x86/include/asm/ia32.h          |  2 --
 arch/x86/include/asm/intel-mid.h     | 12 ------------
 arch/x86/include/asm/pgtable_types.h |  1 -
 4 files changed, 16 deletions(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 1/4] x86/asm: remove orphan nx_enabled declaration
  2022-09-20  2:07 [PATCH 0/4] Remove orphan declarations for x86 Gaosheng Cui
@ 2022-09-20  2:07 ` Gaosheng Cui
  2022-09-20  2:07 ` [PATCH 2/4] x86/platform/intel-mid: remove orphan declarations from intel-mid.h Gaosheng Cui
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Gaosheng Cui @ 2022-09-20  2:07 UTC (permalink / raw)
  To: tglx, mingo, bp, dave.hansen, x86, hpa, peterz, ndesaulniers,
	jpoimboe, cuigaosheng1, lukas.bulwahn, akpm, pbonzini,
	anshuman.khandual, namit, seanjc
  Cc: linux-kernel

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 <cuigaosheng1@huawei.com>
---
 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/pgtable_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;
 
 #define pgprot_writecombine	pgprot_writecombine
 extern pgprot_t pgprot_writecombine(pgprot_t prot);
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 2/4] x86/platform/intel-mid: remove orphan declarations from intel-mid.h
  2022-09-20  2:07 [PATCH 0/4] Remove orphan declarations for x86 Gaosheng Cui
  2022-09-20  2:07 ` [PATCH 1/4] x86/asm: remove orphan nx_enabled declaration Gaosheng Cui
@ 2022-09-20  2:07 ` Gaosheng Cui
  2022-09-20  2:07 ` [PATCH 3/4] x86: remove orphan ia32_setup_arg_pages() declaration Gaosheng Cui
  2022-09-20  2:07 ` [PATCH 4/4] x86/extable: remove orphan fixup_bug() declaration Gaosheng Cui
  3 siblings, 0 replies; 5+ messages in thread
From: Gaosheng Cui @ 2022-09-20  2:07 UTC (permalink / raw)
  To: tglx, mingo, bp, dave.hansen, x86, hpa, peterz, ndesaulniers,
	jpoimboe, cuigaosheng1, lukas.bulwahn, akpm, pbonzini,
	anshuman.khandual, namit, seanjc
  Cc: linux-kernel

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 <cuigaosheng1@huawei.com>
---
 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);
 
 extern int intel_mid_pwr_get_lss_id(struct pci_dev *pdev);
 
-#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 */
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 3/4] x86: remove orphan ia32_setup_arg_pages() declaration
  2022-09-20  2:07 [PATCH 0/4] Remove orphan declarations for x86 Gaosheng Cui
  2022-09-20  2:07 ` [PATCH 1/4] x86/asm: remove orphan nx_enabled declaration Gaosheng Cui
  2022-09-20  2:07 ` [PATCH 2/4] x86/platform/intel-mid: remove orphan declarations from intel-mid.h Gaosheng Cui
@ 2022-09-20  2:07 ` Gaosheng Cui
  2022-09-20  2:07 ` [PATCH 4/4] x86/extable: remove orphan fixup_bug() declaration Gaosheng Cui
  3 siblings, 0 replies; 5+ messages in thread
From: Gaosheng Cui @ 2022-09-20  2:07 UTC (permalink / raw)
  To: tglx, mingo, bp, dave.hansen, x86, hpa, peterz, ndesaulniers,
	jpoimboe, cuigaosheng1, lukas.bulwahn, akpm, pbonzini,
	anshuman.khandual, namit, seanjc
  Cc: linux-kernel

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 <cuigaosheng1@huawei.com>
---
 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 {
 
 #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);
 
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 4/4] x86/extable: remove orphan fixup_bug() declaration
  2022-09-20  2:07 [PATCH 0/4] Remove orphan declarations for x86 Gaosheng Cui
                   ` (2 preceding siblings ...)
  2022-09-20  2:07 ` [PATCH 3/4] x86: remove orphan ia32_setup_arg_pages() declaration Gaosheng Cui
@ 2022-09-20  2:07 ` Gaosheng Cui
  3 siblings, 0 replies; 5+ messages in thread
From: Gaosheng Cui @ 2022-09-20  2:07 UTC (permalink / raw)
  To: tglx, mingo, bp, dave.hansen, x86, hpa, peterz, ndesaulniers,
	jpoimboe, cuigaosheng1, lukas.bulwahn, akpm, pbonzini,
	anshuman.khandual, namit, seanjc
  Cc: linux-kernel

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 <cuigaosheng1@huawei.com>
---
 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;
 
 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);
 
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-09-20  2:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-20  2:07 [PATCH 0/4] Remove orphan declarations for x86 Gaosheng Cui
2022-09-20  2:07 ` [PATCH 1/4] x86/asm: remove orphan nx_enabled declaration Gaosheng Cui
2022-09-20  2:07 ` [PATCH 2/4] x86/platform/intel-mid: remove orphan declarations from intel-mid.h Gaosheng Cui
2022-09-20  2:07 ` [PATCH 3/4] x86: remove orphan ia32_setup_arg_pages() declaration Gaosheng Cui
2022-09-20  2:07 ` [PATCH 4/4] x86/extable: remove orphan fixup_bug() declaration Gaosheng Cui

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.