From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, URIBL_RED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6634FC48BE8 for ; Fri, 11 Jun 2021 00:09:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4B1C6613FF for ; Fri, 11 Jun 2021 00:09:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231272AbhFKALp (ORCPT ); Thu, 10 Jun 2021 20:11:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:36660 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231276AbhFKALn (ORCPT ); Thu, 10 Jun 2021 20:11:43 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B799D6140F; Fri, 11 Jun 2021 00:09:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1623370182; bh=tspPqfiKZcACGD7Hz8s/yPNDfMR9nKiUlwUzYPcyYzw=; h=Date:From:To:Subject:From; b=Je1ODwNPnn05UFVyBp6tfGeloFNQiJpLnFvBLsGHfH0VfHsgWXNebapfeK3Y52Y+f A1EFhYP2dDdaHgKhj4uchZHFZkkTqUKz06IGmS+vqfs7Ep3C+mhZW1lYzvEUH16ZWk W4HAlCchXWdMXdASCkeRl+6TF+6p45G9isMDCj88= Date: Thu, 10 Jun 2021 17:09:42 -0700 From: akpm@linux-foundation.org To: mingo@redhat.com, mm-commits@vger.kernel.org, tglx@linutronix.de, wangkefeng.wang@huawei.com Subject: + x86-convert-to-setup_initial_init_mm.patch added to -mm tree Message-ID: <20210611000942.85GSUHn0C%akpm@linux-foundation.org> User-Agent: s-nail v14.8.16 Precedence: bulk Reply-To: linux-kernel@vger.kernel.org List-ID: X-Mailing-List: mm-commits@vger.kernel.org The patch titled Subject: x86: convert to setup_initial_init_mm() has been added to the -mm tree. Its filename is x86-convert-to-setup_initial_init_mm.patch This patch should soon appear at https://ozlabs.org/~akpm/mmots/broken-out/x86-convert-to-setup_initial_init_mm.patch and later at https://ozlabs.org/~akpm/mmotm/broken-out/x86-convert-to-setup_initial_init_mm.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Kefeng Wang Subject: x86: convert to setup_initial_init_mm() Use setup_initial_init_mm() helper to simplify code. Link: https://lkml.kernel.org/r/20210608083418.137226-16-wangkefeng.wang@huawei.com Signed-off-by: Kefeng Wang Cc: Thomas Gleixner Cc: Ingo Molnar Signed-off-by: Andrew Morton --- arch/x86/kernel/setup.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) --- a/arch/x86/kernel/setup.c~x86-convert-to-setup_initial_init_mm +++ a/arch/x86/kernel/setup.c @@ -871,10 +871,7 @@ void __init setup_arch(char **cmdline_p) if (!boot_params.hdr.root_flags) root_mountflags &= ~MS_RDONLY; - init_mm.start_code = (unsigned long) _text; - init_mm.end_code = (unsigned long) _etext; - init_mm.end_data = (unsigned long) _edata; - init_mm.brk = _brk_end; + setup_initial_init_mm(_text, _etext, _edata, (void *)_brk_end); code_resource.start = __pa_symbol(_text); code_resource.end = __pa_symbol(_etext)-1; _ Patches currently in -mm which might be from wangkefeng.wang@huawei.com are mm-page-writeback-kill-get_writeback_state-comments.patch mm-move-holes_in_zone-into-mm.patch mm-generalize-zone_.patch mm-add-setup_initial_init_mm-helper.patch arc-convert-to-setup_initial_init_mm.patch arm-convert-to-setup_initial_init_mm.patch arm64-convert-to-setup_initial_init_mm.patch csky-convert-to-setup_initial_init_mm.patch h8300-convert-to-setup_initial_init_mm.patch m68k-convert-to-setup_initial_init_mm.patch nds32-convert-to-setup_initial_init_mm.patch nios2-convert-to-setup_initial_init_mm.patch openrisc-convert-to-setup_initial_init_mm.patch powerpc-convert-to-setup_initial_init_mm.patch riscv-convert-to-setup_initial_init_mm.patch s390-convert-to-setup_initial_init_mm.patch sh-convert-to-setup_initial_init_mm.patch x86-convert-to-setup_initial_init_mm.patch