Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp2164022ybe; Thu, 12 Sep 2019 05:38:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqxS31Y1yuRwTl+KeXMwEoSES9ioFwo/JFRWEAlFxd5+5Khkyv1IXrY/Myh3H3mmwKLHC7CK X-Received: by 2002:a17:906:a954:: with SMTP id hh20mr34504856ejb.196.1568291891349; Thu, 12 Sep 2019 05:38:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568291891; cv=none; d=google.com; s=arc-20160816; b=n3Wm6xFjuLBuyrC238NzuuUBaTNC4hKfv3yghZJufH0/e1DbXI8zVW7DT640VK4T7A XrWj4fATKRHgwGyyUMcHjp0wM2Qa7qMA19JnKdPx+zO94uswfuAYuUs4sbpSvyK12eI9 yaXrr63J2tXba85b90m5Oy5zqepCGgU7Dym6eZHPm9MYUgFTrkR29ca+iTLJyoq++GEB I4sI3SRiASyWG3mh6qQCjNBE2v+PhzRTLNRE1Gdsr4l0BHfbsKoQV2EgFpNtPHG+rK15 vmcsBHt0efltpqDNnsJiKG2zptUo0KQqagirZ8NFMlXP/Z9Des/gSDf2IcWzd0Wo/ZUp opog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=ADMIZIyWMvsXe6ifP8OFEAOmNVpW9Y+Y+XzSDPu1oXg=; b=ox4mJ8JXM31OS/q7nf8fHfjGbAUj3BRCWT4AoSLyBBPjg6AANGfoCiX4ux76oQBm9x 3NXVMgT1GBZY0QsO1owvpqn8pBtftaUi4KmUw5mYnUXyBkLkx1IcB/69b4eEfZM/ObUL mJIfTVmTo04hctRPqFZi/xVriz0RZBYiNGsUBCaKZT9J52FzfxN56SgIdGoO7vuMJvmJ NW4LojW8ztIZWPnWyX+SklpzByxLsMumd41xMxzHEbdTXJk6WtluEJKn++oRMhV12uVm i65Qkgdi/XDAJ67PPd1qKqk2do9G4f4skii/1mTNcFmDVgLWaJLLf5pDENdghU4rvR1C jo4A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r23si12688775eji.295.2019.09.12.05.37.46; Thu, 12 Sep 2019 05:38:11 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731652AbfILMcL (ORCPT + 99 others); Thu, 12 Sep 2019 08:32:11 -0400 Received: from mail.cn.fujitsu.com ([183.91.158.132]:62304 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1731283AbfILMcK (ORCPT ); Thu, 12 Sep 2019 08:32:10 -0400 X-IronPort-AV: E=Sophos;i="5.64,495,1559491200"; d="scan'208";a="75376858" Received: from unknown (HELO cn.fujitsu.com) ([10.167.33.5]) by heian.cn.fujitsu.com with ESMTP; 12 Sep 2019 20:32:07 +0800 Received: from G08CNEXCHPEKD01.g08.fujitsu.local (unknown [10.167.33.80]) by cn.fujitsu.com (Postfix) with ESMTP id 5C6DB4CE030A; Thu, 12 Sep 2019 20:31:55 +0800 (CST) Received: from TSAO.g08.fujitsu.local (10.167.226.60) by G08CNEXCHPEKD01.g08.fujitsu.local (10.167.33.89) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 12 Sep 2019 20:32:13 +0800 From: Cao jin To: , CC: Subject: [PATCH] mm/memblock: cleanup doc Date: Thu, 12 Sep 2019 20:31:27 +0800 Message-ID: <20190912123127.8694-1-caoj.fnst@cn.fujitsu.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.167.226.60] X-yoursite-MailScanner-ID: 5C6DB4CE030A.A8C2F X-yoursite-MailScanner: Found to be clean X-yoursite-MailScanner-From: caoj.fnst@cn.fujitsu.com X-Spam-Status: No Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org fix typos for: elaboarte -> elaborate architecure -> architecture compltes -> completes And, convert the markup :c:func:`foo` to foo() as kernel documentation toolchain can recognize foo() as a function. Suggested-by: Mike Rapoport Signed-off-by: Cao jin --- mm/memblock.c | 44 ++++++++++++++++++++------------------------ 1 file changed, 20 insertions(+), 24 deletions(-) diff --git a/mm/memblock.c b/mm/memblock.c index 7d4f61ae666a..c23b370cc49e 100644 --- a/mm/memblock.c +++ b/mm/memblock.c @@ -57,42 +57,38 @@ * at build time. The region arrays for the "memory" and "reserved" * types are initially sized to %INIT_MEMBLOCK_REGIONS and for the * "physmap" type to %INIT_PHYSMEM_REGIONS. - * The :c:func:`memblock_allow_resize` enables automatic resizing of - * the region arrays during addition of new regions. This feature - * should be used with care so that memory allocated for the region - * array will not overlap with areas that should be reserved, for - * example initrd. + * The memblock_allow_resize() enables automatic resizing of the region + * arrays during addition of new regions. This feature should be used + * with care so that memory allocated for the region array will not + * overlap with areas that should be reserved, for example initrd. * * The early architecture setup should tell memblock what the physical - * memory layout is by using :c:func:`memblock_add` or - * :c:func:`memblock_add_node` functions. The first function does not - * assign the region to a NUMA node and it is appropriate for UMA - * systems. Yet, it is possible to use it on NUMA systems as well and - * assign the region to a NUMA node later in the setup process using - * :c:func:`memblock_set_node`. The :c:func:`memblock_add_node` - * performs such an assignment directly. + * memory layout is by using memblock_add() or memblock_add_node() + * functions. The first function does not assign the region to a NUMA + * node and it is appropriate for UMA systems. Yet, it is possible to + * use it on NUMA systems as well and assign the region to a NUMA node + * later in the setup process using memblock_set_node(). The + * memblock_add_node() performs such an assignment directly. * * Once memblock is setup the memory can be allocated using one of the * API variants: * - * * :c:func:`memblock_phys_alloc*` - these functions return the - * **physical** address of the allocated memory - * * :c:func:`memblock_alloc*` - these functions return the **virtual** - * address of the allocated memory. + * * memblock_phys_alloc*() - these functions return the **physical** + * address of the allocated memory + * * memblock_alloc*() - these functions return the **virtual** address + * of the allocated memory. * * Note, that both API variants use implict assumptions about allowed * memory ranges and the fallback methods. Consult the documentation - * of :c:func:`memblock_alloc_internal` and - * :c:func:`memblock_alloc_range_nid` functions for more elaboarte - * description. + * of memblock_alloc_internal() and memblock_alloc_range_nid() + * functions for more elaborate description. * - * As the system boot progresses, the architecture specific - * :c:func:`mem_init` function frees all the memory to the buddy page - * allocator. + * As the system boot progresses, the architecture specific mem_init() + * function frees all the memory to the buddy page allocator. * - * Unless an architecure enables %CONFIG_ARCH_KEEP_MEMBLOCK, the + * Unless an architecture enables %CONFIG_ARCH_KEEP_MEMBLOCK, the * memblock data structures will be discarded after the system - * initialization compltes. + * initialization completes. */ #ifndef CONFIG_NEED_MULTIPLE_NODES -- 2.21.0