Skip to contentSkip to conversation

x86: Remove dead declarations in ia32.h

PATCH In review Nikolay Borisov 1 participant 2 messages Jun 12, 2023 – Jul 11, 2023 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86: Remove dead declarations in ia32.h

ia32_pick_mmap_layout got removed in 675a0813609f ("x86: unify mmap_{32|64}.c") and ia32_setup_arg_pages was removed as part of
32974ad4907c ("[IA64] Remove COMPAT_IA32 support").

---
 arch/x86/include/asm/ia32.h | 9 ---------
 1 file changed, 9 deletions(-)
arch/x86/include/asm/ia32.h +0 -9
index fada857f0a1e..068f6227dfdb 100644
@@ -59,15 +59,6 @@ struct stat64 {
 
 #define IA32_STACK_TOP IA32_PAGE_OFFSET
 
-#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);
-
-#endif
-
 #endif /* CONFIG_IA32_EMULATION */
 
 #endif /* _ASM_X86_IA32_H */
Signature · 1 line
2.34.1
#1 lore raw
Quoted 19 lines · Nikolay Borisov

ia32_pick_mmap_layout got removed in 675a0813609f ("x86: unify mmap_{32|64}.c") and ia32_setup_arg_pages was removed as part of
32974ad4907c ("[IA64] Remove COMPAT_IA32 support").

---
  arch/x86/include/asm/ia32.h | 9 ---------
  1 file changed, 9 deletions(-)
arch/x86/include/asm/ia32.h +0 -2
index fada857f0a1e..068f6227dfdb 100644
@@ -59,15 +59,6 @@ struct stat64 {
 
  #define IA32_STACK_TOP IA32_PAGE_OFFSET
 
-#ifdef __KERNEL__
-struct linux_binprm;

arch/x86/include/asm/ia32.h struct stat64 { · line 64

Quoted 10 lines
arch/x86/include/asm/ia32.h +0 -7
-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);
-
-#endif
-
  #endif /* CONFIG_IA32_EMULATION */
 
  #endif /* _ASM_X86_IA32_H */

Ping