Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4157458imm; Mon, 18 Jun 2018 10:03:05 -0700 (PDT) X-Google-Smtp-Source: ADUXVKK1H1+GukO0UStBBXZNTdXHnMnLhbMI4uqq6zzCRuk/bTkUBW/Parhb1cCFaYMMDuo9pLxZ X-Received: by 2002:a63:6807:: with SMTP id d7-v6mr11424892pgc.7.1529341385459; Mon, 18 Jun 2018 10:03:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529341385; cv=none; d=google.com; s=arc-20160816; b=AbbLTq4VgJ+reaUl5gQkFW4Vk5jLpfyk3b+vJj1N4OAZORylWBXUP3OTSqHow5ATsf v0G0zCdgUsVy/8ENKDec6du/JDcc3PdfRKi/mUbVAtgMTmeJDseudhhlGYSYeQ6onLM7 XodNn8iBskXqDz9sQ8ZJDJSkGcGrOi59i980d0W2U8GXE+7WF4x2EVgaCj88v99vydZM rtCuPt+H5C8DKNUzV/r2348NN/00SHEu+frvEW6rQM77k/5sDmy7WtUFojo+EGivBg1S G0/g0e7HOtUjJNj0VG1OJEFhttE2EDo6QopHFL2ePE4RYKl4FLRd5VtALMxyph4ryJpZ idJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:references:in-reply-to:date :subject:cc:to:from:arc-authentication-results; bh=CKshpfWbYOY7IIbnJJGGt3y6jUL/2Og6CkyGnCY//pw=; b=lDpXgUEpCPSyDR1mC5F/XlNiMfJGN04hi7Yb7RYEo3KSCOjKiZoUNtrgg44nwVA5CC yHqu3lJoYEjR5CVjXjtERokRwvbT+GHSgbUAQRJUZ97pMZy6j4Egks484a87P4cd3bDI G50IZbynVsacy1yu5CKUUMnMt7wvWzs+W6xCkTxOgBLvHFevsA3inOjGt2gD68ItH9XR nB2bejZFhyXJF2e7r9vg6/YGm459KWiFZAjiTSjkYU5AO/poKldfOLOXMuJZWSf5OSdt BaxC5ivz7CJVE1YWYHsoIqRaxgjWYLqpRwnpAOFyhioCW7xB2A6Uu78izQT3WIub4+aO VgKw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i6-v6si12931062pgt.470.2018.06.18.10.02.50; Mon, 18 Jun 2018 10:03:05 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935396AbeFRRAY (ORCPT + 99 others); Mon, 18 Jun 2018 13:00:24 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:35217 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932762AbeFRRAR (ORCPT ); Mon, 18 Jun 2018 13:00:17 -0400 Received: from pps.filterd (m0098393.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w5IGwuhV131449 for ; Mon, 18 Jun 2018 13:00:16 -0400 Received: from e06smtp01.uk.ibm.com (e06smtp01.uk.ibm.com [195.75.94.97]) by mx0a-001b2d01.pphosted.com with ESMTP id 2jpfkkb3fx-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 18 Jun 2018 13:00:15 -0400 Received: from localhost by e06smtp01.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 18 Jun 2018 18:00:13 +0100 Received: from b06cxnps3074.portsmouth.uk.ibm.com (9.149.109.194) by e06smtp01.uk.ibm.com (192.168.101.131) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Mon, 18 Jun 2018 18:00:10 +0100 Received: from d06av21.portsmouth.uk.ibm.com (d06av21.portsmouth.uk.ibm.com [9.149.105.232]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w5IH09E831260904 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 18 Jun 2018 17:00:09 GMT Received: from d06av21.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 8789A5204D; Mon, 18 Jun 2018 16:49:29 +0100 (BST) Received: from rapoport-lnx (unknown [9.148.8.74]) by d06av21.portsmouth.uk.ibm.com (Postfix) with ESMTPS id 1412052041; Mon, 18 Jun 2018 16:49:28 +0100 (BST) Received: by rapoport-lnx (sSMTP sendmail emulation); Mon, 18 Jun 2018 20:00:07 +0300 From: Mike Rapoport To: Jonathan Corbet Cc: Andrew Morton , linux-doc , linux-mm , lkml , Mike Rapoport Subject: [PATCH 03/11] docs/mm: bootmem: fix kernel-doc warnings Date: Mon, 18 Jun 2018 19:59:51 +0300 X-Mailer: git-send-email 2.7.4 In-Reply-To: <1529341199-17682-1-git-send-email-rppt@linux.vnet.ibm.com> References: <1529341199-17682-1-git-send-email-rppt@linux.vnet.ibm.com> X-TM-AS-GCONF: 00 x-cbid: 18061817-4275-0000-0000-0000028F1EDD X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18061817-4276-0000-0000-000037965E4E Message-Id: <1529341199-17682-4-git-send-email-rppt@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-06-18_07:,, 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=946 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1805220000 definitions=main-1806180197 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add descriptions of the return value where they were missing and fixup the syntax for present ones. Signed-off-by: Mike Rapoport --- mm/bootmem.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/mm/bootmem.c b/mm/bootmem.c index 42ab0da..76fc17e 100644 --- a/mm/bootmem.c +++ b/mm/bootmem.c @@ -62,6 +62,8 @@ static unsigned long __init bootmap_bytes(unsigned long pages) /** * bootmem_bootmap_pages - calculate bitmap size in pages * @pages: number of pages the bitmap has to represent + * + * Return: the number of pages needed to hold the bitmap. */ unsigned long __init bootmem_bootmap_pages(unsigned long pages) { @@ -121,7 +123,7 @@ static unsigned long __init init_bootmem_core(bootmem_data_t *bdata, * @startpfn: first pfn on the node * @endpfn: first pfn after the node * - * Returns the number of bytes needed to hold the bitmap for this node. + * Return: the number of bytes needed to hold the bitmap for this node. */ unsigned long __init init_bootmem_node(pg_data_t *pgdat, unsigned long freepfn, unsigned long startpfn, unsigned long endpfn) @@ -134,7 +136,7 @@ unsigned long __init init_bootmem_node(pg_data_t *pgdat, unsigned long freepfn, * @start: pfn where the bitmap is to be placed * @pages: number of available physical pages * - * Returns the number of bytes needed to hold the bitmap. + * Return: the number of bytes needed to hold the bitmap. */ unsigned long __init init_bootmem(unsigned long start, unsigned long pages) { @@ -406,6 +408,8 @@ void __init free_bootmem(unsigned long physaddr, unsigned long size) * Partial pages will be reserved. * * The range must reside completely on the specified node. + * + * Return: 0 on success, -errno on failure. */ int __init reserve_bootmem_node(pg_data_t *pgdat, unsigned long physaddr, unsigned long size, int flags) @@ -427,6 +431,8 @@ int __init reserve_bootmem_node(pg_data_t *pgdat, unsigned long physaddr, * Partial pages will be reserved. * * The range must be contiguous but may span node boundaries. + * + * Return: 0 on success, -errno on failure. */ int __init reserve_bootmem(unsigned long addr, unsigned long size, int flags) -- 2.7.4