summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2023-06-25 14:54:11 +0200
committerBorislav Petkov (AMD) <bp@alien8.de>2024-04-02 15:01:40 +0200
commit52b2c101b9ce3b954ebbed4c24396ec28f66fcd9 (patch)
treeb6913e599542c3994d5de82513660ccb21ca48c0
parentx86/head: Simplify relative include path to xen-head.S (diff)
downloadlinux-52b2c101b9ce3b954ebbed4c24396ec28f66fcd9.tar.xz
linux-52b2c101b9ce3b954ebbed4c24396ec28f66fcd9.zip
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
-rw-r--r--arch/x86/include/asm/ia32.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/arch/x86/include/asm/ia32.h b/arch/x86/include/asm/ia32.h
index 4212c00c9708..9d69f3f8dbab 100644
--- a/arch/x86/include/asm/ia32.h
+++ b/arch/x86/include/asm/ia32.h
@@ -56,17 +56,6 @@ struct stat64 {
unsigned long long st_ino;
} __attribute__((packed));
-#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
-
extern bool __ia32_enabled;
static __always_inline bool ia32_enabled(void)