Message ID | 20230625125411.25840-1-yuehaibing@huawei.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp6908540vqr; Sun, 25 Jun 2023 06:12:39 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6JXtvc/DQ2NYgwmjV3Z2bSlaB/b6RtDmPlyc38W2AfVQnCfGahGQDeLML34tF+eu9RLCTK X-Received: by 2002:a05:6a21:9992:b0:111:1bd6:2731 with SMTP id ve18-20020a056a21999200b001111bd62731mr14041303pzb.7.1687698759021; Sun, 25 Jun 2023 06:12:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687698759; cv=none; d=google.com; s=arc-20160816; b=0QFI7lgpu+QZcPmIkw2EPObTURDV1i6PXTawllq+5VmUgqW0rHwGDebVYlGorBTcT1 mPKmIHa31MQttGMJGO4HCUf8f+IIZ2Reh7afK5Tq2i8vNNRmPGLvtSEJ1BQpO4ZmWkry ScSRHPXzWhTZLEhfysazLLkVi9G55xkwqDZ6ngaBrvvuWYwEkCD7cAbDLsYaHeldM+xv nZB+UANHpDurOH5cOHdniRiEkvrfS3gOxXdFFXdn+D7cPFTOp/8Vh8+JE9NBM1TdHGHu PevXptxdw5xPQPrSD7GfFnkuGZXbRVglN8CEZXAFHee9/afZWfWm1cS73zsj1qJFfmZ7 Xu/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=Zq6kuxvoE+lmvsG1nmY7YcvdK9A8A5T3aYyut7zR99Q=; fh=p3fUvVy1TOsgieFBP+fOOMiB7XoY/Cz79/KZDLSIK8M=; b=lZIsjSp0XUdlsZfXz+uyxEnKJZVEF8Bz72s6kgxPKI0h3AwM5QMI33nKeOAqoFYDAy Ouw5Hbd6Sz0MQMjldqa+HTCbM93dMcf/O4xmpz3aIwbqh88k/MzsyNiwn/a0ey/fNNPg 72UjrUgwXHwLB7C0GTDKjDYBY9vh4zrTKEcerw/o1vhRN3mQEx2bVSvb2EkgjxhkKLlg IHTEKgz7QF0VLYHaCxjPAZsq7P93XQQZjStaj8/z0KrnAgUm1Dgfj6D9CLt5qZ1Bvpm6 rVrJ98Wr2wqq2GV40bjHzw7rdVjUGFpOF9Ai0FQn1lXXgHyBpwz8o0gEcXtfKj44asY0 tY4Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w18-20020a170902d71200b001b3b2697004si2987224ply.333.2023.06.25.06.12.26; Sun, 25 Jun 2023 06:12:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231761AbjFYMy6 (ORCPT <rfc822;duw91626@gmail.com> + 99 others); Sun, 25 Jun 2023 08:54:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231193AbjFYMyy (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 25 Jun 2023 08:54:54 -0400 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8EDC9D2 for <linux-kernel@vger.kernel.org>; Sun, 25 Jun 2023 05:54:49 -0700 (PDT) Received: from canpemm500007.china.huawei.com (unknown [172.30.72.54]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4QprXV3Rc2z1HC6c; Sun, 25 Jun 2023 20:54:34 +0800 (CST) Received: from localhost (10.174.179.215) by canpemm500007.china.huawei.com (7.192.104.62) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Sun, 25 Jun 2023 20:54:46 +0800 From: YueHaibing <yuehaibing@huawei.com> To: <tglx@linutronix.de>, <mingo@redhat.com>, <bp@alien8.de>, <dave.hansen@linux.intel.com>, <x86@kernel.org>, <hpa@zytor.com>, <yuehaibing@huawei.com> CC: <linux-kernel@vger.kernel.org> Subject: [PATCH -next] x86: ia32.h: Remove unused code Date: Sun, 25 Jun 2023 20:54:11 +0800 Message-ID: <20230625125411.25840-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.174.179.215] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To canpemm500007.china.huawei.com (7.192.104.62) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769680413993914687?= X-GMAIL-MSGID: =?utf-8?q?1769680413993914687?= |
Series |
[-next] x86: ia32.h: Remove unused code
|
|
Commit Message
Yue Haibing
June 25, 2023, 12:54 p.m. UTC
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(-)
Comments
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/
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 */ >
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 */