mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH -next] x86: ia32.h: Remove unused code
@ 2023-06-25 12:54 YueHaibing
  2023-06-28 13:16 ` Nikolay Borisov
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: YueHaibing @ 2023-06-25 12:54 UTC (permalink / raw)
  To: tglx, mingo, bp, dave.hansen, x86, hpa, yuehaibing; +Cc: linux-kernel

Since commit 32974ad4907c ("[IA64] Remove COMPAT_IA32 support")
IA32_STACK_TOP and ia32_setup_arg_pages() is not used anymore.
And commit 675a0813609f ("x86: unify mmap_{32|64}.c") left behind
ia32_pick_mmap_layout() extern declaration.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 arch/x86/include/asm/ia32.h | 11 -----------
 1 file changed, 11 deletions(-)

diff --git a/arch/x86/include/asm/ia32.h b/arch/x86/include/asm/ia32.h
index fada857f0a1e..68f7eefe63d3 100644
--- a/arch/x86/include/asm/ia32.h
+++ b/arch/x86/include/asm/ia32.h
@@ -57,17 +57,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
-
 #endif /* CONFIG_IA32_EMULATION */
 
 #endif /* _ASM_X86_IA32_H */
-- 
2.34.1


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

* Re: [PATCH -next] x86: ia32.h: Remove unused code
  2023-06-25 12:54 [PATCH -next] x86: ia32.h: Remove unused code YueHaibing
@ 2023-06-28 13:16 ` Nikolay Borisov
  2023-07-14  3:16 ` YueHaibing
  2024-04-02 13:28 ` [tip: x86/cleanups] x86/32: Remove unused IA32_STACK_TOP and two externs tip-bot2 for YueHaibing
  2 siblings, 0 replies; 4+ messages in thread
From: Nikolay Borisov @ 2023-06-28 13:16 UTC (permalink / raw)
  To: YueHaibing, tglx, mingo, bp, dave.hansen, x86, hpa; +Cc: linux-kernel



On 25.06.23 г. 15:54 ч., YueHaibing wrote:
> Since commit 32974ad4907c ("[IA64] Remove COMPAT_IA32 support")
> IA32_STACK_TOP and ia32_setup_arg_pages() is not used anymore.
> And commit 675a0813609f ("x86: unify mmap_{32|64}.c") left behind
> ia32_pick_mmap_layout() extern declaration.
> 
> Signed-off-by: YueHaibing <yuehaibing@huawei.com>
> ---
>   arch/x86/include/asm/ia32.h | 11 -----------
>   1 file changed, 11 deletions(-)
> 
> diff --git a/arch/x86/include/asm/ia32.h b/arch/x86/include/asm/ia32.h
> index fada857f0a1e..68f7eefe63d3 100644
> --- a/arch/x86/include/asm/ia32.h
> +++ b/arch/x86/include/asm/ia32.h
> @@ -57,17 +57,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
> -
>   #endif /* CONFIG_IA32_EMULATION */
>   
>   #endif /* _ASM_X86_IA32_H */


Reviewed-by: Nikolay Borisov <nik.borisov@suse.com>

I've sent very similar patch (minus removal of IA32_STACK_TOP define) on 
12.06 - 
https://lore.kernel.org/all/20230612154438.638491-1-nik.borisov@suse.com/

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

* Re: [PATCH -next] x86: ia32.h: Remove unused code
  2023-06-25 12:54 [PATCH -next] x86: ia32.h: Remove unused code YueHaibing
  2023-06-28 13:16 ` Nikolay Borisov
@ 2023-07-14  3:16 ` YueHaibing
  2024-04-02 13:28 ` [tip: x86/cleanups] x86/32: Remove unused IA32_STACK_TOP and two externs tip-bot2 for YueHaibing
  2 siblings, 0 replies; 4+ messages in thread
From: YueHaibing @ 2023-07-14  3:16 UTC (permalink / raw)
  To: tglx, mingo, bp, dave.hansen, x86, hpa; +Cc: linux-kernel

ping...

On 2023/6/25 20:54, YueHaibing wrote:
> Since commit 32974ad4907c ("[IA64] Remove COMPAT_IA32 support")
> IA32_STACK_TOP and ia32_setup_arg_pages() is not used anymore.
> And commit 675a0813609f ("x86: unify mmap_{32|64}.c") left behind
> ia32_pick_mmap_layout() extern declaration.
> 
> Signed-off-by: YueHaibing <yuehaibing@huawei.com>
> ---
>  arch/x86/include/asm/ia32.h | 11 -----------
>  1 file changed, 11 deletions(-)
> 
> diff --git a/arch/x86/include/asm/ia32.h b/arch/x86/include/asm/ia32.h
> index fada857f0a1e..68f7eefe63d3 100644
> --- a/arch/x86/include/asm/ia32.h
> +++ b/arch/x86/include/asm/ia32.h
> @@ -57,17 +57,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
> -
>  #endif /* CONFIG_IA32_EMULATION */
>  
>  #endif /* _ASM_X86_IA32_H */
> 

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

* [tip: x86/cleanups] x86/32: Remove unused IA32_STACK_TOP and two externs
  2023-06-25 12:54 [PATCH -next] x86: ia32.h: Remove unused code YueHaibing
  2023-06-28 13:16 ` Nikolay Borisov
  2023-07-14  3:16 ` YueHaibing
@ 2024-04-02 13:28 ` tip-bot2 for YueHaibing
  2 siblings, 0 replies; 4+ messages in thread
From: tip-bot2 for YueHaibing @ 2024-04-02 13:28 UTC (permalink / raw)
  To: linux-tip-commits; +Cc: YueHaibing, Borislav Petkov (AMD), x86, linux-kernel

The following commit has been merged into the x86/cleanups branch of tip:

Commit-ID:     52b2c101b9ce3b954ebbed4c24396ec28f66fcd9
Gitweb:        https://git.kernel.org/tip/52b2c101b9ce3b954ebbed4c24396ec28f66fcd9
Author:        YueHaibing <yuehaibing@huawei.com>
AuthorDate:    Sun, 25 Jun 2023 20:54:11 +08:00
Committer:     Borislav Petkov (AMD) <bp@alien8.de>
CommitterDate: Tue, 02 Apr 2024 15:01:40 +02:00

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
---
 arch/x86/include/asm/ia32.h | 11 -----------
 1 file changed, 11 deletions(-)

diff --git a/arch/x86/include/asm/ia32.h b/arch/x86/include/asm/ia32.h
index 4212c00..9d69f3f 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)

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

end of thread, other threads:[~2024-04-02 13:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-25 12:54 [PATCH -next] x86: ia32.h: Remove unused code YueHaibing
2023-06-28 13:16 ` Nikolay Borisov
2023-07-14  3:16 ` YueHaibing
2024-04-02 13:28 ` [tip: x86/cleanups] x86/32: Remove unused IA32_STACK_TOP and two externs tip-bot2 for YueHaibing

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®