Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp1264494pxb; Thu, 14 Apr 2022 02:04:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyER2+6hJ3orp+PENU2H4fyR2c06xX+LAkPk+ZJzMAbfOFd904fDRJQqOjTKkFwPnk04R+I X-Received: by 2002:a17:90b:4f4e:b0:1cd:49fa:911d with SMTP id pj14-20020a17090b4f4e00b001cd49fa911dmr2619690pjb.26.1649927088274; Thu, 14 Apr 2022 02:04:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649927088; cv=none; d=google.com; s=arc-20160816; b=oNDo9M3Eov6iPmEpuuu78M5OVJn56zTlk7S2QEUl0yskEgQhKqIAkDQ6BzvLwyg8ZU p7jUi6EHp1DQtxHNloutUUvQujVyY+UmCBlmR3xs0ZWXB51I3dv/9tKoxag/S/7iQH6h l7eieatZ4YOEs+WYaRwM15E9NJPbQ2Zb/YKnMzlHbYdWQ83Tdw+GlAALoumIY/vEkeKf Q2v7MFu7+Ax3JBBlDHQC6gU3aUewToonviE5vmF90Ix5b4BguqYfvUFXFIJWZZb+NrS9 QfsoDeCzRU4iwV+HtuCDYk1vuOibHpQbfvMSu1I0nn13b2+Ia16vVLXaFS/zfCnx0VNo 40fQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=bgKi5d12e4FAl/0V1LdompotqB5pfVogXOB1g3Gr0Ac=; b=fXolF6xosjZpQmI6K+KaoGrbTNA6voYygyvAirAMqZHRyR+3u6WZN8hT1xtCaX5YQq Fzj5Vv8dO1lNjFrMX4nNUh4qgoqrsxzznfF066J7OScVN0ui3WZ3mFnsh0otliAo0Y8q s+TozCQbzbNFvxQfTWlXUIsjta6rW2iepQJl681T3L6Fg0v8dv5ZwPWW2ML/c9SFjyJC UY7ynA41fE6wlaRsaQIXnTuKFGL1IzK1aaW8ALlLHaC3MVqO8Rfdsh5eOlh0pj+xFwok 5rYjkZDRnLVqdndIVViC0AxynMk7rhoo4zNm4z4uQcTCAlBhDyyUg+6h93JcOPjSOTPv BAJQ== 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i5-20020a170902eb4500b0015872db9713si9451637pli.131.2022.04.14.02.04.36; Thu, 14 Apr 2022 02:04:48 -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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236267AbiDMOtB (ORCPT + 99 others); Wed, 13 Apr 2022 10:49:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39212 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236235AbiDMOsy (ORCPT ); Wed, 13 Apr 2022 10:48:54 -0400 Received: from mail-yb1-f179.google.com (mail-yb1-f179.google.com [209.85.219.179]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 53FB063BE7; Wed, 13 Apr 2022 07:46:32 -0700 (PDT) Received: by mail-yb1-f179.google.com with SMTP id p65so4133200ybp.9; Wed, 13 Apr 2022 07:46:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=bgKi5d12e4FAl/0V1LdompotqB5pfVogXOB1g3Gr0Ac=; b=UaH1hLc0mPWksMzgVsudp0JU/lWU81GM7bQp42HEl7RzGPWKQDEqh8xUT3pw3j7JrH +x6uBP7WxLBRKcQdQP4lHyk12AdS7L4bZMZslJQAO1P+TbNkJg/meMGneoXstY69Lw8s ShxXHOb4FY+njqb6dBFAq8JS7LiJAaiEBJRmQchtqZeigZYnwrb7MkLs6dgVuT5iClDp 7gHTGmgOejR3jz87dUyPYizgvAw065H6rwlUy8Z9fnaOX53ekMtXD4cA9CgvLtFms7PN 0IKfaPO/V85Mg+5G5PfpOut6c+uT+Iyh2vBQz5zyBsy3H06H0RcVwfm6r0c3pnOvKGUL 2UyQ== X-Gm-Message-State: AOAM531gM4XvNRLSrvUvIWUi1oM7xNT+IE6M4YlhF26ncrMJTzB57juP BzvQ5g2eaJmHNr+0xkip+MvBWBCSA+U7ymfY+dw= X-Received: by 2002:a05:6902:1544:b0:63d:d3a7:8cc4 with SMTP id r4-20020a056902154400b0063dd3a78cc4mr31293846ybu.622.1649861191424; Wed, 13 Apr 2022 07:46:31 -0700 (PDT) MIME-Version: 1.0 References: <20220325014415.110740-1-yang.lee@linux.alibaba.com> In-Reply-To: <20220325014415.110740-1-yang.lee@linux.alibaba.com> From: "Rafael J. Wysocki" Date: Wed, 13 Apr 2022 16:46:20 +0200 Message-ID: Subject: Re: [PATCH -next] kernel/power: Fix some kernel-doc comments To: Yang Li Cc: "Rafael J. Wysocki" , Pavel Machek , Len Brown , Linux PM , Linux Kernel Mailing List , Abaci Robot Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no 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 On Fri, Mar 25, 2022 at 2:44 AM Yang Li wrote: > > 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) > { > -- Applied as 5.19 with edits in the subject and some comment adjustments to avoid line breaks in kerne-doc. Thanks!