From nobody Thu May 2 07:31:48 2024 Delivered-To: importer2@patchew.org Received-SPF: pass (zohomail.com: domain of vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; envelope-from=linux-kernel-owner@vger.kernel.org; helo=vger.kernel.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass(p=none dis=none) header.from=kernel.org ARC-Seal: i=1; a=rsa-sha256; t=1617628853; cv=none; d=zohomail.com; s=zohoarc; b=AmXyutDnCTlbO3zqFSwxhz2U/BrMSo3frsZjbd+3k/tn9jCz9G7+z7aTvmlfCH0lkBQZj8Lz3uSrlqn7JcYGsSri6xowPcrrme9hEkEnC8ow4Bzl0X6bh2WJ41ARMLa1RaTZkcMN1dffFTbNG6iNDAta1qeX2F23LLV9VX4fA/Y= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1617628853; h=Content-Transfer-Encoding:Cc:Date:From:List-Id:MIME-Version:Message-ID:Subject:To; bh=kVe3t9f1JlEFQIP2DeDPsYHZkKFmb7diAiwdmKLZwNg=; b=Ibikj2u8yT9NpnjMoy/0wRVwfgCLR5I3Lmp20T1q+xTp0kFdgQKaECbE5mUEbBB19BKVVOqzyRrQQGkLX00wKgKUgNFwC6j38MTMZvg3UlwGwmGq1WFqhqfg6wXQ2iOUeggku4SwGz8CcbjvtDRSs0+essB5Gqpg71RlyQjrgJ8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mx.zohomail.com with SMTP id 1617628853406235.3208922064806; Mon, 5 Apr 2021 06:20:53 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237402AbhDENU5 (ORCPT ); Mon, 5 Apr 2021 09:20:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:49464 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232694AbhDENU4 (ORCPT ); Mon, 5 Apr 2021 09:20:56 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 81D22613AE; Mon, 5 Apr 2021 13:20:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1617628850; bh=C4x+vM6T4MdxX8ujtga+Wyn57/xXCsWxfixHKNLC6hU=; h=From:To:Cc:Subject:Date:From; b=ajQYNn1NdIdIa676MVc/3jwJpXm4uIRGBvYX8BQQGFdBNb+9Ri3X1TpZl9blWs6k/ JgtXO8B3u6NYp8Q7opM8u3MFGpoBDDDCP0/iCge5XMlDQw9K+IiMZ6qlk7Iu67bjVx fY8E5/eYhuClF4yxiCemH31mMbHUaYxL6FV5Z2VdhDX0dtaNyY5WJea4fuUIXfmJjB 8fNnhzGThIFAktZXriCX/W5MSf0T6LORLMjZQTMmN7J0uucQEn6DwbmVGh4qfTHX5O X5xj1fZ8X6drwQw6YbyY+0Xph6jfOlpa7HAxXhzeiTL3tcUme22biedKk+ePCHqPFb tW5Jmm2J/tHWg== From: alexs@kernel.org Cc: Alex Shi , Alexey Skidanov , Andrew Morton , Huang Shijie , Bhaskar Chowdhury , Stephen Rothwell , linux-kernel@vger.kernel.org Subject: [RFC PATCH] lib/genalloc: add parameter description to fix doc compile warning Date: Mon, 5 Apr 2021 21:20:21 +0800 Message-Id: <20210405132021.131231-1-alexs@kernel.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" From: Alex Shi commit 52fbf1134d47 ("lib/genalloc.c: fix allocation of aligned buffer from non-aligned chunk") add a new parameter 'start_addr' w/o description for it. That cause some doc compile warning: lib/genalloc.c:649: warning: Function parameter or member 'start_addr' not = described in 'gen_pool_first_fit' lib/genalloc.c:667: warning: Function parameter or member 'start_addr' not = described in 'gen_pool_first_fit_align' lib/genalloc.c:694: warning: Function parameter or member 'start_addr' not = described in 'gen_pool_fixed_alloc' lib/genalloc.c:729: warning: Function parameter or member 'start_addr' not = described in 'gen_pool_first_fit_order_align' lib/genalloc.c:752: warning: Function parameter or member 'start_addr' not = described in 'gen_pool_best_fit' This patch fix this by adding parameter descriptions. Signed-off-by: Alex Shi Cc: Alexey Skidanov Cc: Andrew Morton =20 Cc: Huang Shijie =20 Cc: Alex Shi =20 Cc: Bhaskar Chowdhury =20 Cc: Stephen Rothwell =20 Cc: linux-kernel@vger.kernel.org=20 --- lib/genalloc.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/genalloc.c b/lib/genalloc.c index 8273760884a7..9a57257988c7 100644 --- a/lib/genalloc.c +++ b/lib/genalloc.c @@ -642,6 +642,7 @@ EXPORT_SYMBOL(gen_pool_set_algo); * @nr: The number of zeroed bits we're looking for * @data: additional data - unused * @pool: pool to find the fit region memory from + * @start_addr: not used in this function */ unsigned long gen_pool_first_fit(unsigned long *map, unsigned long size, unsigned long start, unsigned int nr, void *data, @@ -660,6 +661,7 @@ EXPORT_SYMBOL(gen_pool_first_fit); * @nr: The number of zeroed bits we're looking for * @data: data for alignment * @pool: pool to get order from + * @start_addr: start addr of alloction chunk */ unsigned long gen_pool_first_fit_align(unsigned long *map, unsigned long s= ize, unsigned long start, unsigned int nr, void *data, @@ -687,6 +689,7 @@ EXPORT_SYMBOL(gen_pool_first_fit_align); * @nr: The number of zeroed bits we're looking for * @data: data for alignment * @pool: pool to get order from + * @start_addr: not used in this function */ unsigned long gen_pool_fixed_alloc(unsigned long *map, unsigned long size, unsigned long start, unsigned int nr, void *data, @@ -721,6 +724,7 @@ EXPORT_SYMBOL(gen_pool_fixed_alloc); * @nr: The number of zeroed bits we're looking for * @data: additional data - unused * @pool: pool to find the fit region memory from + * @start_addr: not used in this function */ unsigned long gen_pool_first_fit_order_align(unsigned long *map, unsigned long size, unsigned long start, @@ -742,6 +746,7 @@ EXPORT_SYMBOL(gen_pool_first_fit_order_align); * @nr: The number of zeroed bits we're looking for * @data: additional data - unused * @pool: pool to find the fit region memory from + * @start_addr: not used in this function * * Iterate over the bitmap to find the smallest free region * which we can allocate the memory. --=20 2.25.1