From patchwork Fri Jan 22 13:59:51 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoquan He X-Patchwork-Id: 12039471 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=-10.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS 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 F3118C433E6 for ; Fri, 22 Jan 2021 14:00:23 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 97F10239D1 for ; Fri, 22 Jan 2021 14:00:23 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 97F10239D1 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id F04BA6B000C; Fri, 22 Jan 2021 09:00:22 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id EB50D6B000D; Fri, 22 Jan 2021 09:00:22 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id DF2DD6B000E; Fri, 22 Jan 2021 09:00:22 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0217.hostedemail.com [216.40.44.217]) by kanga.kvack.org (Postfix) with ESMTP id C9F3B6B000C for ; Fri, 22 Jan 2021 09:00:22 -0500 (EST) Received: from smtpin28.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 8925A18021518 for ; Fri, 22 Jan 2021 14:00:22 +0000 (UTC) X-FDA: 77733570684.28.robin22_0c11d772756c Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin28.hostedemail.com (Postfix) with ESMTP id 447A075BB for ; Fri, 22 Jan 2021 14:00:14 +0000 (UTC) X-HE-Tag: robin22_0c11d772756c X-Filterd-Recvd-Size: 3348 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by imf07.hostedemail.com (Postfix) with ESMTP for ; Fri, 22 Jan 2021 14:00:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1611324012; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc; bh=bVl+s9G2fJlIxrzrDasHbmLMepcSpXcYlZqYRn6El3M=; b=bPfzlT4iz4AZC5nd6bQJPLj2xa+ZXBJHw6Z+HOFrtKFYK5z4zWyMbpVjF6E+GgXnWNKGMn uOX5aSKibj008ZY6QeEA28eUC7pbxJ3kHFC7R4ObTdbbsogtPXnbGcmNDfV8Z/DIIG2ejH KAcy6VFEtbmtlTcWwDBqMOe07my5y2c= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-391-QvjFMAs9M2Co55ASvyTAgQ-1; Fri, 22 Jan 2021 09:00:09 -0500 X-MC-Unique: QvjFMAs9M2Co55ASvyTAgQ-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id A65E9425D6; Fri, 22 Jan 2021 14:00:07 +0000 (UTC) Received: from MiWiFi-R3L-srv.redhat.com (ovpn-12-114.pek2.redhat.com [10.72.12.114]) by smtp.corp.redhat.com (Postfix) with ESMTP id 9414019C59; Fri, 22 Jan 2021 13:59:57 +0000 (UTC) From: Baoquan He To: linux-kernel@vger.kernel.org Cc: linux-mm@kvack.org, akpm@linux-foundation.org, rppt@kernel.org, david@redhat.com, bhe@redhat.com, lkp@intel.com Subject: [PATCH v5 0/5] mm: clean up names and parameters of memmap_init_xxxx functions Date: Fri, 22 Jan 2021 21:59:51 +0800 Message-Id: <20210122135956.5946-1-bhe@redhat.com> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: This patchset is correcting inappropriate function names of memmap_init_xxx, and simplify parameters of functions in the code flow. And also fix a prototype warning reported by lkp. This is based on the latest next/master. V4 can be found here: https://lore.kernel.org/linux-mm/20210120045213.6571-1-bhe@redhat.com/ v4->v5: - Add patch 1 into series which fixes a prototype warning from kernel test robot. Then rebase the v4 patches on top of it. v3->v4: - Rebased patch 1, 2 on top of Mike's below new patch. [PATCH v3 0/2] mm: fix initialization of struct page for holes in memory layout - Move the code of renaming function parameter 'range_start_pfn' and local variable 'range_end_pfn' of memmap_init() from patch 1 to patch 2 according to David's comment. - Use the reverse Christmas tree style to reorder the local variables in memmap_init_zone() in patch 2 accodrding to David's comment. Baoquan He (5): mm: fix prototype warning from kernel test robot mm: rename memmap_init() and memmap_init_zone() mm: simplify parater of function memmap_init_zone() mm: simplify parameter of setup_usemap() mm: remove unneeded local variable in free_area_init_core arch/ia64/include/asm/pgtable.h | 6 ----- arch/ia64/mm/init.c | 14 +++++----- include/linux/mm.h | 3 ++- mm/memory_hotplug.c | 2 +- mm/page_alloc.c | 46 ++++++++++++++------------------- 5 files changed, 31 insertions(+), 40 deletions(-) Reviewed-by: Mike Rapoport