From patchwork Fri Dec 22 06:19:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 182552 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2483:b0:fb:cd0c:d3e with SMTP id q3csp876052dyi; Thu, 21 Dec 2023 22:19:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IELZFVfvlRpgn7dcXQFbScobwzzsajAg138Oj0VLGEOG2iPI7X85avb6Um6gHrhdiERvbSy X-Received: by 2002:a17:902:db10:b0:1d4:1044:87cc with SMTP id m16-20020a170902db1000b001d4104487ccmr921949plx.107.1703225996259; Thu, 21 Dec 2023 22:19:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703225996; cv=none; d=google.com; s=arc-20160816; b=q2wJutSBAgsa489mjOpmKueddh1g4C1A/z1AMPZoNPW8Fa7RUSXh3WDGiEhxuivhwu GwsBBeo9onU0DF9Tf95SL97RV09Oo9Msfl4132BHv4Z/4vJiAfVjhhx7iJ7JauxuQS/6 wCEqxe5AQJz0cZv0f+KuTEdA+KT9QPFtI5e+saO9gjxb8wKKenohd1xKPvTZDpqUmkMQ wcxCfpNaAM4YLEoA1Al1XcolBE0dWC1fSh+67n18tD1qZyF6G7ZiJamjhQUfRRfdg06f zTMxECdBEqPkO7fTP1Zfg0YJjBP/Emytd1oNjvbJn/DAMpLuqArD9nA0LoREUTtYldG5 /Jhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=yU3iHmVkyNenY3Ygs6B97t6TKU1FGwCrzyLjAadn8qA=; fh=nU29SNC0i1VCG2PblInpb6Cgor9aabLP8hyo6OK7wxk=; b=lnGTuP0u9TlHJjnX/WFz6TiGXgH1n9V3fk+kcqeU7wqBtzrBOcjRmpbvqrz/PIfx0J tuxO+H8ETi6wAyFc2BKNIDu4IRImq1sl3wX8deOOkZfDn38NJHGT4yAc65Qb8mSDzZtI oiCPCc5EZyq1NTl3H2KqBwfITmMZsppwPakfTDJlJiqH5+ISEOzt8Qy47Cd87W4VscT2 F0bQK/4zAda8cYfNJKE5tWbe2kyku7/zQ9Fb/XBQ7hbQZVQoFIRLQorFXrf+QS17pESX b1dFhB6q9Ebkgv9tsAlLSvwjMg6S+HoPco2UKSfuzA5Uk2kGton6wbhvxcUBzJaib8wC 4Dxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="Y9Fq2YF/"; spf=pass (google.com: domain of linux-kernel+bounces-9396-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9396-ouuuleilei=gmail.com@vger.kernel.org" Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id h1-20020a170902748100b001d35645b661si2732884pll.250.2023.12.21.22.19.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 22:19:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-9396-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="Y9Fq2YF/"; spf=pass (google.com: domain of linux-kernel+bounces-9396-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9396-ouuuleilei=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 0C20A284E1B for ; Fri, 22 Dec 2023 06:19:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 360F4D301; Fri, 22 Dec 2023 06:19:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="Y9Fq2YF/" X-Original-To: linux-kernel@vger.kernel.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 70861C15D; Fri, 22 Dec 2023 06:19:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org 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=yU3iHmVkyNenY3Ygs6B97t6TKU1FGwCrzyLjAadn8qA=; b=Y9Fq2YF/D5TZGOGA4x9PVLHTu7 t8KdUpe12ElY31I1fw1BNII8tZVdpsQUhtwLGiRqZ/R6P0Mqs9RHTPUAQVuwJiSt/CjYpPXOEO6e9 6ngM04iYYVuImVC/wX0lsRYwUCymISnodJXj+GkL24n2DHNHSnMCwftLhrShyPA5WE9/7MjTGXpsG W2Yh5Xnkh1M+ByTUnbxymRz117uCptlnTkhVnw+XNczQpPQ+uYpZC0agq+9TWhW+LLRJjHG60eHqY DRmUHeHwsOffY88awAAqZ1KfOJ833401IzE/a3whouiCfmqoQuoe8YijoT6FxgKUjns160i1+sRs/ VztGSgtQ==; Received: from [50.53.46.231] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1rGYsV-0053eM-38; Fri, 22 Dec 2023 06:19:24 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Ard Biesheuvel , linux-efi@vger.kernel.org Subject: [PATCH] efi: memmap: fix kernel-doc warnings Date: Thu, 21 Dec 2023 22:19:23 -0800 Message-ID: <20231222061923.10170-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785961902232675503 X-GMAIL-MSGID: 1785961902232675503 Correct all kernel-doc notation to repair warnings that are reported by scripts/kernel-doc: memmap.c:38: warning: No description found for return value of '__efi_memmap_init' memmap.c:82: warning: No description found for return value of 'efi_memmap_init_early' memmap.c:132: warning: Function parameter or member 'addr' not described in 'efi_memmap_init_late' memmap.c:132: warning: Excess function parameter 'phys_addr' description in 'efi_memmap_init_late' memmap.c:132: warning: No description found for return value of 'efi_memmap_init_late' Signed-off-by: Randy Dunlap Cc: Ard Biesheuvel Cc: linux-efi@vger.kernel.org --- drivers/firmware/efi/memmap.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff -- a/drivers/firmware/efi/memmap.c b/drivers/firmware/efi/memmap.c --- a/drivers/firmware/efi/memmap.c +++ b/drivers/firmware/efi/memmap.c @@ -32,7 +32,7 @@ * space isn't setup. Once the kernel is fully booted we can fallback * to the more robust memremap*() API. * - * Returns zero on success, a negative error code on failure. + * Returns: zero on success, a negative error code on failure. */ int __init __efi_memmap_init(struct efi_memory_map_data *data) { @@ -77,6 +77,8 @@ int __init __efi_memmap_init(struct efi_ * * Use early_memremap() to map the passed in EFI memory map and assign * it to efi.memmap. + * + * Returns: zero on success, a negative error code on failure. */ int __init efi_memmap_init_early(struct efi_memory_map_data *data) { @@ -107,7 +109,7 @@ void __init efi_memmap_unmap(void) /** * efi_memmap_init_late - Map efi.memmap with memremap() - * @phys_addr: Physical address of the new EFI memory map + * @addr: Physical address of the new EFI memory map * @size: Size in bytes of the new EFI memory map * * Setup a mapping of the EFI memory map using ioremap_cache(). This @@ -126,7 +128,7 @@ void __init efi_memmap_unmap(void) * runtime so that things like efi_mem_desc_lookup() and * efi_mem_attributes() always work. * - * Returns zero on success, a negative error code on failure. + * Returns: zero on success, a negative error code on failure. */ int __init efi_memmap_init_late(phys_addr_t addr, unsigned long size) {