From patchwork Tue Sep 12 06:08:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 139031 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:a8d:b0:3f2:4152:657d with SMTP id gr13csp11258vqb; Wed, 13 Sep 2023 11:43:28 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF4QtK0Y6tSgIEdOdhNbfauTPR5Hy/SP+oTZvCjrJ4p7hvWkNBzOZeDHJKrUDxMBkcuwmMr X-Received: by 2002:a05:6a00:b87:b0:68b:e710:ee9c with SMTP id g7-20020a056a000b8700b0068be710ee9cmr3959228pfj.19.1694630608466; Wed, 13 Sep 2023 11:43:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694630608; cv=none; d=google.com; s=arc-20160816; b=W4cbha1WzStDEF1UmQdz8XUgCTZb0jMmpugpBYXS1G0KS5fJDt3aTWQtcqXX0vTTuj J/ly68zSlZpPEy+UvFLnAiYh6gUrrxpul7AezYqmMG04T7ous5wjD9MClOw4BIZekYrw GaoTE/HUkV0+0NgDDatu/zuY9DMEfB5rmnLqIYUFVH1aDChgSLr+6BvlqERzkhroUESC KixzWJcYLg8iTLVm15Id+FMku4en0zD6d56LOxMzAJhVWs87tLl+bjvtCxYaHI5FexVr LJ0NIkc5gWCNsAApb8qhCTB+C80QTVTDOPdFsP6rguD3hfGlatzjFSpiVxy7HnTb4SA3 KrJA== 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:dkim-signature; bh=FSlbUZOPuNrJYLUqouC9Nz+xzhAFhpA8fnkS7AspK4M=; fh=mEh7V9GRQlFU0nkBzFYYX6243u1ieEz6dcCVhlfAlNY=; b=oE48JmtYs2yDmThm/DFFTWvMTZGjZi1anpArvQNfgrjDXRV9vvpPI9u2kc1jouaG+n vkQgzczftgfKikdtGy44on5PkcZy+o1zW/FIUWdDh3o8WJYDu5n2ylwVsRUcsIC6g0ri Z8651JIoMUy0AqDT/XnTi1CUIde/DyX+Nmnm8wnTdBuN/3mpoZNhmNefe/1TkUUO95hG Nky9F0JJRMR0h33fZdF3Iipx8UTxaG2MAwUo5h/o9PcgFnoXQtgmUbP86xknLygiXuGO SanWtswDRcc/3aeklprs/O8WXC18cl1NQ1gKUM1JkSLFpI7K7fjHkmfAsfKshsjsqbZT TPBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=KETNeV7r; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id k5-20020a056a00134500b0068fb6fc3ff1si7666339pfu.209.2023.09.13.11.43.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 11:43:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=KETNeV7r; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 827A083AB366; Mon, 11 Sep 2023 23:09:28 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.8 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229869AbjILGJR (ORCPT + 39 others); Tue, 12 Sep 2023 02:09:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229714AbjILGIx (ORCPT ); Tue, 12 Sep 2023 02:08:53 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A117510CE for ; Mon, 11 Sep 2023 23:08:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=FSlbUZOPuNrJYLUqouC9Nz+xzhAFhpA8fnkS7AspK4M=; b=KETNeV7rPghRQmQwHTvVV9A9tl 5P+Dd6Ug/MA+84BSMxqEAP8waTv3iWt7jMQ0U3TMsFJpiT/0b50U90LFZgEROW0acXhj2+pClq2cW C2sv3rb3SC0E0peACD4JD8+APhibdVaDapDS8F7dmeGhoWmYkzy+jJ9fdfnawzqmQwdRRqvy5Ja0z 2EtH9Qq/rYWB0v6eZTuSHHmEQ+5BYNovW/CDcAz8x8Xvc4DqZ15cnZlbv8U6oSZMroGSK1Bk+R3RT LxWWfL/qcQI7Qp5bhkRIXyv6U8jQHp2yf39WzYQdhaue1RLJ3AVb3aiA6ISprZ6uWTf3iEY+yuQ/u GD9sIL1Q==; Received: from [2601:1c2:980:9ec0::9fed] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1qfwZt-002FmO-1S; Tue, 12 Sep 2023 06:08:49 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Andrew Morton Subject: [PATCH] scatterlist: add missing function params to kernel-doc Date: Mon, 11 Sep 2023 23:08:48 -0700 Message-ID: <20230912060848.4673-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 11 Sep 2023 23:09:28 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1776948984969054595 X-GMAIL-MSGID: 1776948984969054595 Describe missing function parameters to prevent kernel-doc warnings: lib/scatterlist.c:288: warning: Function parameter or member 'first_chunk' not described in '__sg_alloc_table' lib/scatterlist.c:800: warning: Function parameter or member 'flags' not described in 'sg_miter_start' Signed-off-by: Randy Dunlap Cc: Andrew Morton --- lib/scatterlist.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff -- a/lib/scatterlist.c b/lib/scatterlist.c --- a/lib/scatterlist.c +++ b/lib/scatterlist.c @@ -265,7 +265,8 @@ EXPORT_SYMBOL(sg_free_table); * @table: The sg table header to use * @nents: Number of entries in sg list * @max_ents: The maximum number of entries the allocator returns per call - * @nents_first_chunk: Number of entries int the (preallocated) first + * @first_chunk: first SGL if preallocated (may be %NULL) + * @nents_first_chunk: Number of entries in the (preallocated) first * scatterlist chunk, 0 means no such preallocated chunk provided by user * @gfp_mask: GFP allocation mask * @alloc_fn: Allocator to use @@ -788,6 +789,7 @@ EXPORT_SYMBOL(__sg_page_iter_dma_next); * @miter: sg mapping iter to be started * @sgl: sg list to iterate over * @nents: number of sg entries + * @flags: sg iterator flags * * Description: * Starts mapping iterator @miter.