From patchwork Sat Jun 30 14:54:56 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Rapoport X-Patchwork-Id: 10498229 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1975960230 for ; Sat, 30 Jun 2018 14:55:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0A03028F7E for ; Sat, 30 Jun 2018 14:55:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F22032906A; Sat, 30 Jun 2018 14:55:25 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 51B3528F7E for ; Sat, 30 Jun 2018 14:55:25 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id CE72A6B0005; Sat, 30 Jun 2018 10:55:21 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id C9FDA6B0006; Sat, 30 Jun 2018 10:55:21 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A9BAF6B0007; Sat, 30 Jun 2018 10:55:21 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-wr0-f199.google.com (mail-wr0-f199.google.com [209.85.128.199]) by kanga.kvack.org (Postfix) with ESMTP id 489D06B0005 for ; Sat, 30 Jun 2018 10:55:21 -0400 (EDT) Received: by mail-wr0-f199.google.com with SMTP id c12-v6so6252373wrs.13 for ; Sat, 30 Jun 2018 07:55:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-original-authentication-results:x-gm-message-state:from:to:cc :subject:date:in-reply-to:references:message-id; bh=zDajFsHvB3Z7sntkW0Ram6Eb+fKCXwtfc+KR9ibMjbQ=; b=JZdkHTGBz23nhzpUMjJ9Ljm4Xl+D7fQm1BMvNg6hvdc8GOTt98kVf0+X2kH8BBzT54 ilKRp8H0juffovKx3raBMwWp2VmwtiaecbypYoyWMcKJrzuD+jyHA/WHY4rbVsByd9/g EhS6zNHQStvLAzluSAT8brg0FMGof1kjXFO9ogLNVl1wrjYRbMSNDJjKzi9FccglNhr/ 8WWgASe2nbc+TMBblNaL+I3IkRnWVvAPWze/QvLmV6mgcF3tSyT3B12TH7omd96amSlQ QSkvyeX1Bcq9yaJDVBbir4aKS7pf3TI1bvz1qP69jv3dD4ZTS3Y+UNIEXJtzO6nWZcp2 tImA== X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 148.163.158.5 is neither permitted nor denied by best guess record for domain of rppt@linux.vnet.ibm.com) smtp.mailfrom=rppt@linux.vnet.ibm.com; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com X-Gm-Message-State: APt69E15a0nISF3JaYlfA62rViETTGlhr36HTbvA7pBhfT88ulX4yP7F VbvFjM13zWW/jIZfD87k8t8xetYTkNYKucq5XPWVIvJoZ+m8ie7/7LEROxOevBiqIZzcMSTcwAe 0c9cnfkI221JtZTdOg3RU+SkpmHo65jFykA3OdPao1N51a4cCDj94TBEEGFutn4Y= X-Received: by 2002:adf:bbc9:: with SMTP id z9-v6mr14899334wrg.183.1530370520794; Sat, 30 Jun 2018 07:55:20 -0700 (PDT) X-Google-Smtp-Source: AAOMgpc4BRHNAhjK0yd5QsX4lcvC9+u35Loxvo8yZQfbf6OMy7vWLpoV+DdTEdH1wlLjsatEcZ0g X-Received: by 2002:adf:bbc9:: with SMTP id z9-v6mr14899304wrg.183.1530370519677; Sat, 30 Jun 2018 07:55:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530370519; cv=none; d=google.com; s=arc-20160816; b=Z/qFRgrpaoDi0U0NBFY3F9lN8JriLfy8F9zFwKFS68Zqt9AF9CtlH+NWAofWJBV6Ft djHZcLh3KGoEKdQ3fYF6p3AbeOeVHQOvipUUrXSFJQXnJJEn5tpQjMcKlwj121hV/Utl fyH1WDH2dW9xVOrbeXouSFIYtToaOB0wqXP3YP3BC1QDDjCwpBUIE4lk4C6HxnKFt7jP rktxQX3d213+cnOKiB7NYYh1+FhsS0dLVRcEHi1vECcchrw3lcSK8FB+r8UsU5Gcx7wf KdbEFPLcW7X6xnYt8ZjscPXxFAlDFYuWp6E2GGHzGMSPHJV15IF6VwMpDnRVM98ln7SQ /KCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:references:in-reply-to:date:subject:cc:to:from :arc-authentication-results; bh=zDajFsHvB3Z7sntkW0Ram6Eb+fKCXwtfc+KR9ibMjbQ=; b=uVMG3hr4Lv/SRCAnTU68RsoSRi8sRiRZN5ai635IBYUKqwJIn9n2LCus2XzJYMLcau VlBjMBQcaGtbVu9gTB+IMDzDICB5SGuyLvK9i4upymxCrY8Bqc7AvYuuS5NIucz73nkO nyjqzALsPmFKBLiIGcxd2s0mVpKprHKmPtWEO+oMztfUITdmx7UIzYIlKWl+d61Raz0m 5tufEgV1R0h75LWpSOPyNI2fnM8ZXgKu8N7JlxnMbFIBDCqpNYqx16VRVdSnmuT8I16/ uKJuio7nktHBlDTimahcLNUVvU4BTScOMWzrBM+oxXXUAFE2++ZRwn/Opd5XwuDhIyyM QGHQ== ARC-Authentication-Results: i=1; mx.google.com; spf=neutral (google.com: 148.163.158.5 is neither permitted nor denied by best guess record for domain of rppt@linux.vnet.ibm.com) smtp.mailfrom=rppt@linux.vnet.ibm.com; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com. [148.163.158.5]) by mx.google.com with ESMTPS id w206-v6si3151581wma.11.2018.06.30.07.55.19 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 30 Jun 2018 07:55:19 -0700 (PDT) Received-SPF: neutral (google.com: 148.163.158.5 is neither permitted nor denied by best guess record for domain of rppt@linux.vnet.ibm.com) client-ip=148.163.158.5; Authentication-Results: mx.google.com; spf=neutral (google.com: 148.163.158.5 is neither permitted nor denied by best guess record for domain of rppt@linux.vnet.ibm.com) smtp.mailfrom=rppt@linux.vnet.ibm.com; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: from pps.filterd (m0098414.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w5UErW3a050163 for ; Sat, 30 Jun 2018 10:55:18 -0400 Received: from e06smtp04.uk.ibm.com (e06smtp04.uk.ibm.com [195.75.94.100]) by mx0b-001b2d01.pphosted.com with ESMTP id 2jx60wj94m-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Sat, 30 Jun 2018 10:55:18 -0400 Received: from localhost by e06smtp04.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Sat, 30 Jun 2018 15:55:16 +0100 Received: from b06cxnps4074.portsmouth.uk.ibm.com (9.149.109.196) by e06smtp04.uk.ibm.com (192.168.101.134) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Sat, 30 Jun 2018 15:55:13 +0100 Received: from d06av21.portsmouth.uk.ibm.com (d06av21.portsmouth.uk.ibm.com [9.149.105.232]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w5UEtCbv30081120 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Sat, 30 Jun 2018 14:55:12 GMT Received: from d06av21.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 1EF645204F; Sat, 30 Jun 2018 15:55:00 +0100 (BST) Received: from rapoport-lnx (unknown [9.148.205.240]) by d06av21.portsmouth.uk.ibm.com (Postfix) with ESMTPS id 80B5E52050; Sat, 30 Jun 2018 15:54:58 +0100 (BST) Received: by rapoport-lnx (sSMTP sendmail emulation); Sat, 30 Jun 2018 17:55:10 +0300 From: Mike Rapoport To: Jonathan Corbet Cc: Randy Dunlap , linux-doc , linux-mm , lkml , Mike Rapoport Subject: [PATCH v2 01/11] mm/bootmem: drop duplicated kernel-doc comments Date: Sat, 30 Jun 2018 17:54:56 +0300 X-Mailer: git-send-email 2.7.4 In-Reply-To: <1530370506-21751-1-git-send-email-rppt@linux.vnet.ibm.com> References: <1530370506-21751-1-git-send-email-rppt@linux.vnet.ibm.com> X-TM-AS-GCONF: 00 x-cbid: 18063014-0016-0000-0000-000001E1E349 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18063014-0017-0000-0000-0000323632AA Message-Id: <1530370506-21751-2-git-send-email-rppt@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2018-06-30_05:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=2 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1806210000 definitions=main-1806300176 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: X-Virus-Scanned: ClamAV using ClamSMTP Parts of the bootmem interfaces are duplicated in nobootmem.c along with the kernel-doc comments. There is no point to keep two copies of the comments, so let's drop the bootmem.c copy. Signed-off-by: Mike Rapoport --- mm/bootmem.c | 102 ----------------------------------------------------------- 1 file changed, 102 deletions(-) diff --git a/mm/bootmem.c b/mm/bootmem.c index 9e19798..42ab0da 100644 --- a/mm/bootmem.c +++ b/mm/bootmem.c @@ -143,15 +143,6 @@ unsigned long __init init_bootmem(unsigned long start, unsigned long pages) return init_bootmem_core(NODE_DATA(0)->bdata, start, 0, pages); } -/* - * free_bootmem_late - free bootmem pages directly to page allocator - * @addr: starting physical address of the range - * @size: size of the range in bytes - * - * This is only useful when the bootmem allocator has already been torn - * down, but we are still initializing the system. Pages are given directly - * to the page allocator, no bootmem metadata is updated because it is gone. - */ void __init free_bootmem_late(unsigned long physaddr, unsigned long size) { unsigned long cursor, end; @@ -264,11 +255,6 @@ void __init reset_all_zones_managed_pages(void) reset_managed_pages_done = 1; } -/** - * free_all_bootmem - release free pages to the buddy allocator - * - * Returns the number of pages actually released. - */ unsigned long __init free_all_bootmem(void) { unsigned long total_pages = 0; @@ -385,16 +371,6 @@ static int __init mark_bootmem(unsigned long start, unsigned long end, BUG(); } -/** - * free_bootmem_node - mark a page range as usable - * @pgdat: node the range resides on - * @physaddr: starting address of the range - * @size: size of the range in bytes - * - * Partial pages will be considered reserved and left as they are. - * - * The range must reside completely on the specified node. - */ void __init free_bootmem_node(pg_data_t *pgdat, unsigned long physaddr, unsigned long size) { @@ -408,15 +384,6 @@ void __init free_bootmem_node(pg_data_t *pgdat, unsigned long physaddr, mark_bootmem_node(pgdat->bdata, start, end, 0, 0); } -/** - * free_bootmem - mark a page range as usable - * @physaddr: starting physical address of the range - * @size: size of the range in bytes - * - * Partial pages will be considered reserved and left as they are. - * - * The range must be contiguous but may span node boundaries. - */ void __init free_bootmem(unsigned long physaddr, unsigned long size) { unsigned long start, end; @@ -646,19 +613,6 @@ static void * __init ___alloc_bootmem_nopanic(unsigned long size, return NULL; } -/** - * __alloc_bootmem_nopanic - allocate boot memory without panicking - * @size: size of the request in bytes - * @align: alignment of the region - * @goal: preferred starting address of the region - * - * The goal is dropped if it can not be satisfied and the allocation will - * fall back to memory below @goal. - * - * Allocation may happen on any node in the system. - * - * Returns NULL on failure. - */ void * __init __alloc_bootmem_nopanic(unsigned long size, unsigned long align, unsigned long goal) { @@ -682,19 +636,6 @@ static void * __init ___alloc_bootmem(unsigned long size, unsigned long align, return NULL; } -/** - * __alloc_bootmem - allocate boot memory - * @size: size of the request in bytes - * @align: alignment of the region - * @goal: preferred starting address of the region - * - * The goal is dropped if it can not be satisfied and the allocation will - * fall back to memory below @goal. - * - * Allocation may happen on any node in the system. - * - * The function panics if the request can not be satisfied. - */ void * __init __alloc_bootmem(unsigned long size, unsigned long align, unsigned long goal) { @@ -754,21 +695,6 @@ void * __init ___alloc_bootmem_node(pg_data_t *pgdat, unsigned long size, return NULL; } -/** - * __alloc_bootmem_node - allocate boot memory from a specific node - * @pgdat: node to allocate from - * @size: size of the request in bytes - * @align: alignment of the region - * @goal: preferred starting address of the region - * - * The goal is dropped if it can not be satisfied and the allocation will - * fall back to memory below @goal. - * - * Allocation may fall back to any node in the system if the specified node - * can not hold the requested memory. - * - * The function panics if the request can not be satisfied. - */ void * __init __alloc_bootmem_node(pg_data_t *pgdat, unsigned long size, unsigned long align, unsigned long goal) { @@ -807,19 +733,6 @@ void * __init __alloc_bootmem_node_high(pg_data_t *pgdat, unsigned long size, } -/** - * __alloc_bootmem_low - allocate low boot memory - * @size: size of the request in bytes - * @align: alignment of the region - * @goal: preferred starting address of the region - * - * The goal is dropped if it can not be satisfied and the allocation will - * fall back to memory below @goal. - * - * Allocation may happen on any node in the system. - * - * The function panics if the request can not be satisfied. - */ void * __init __alloc_bootmem_low(unsigned long size, unsigned long align, unsigned long goal) { @@ -834,21 +747,6 @@ void * __init __alloc_bootmem_low_nopanic(unsigned long size, ARCH_LOW_ADDRESS_LIMIT); } -/** - * __alloc_bootmem_low_node - allocate low boot memory from a specific node - * @pgdat: node to allocate from - * @size: size of the request in bytes - * @align: alignment of the region - * @goal: preferred starting address of the region - * - * The goal is dropped if it can not be satisfied and the allocation will - * fall back to memory below @goal. - * - * Allocation may fall back to any node in the system if the specified node - * can not hold the requested memory. - * - * The function panics if the request can not be satisfied. - */ void * __init __alloc_bootmem_low_node(pg_data_t *pgdat, unsigned long size, unsigned long align, unsigned long goal) {