Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

x86/32: Remove unused IA32_STACK_TOP and two externs

Since

32974ad4907c ("[IA64] Remove COMPAT_IA32 support")

IA32_STACK_TOP and ia32_setup_arg_pages() are not used anymore.

And

675a0813609f ("x86: unify mmap_{32|64}.c")

left behind ia32_pick_mmap_layout() extern declaration.

Remove them all.

[ bp: Massage commit message. ]

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/20230625125411.25840-1-yuehaibing@huawei.com

authored by

YueHaibing and committed by
Borislav Petkov (AMD)
52b2c101 c3262d3d

-11
-11
arch/x86/include/asm/ia32.h
··· 56 56 unsigned long long st_ino; 57 57 } __attribute__((packed)); 58 58 59 - #define IA32_STACK_TOP IA32_PAGE_OFFSET 60 - 61 - #ifdef __KERNEL__ 62 - struct linux_binprm; 63 - extern int ia32_setup_arg_pages(struct linux_binprm *bprm, 64 - unsigned long stack_top, int exec_stack); 65 - struct mm_struct; 66 - extern void ia32_pick_mmap_layout(struct mm_struct *mm); 67 - 68 - #endif 69 - 70 59 extern bool __ia32_enabled; 71 60 72 61 static __always_inline bool ia32_enabled(void)