Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1925794pxb; Fri, 25 Mar 2022 08:05:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwQKObvSduSWidHA7VfzGYY0I9xtb3TQ2Zwa7JSSgnI2dcjvde8mJ8bfgrOIAa+cZi0JTlh X-Received: by 2002:a05:622a:120a:b0:2e1:e23e:6199 with SMTP id y10-20020a05622a120a00b002e1e23e6199mr9737225qtx.195.1648220711199; Fri, 25 Mar 2022 08:05:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648220711; cv=none; d=google.com; s=arc-20160816; b=ejVBZAMzIhhNX1U48efVv/XNzFrL2PMlOiuF8m82J1tzQqAG79KQbxZBzMDvT3DUih tZmPowy+lt/Cyp7DfBYqYGLYljOYhYKOwlxPLGRm/eezV1CkR65MI0VdJkPssPVSruEN zVnELT07UZ3r2DLS4EIi3OnL8kLdu7WmDckvIpgM8mCYNKQBHccLddeDcwy5p0bigela sR/capBhw9/f3eerObwb6h78fXbm3H5eJyh9m5AHr1xBcLshvVGGAZS4LZw3t2jOMaX/ XMCbqxWreqFVeFHCTS3qJ7Ho4DBkcyF6p+BkrZ36p5yUFS+MlFifwzDEHz2MIP/yUhKI /Msg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=nVieXV9UtqAA8SF7U/Z/kF6DaydW4pvR/f2MjLez9iI=; b=c2mInpl581zpgAkRsAvaym7/qE1CMnWWmGvGZhXlQR/io5TWPvpG2Cm5wKkf1stFiL arrdI1Ux6r1/XMWf9EssIIQHwAsWxL6llSj6NS1csXWRraqHmpQhuzoK1ahZ/+jCbfT6 q38K+IypcnHpHKnUsdCFp6Dj/kXYFVgeuOFPZy8CwU9bK+COJuwCa7jXNwql/L8sOTlf 1xJpnOJxMDVXO5bPw7cQRTt5o5ttoshh57uRHcJW8CQ3zVM4vDhyVwkaU0VG4gebiNBx /NYbFVJZcsAz4GzkXb+peokK5Jrw2Ei4pj6Zyoy/SRfO/a7f7wGebj57L4DflbvbvgUD eUYw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ay17-20020a056214049100b00440e46a7d04si1358509qvb.418.2022.03.25.08.04.54; Fri, 25 Mar 2022 08:05:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1357609AbiCYBrf (ORCPT + 99 others); Thu, 24 Mar 2022 21:47:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40258 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1357619AbiCYBr0 (ORCPT ); Thu, 24 Mar 2022 21:47:26 -0400 Received: from out30-132.freemail.mail.aliyun.com (out30-132.freemail.mail.aliyun.com [115.124.30.132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 97D609A991; Thu, 24 Mar 2022 18:44:20 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R111e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04400;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=7;SR=0;TI=SMTPD_---0V87ClCa_1648172657; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0V87ClCa_1648172657) by smtp.aliyun-inc.com(127.0.0.1); Fri, 25 Mar 2022 09:44:18 +0800 From: Yang Li To: rafael@kernel.org Cc: pavel@ucw.cz, len.brown@intel.com, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Yang Li , Abaci Robot Subject: [PATCH -next] kernel/power: Fix some kernel-doc comments Date: Fri, 25 Mar 2022 09:44:15 +0800 Message-Id: <20220325014415.110740-1-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add parameter description in alloc_rtree_node() kernel-doc comment and fix several inconsistent function name descriptions. Remove some warnings found by running scripts/kernel-doc, which is caused by using 'make W=1'. kernel/power/snapshot.c:438: warning: Function parameter or member 'gfp_mask' not described in 'alloc_rtree_node' kernel/power/snapshot.c:438: warning: Function parameter or member 'safe_needed' not described in 'alloc_rtree_node' kernel/power/snapshot.c:438: warning: Function parameter or member 'ca' not described in 'alloc_rtree_node' kernel/power/snapshot.c:438: warning: Function parameter or member 'list' not described in 'alloc_rtree_node' kernel/power/snapshot.c:916: warning: expecting prototype for memory_bm_rtree_next_pfn(). Prototype was for memory_bm_next_pfn() instead kernel/power/snapshot.c:1947: warning: expecting prototype for alloc_highmem_image_pages(). Prototype was for alloc_highmem_pages() instead kernel/power/snapshot.c:2230: warning: expecting prototype for load header(). Prototype was for load_header() instead Reported-by: Abaci Robot Signed-off-by: Yang Li --- kernel/power/snapshot.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/kernel/power/snapshot.c b/kernel/power/snapshot.c index 330d49937692..89c8f9df9fdc 100644 --- a/kernel/power/snapshot.c +++ b/kernel/power/snapshot.c @@ -427,6 +427,12 @@ struct memory_bitmap { /** * alloc_rtree_node - Allocate a new node and add it to the radix tree. + * @gfp_mask: GFP mask for the allocation. + * @safe_needed: Get pages that were not used before hibernation + * (restore only) + * @ca: used for allocating small objects out of a linked list of pages + * called 'the chain'. + * @list: the inner node or leave of Radix Tree to add. * * This function is used to allocate inner nodes as well as the * leave nodes of the radix tree. It also adds the node to the @@ -902,7 +908,7 @@ static bool rtree_next_node(struct memory_bitmap *bm) } /** - * memory_bm_rtree_next_pfn - Find the next set bit in a memory bitmap. + * memory_bm_next_pfn - Find the next set bit in a memory bitmap. * @bm: Memory bitmap. * * Starting from the last returned position this function searches for the next @@ -1937,7 +1943,7 @@ static inline int get_highmem_buffer(int safe_needed) } /** - * alloc_highmem_image_pages - Allocate some highmem pages for the image. + * alloc_highmem_pages - Allocate some highmem pages for the image. * * Try to allocate as many pages as needed, but if the number of free highmem * pages is less than that, allocate them all. @@ -2224,7 +2230,7 @@ static int check_header(struct swsusp_info *info) } /** - * load header - Check the image header and copy the data from it. + * load_header - Check the image header and copy the data from it. */ static int load_header(struct swsusp_info *info) { -- 2.20.1.7.g153144c