Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.5 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C13BFC433DB for ; Mon, 22 Mar 2021 17:11:45 +0000 (UTC) Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 610D36199F for ; Mon, 22 Mar 2021 17:11:45 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 610D36199F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linux-kernel-mentees-bounces@lists.linuxfoundation.org Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 26E8583134; Mon, 22 Mar 2021 17:11:45 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KrMF_NqlA3cI; Mon, 22 Mar 2021 17:11:44 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp1.osuosl.org (Postfix) with ESMTP id 18662830AB; Mon, 22 Mar 2021 17:11:44 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id E9E33C000B; Mon, 22 Mar 2021 17:11:43 +0000 (UTC) Received: from smtp2.osuosl.org (smtp2.osuosl.org [IPv6:2605:bc80:3010::133]) by lists.linuxfoundation.org (Postfix) with ESMTP id 04D5EC0001 for ; Mon, 22 Mar 2021 17:11:43 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id D917340180 for ; Mon, 22 Mar 2021 17:11:42 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp2.osuosl.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VaS-s0oFQbUL for ; Mon, 22 Mar 2021 17:11:42 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by smtp2.osuosl.org (Postfix) with ESMTPS id 1A08E40166 for ; Mon, 22 Mar 2021 17:11:41 +0000 (UTC) Received: by mail-pj1-x102d.google.com with SMTP id f2-20020a17090a4a82b02900c67bf8dc69so10927100pjh.1 for ; Mon, 22 Mar 2021 10:11:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=o+rQOUxD6ns2rafwTLx1FeOmKC6/rz2dWQIZ1qXVO2g=; b=P06Qb3YQCSLVPYX6Nr5a46z3wuOI8LCkOcQXeBERoJ6Mupnb05RgMv+tJ9/trhYFlH uX0bH0l57lVR8x4iAW1t3Hg6gTYrNQQgdICjO7qCGHpCOTA2mrwIqgOnS7sbrnNva/2M 1OzXombe//QOnzqOp6QB9NWh8HucwiR52vwgJQix/Gk+0oBmZOVv8zvucEI9RgDrzqWT FC3rgaRp9/iXUTcFVnvz4/ijPrdTcV4jrXDrqlZMcTzqbfT+rEqp+wKMdSnThVONb62f fJValpxedDDzMwPmngI/AVUSVoo5HcU0HW14EVbpu6+5gjOyRs3t1QGob7yYbgo9Ke93 zzWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=o+rQOUxD6ns2rafwTLx1FeOmKC6/rz2dWQIZ1qXVO2g=; b=EtCmDjKEq9ks9IYgqcRp2KuPca6AcpnUNpkbNzwYDJ2//OF5CnRsgEfiHiOa3sa/8h sXtBsDVMyy59hc+zjBxecbj/CkaMu1HRfxtWbudCHjH+equKsiJAWZTxKGztjC//xr03 iCsuwB8gBp71qjajVfQ34eUs6lxd3hfINklqVYjgzGtjggSWujpipXk4yVWH9Yvatcid HVYs6f/wbx0RUNOibI6dgllWKMZkD3gQrorFK9/rPdbBjF92Sp2cAgyThgcm2K+XBSb8 6We0hPQfiYAUNRB4Z1onjUCQYOJYg0XMLSaDQGCZeVIqlUJ95HofXYW5QNhIfoyms0uS 6spQ== X-Gm-Message-State: AOAM5331s6dwi5s56VyO5/FGSfREcCmAsmg4GI0l6Qy7TMrCntBQY8F1 dW84VrhdFhMKfcg8Ei/WLT0= X-Google-Smtp-Source: ABdhPJwocaqQy8EUvKQL4IXXZB9gIfgFzHdd7Y4RpAjwBP01S/HxhrKYC5l3MR+j0HnKsNspxhd1FQ== X-Received: by 2002:a17:90a:a481:: with SMTP id z1mr55015pjp.161.1616433101337; Mon, 22 Mar 2021 10:11:41 -0700 (PDT) Received: from localhost.localdomain ([2405:201:600d:a089:2d32:3b1b:5d5:13d8]) by smtp.googlemail.com with ESMTPSA id x7sm14599013pfp.23.2021.03.22.10.11.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Mar 2021 10:11:40 -0700 (PDT) From: Aditya Srivastava To: anton@tuxera.com Subject: [PATCH v2] ntfs: fix incorrect kernel-doc comment syntax in files Date: Mon, 22 Mar 2021 22:41:31 +0530 Message-Id: <20210322171131.14347-1-yashsri421@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: Cc: rdunlap@infradead.org, corbet@lwn.net, linux-ntfs-dev@lists.sourceforge.net, yashsri421@gmail.com, linux-kernel@vger.kernel.org, linux-kernel-mentees@lists.linuxfoundation.org X-BeenThere: linux-kernel-mentees@lists.linuxfoundation.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-kernel-mentees-bounces@lists.linuxfoundation.org Sender: "Linux-kernel-mentees" The opening comment mark '/**' is used for highlighting the beginning of kernel-doc comments. There are certain files in fs/ntfs which follow this syntax, but the content inside does not comply with kernel-doc. Such lines were probably not meant for kernel-doc parsing, but are parsed due to the presence of kernel-doc like comment syntax(i.e, '/**'), which causes unexpected warnings from kernel-doc. E.g., presence of kernel-doc like comment in the header for fs/ntfs/attrib.c, causes these unexpected warnings by kernel-doc: "warning: Incorrect use of kernel-doc format: * ntfs_map_runlist_nolock - map (a part of) a runlist of an ntfs inode" "warning: Function parameter or member 'ni' not described in 'ntfs_map_runlist_nolock'" "warning: Function parameter or member 'vcn' not described in 'ntfs_map_runlist_nolock'" "warning: Function parameter or member 'ctx' not described in 'ntfs_map_runlist_nolock'" "warning: expecting prototype for c(). Prototype was for ntfs_map_runlist_nolock() instead" Similarly for other files too. Provide a simple fix by replacing such occurrences with general comment format, i.e. '/*', to prevent kernel-doc from parsing it. Also fix enum documentation format at "ntfs_compression_constants", in fs/ntfs/compress.c, by prefixing 'enum' keyword to the comment description. Signed-off-by: Aditya Srivastava --- Changes in v2: - prefix 'enum' keyword at "ntfs_compression_constants - enum of constants used in the compression code" comment in fs/ntfs/compress.c - modify comment message correspondingly fs/ntfs/aops.c | 2 +- fs/ntfs/aops.h | 2 +- fs/ntfs/attrib.c | 2 +- fs/ntfs/compress.c | 8 ++++---- fs/ntfs/dir.c | 4 ++-- fs/ntfs/inode.c | 2 +- fs/ntfs/mft.c | 2 +- fs/ntfs/runlist.c | 2 +- 8 files changed, 12 insertions(+), 12 deletions(-) diff --git a/fs/ntfs/aops.c b/fs/ntfs/aops.c index bb0a43860ad2..1024cdec136a 100644 --- a/fs/ntfs/aops.c +++ b/fs/ntfs/aops.c @@ -1,5 +1,5 @@ // SPDX-License-Identifier: GPL-2.0-or-later -/** +/* * aops.c - NTFS kernel address space operations and page cache handling. * * Copyright (c) 2001-2014 Anton Altaparmakov and Tuxera Inc. diff --git a/fs/ntfs/aops.h b/fs/ntfs/aops.h index f0962d46bd67..2dcd46befdff 100644 --- a/fs/ntfs/aops.h +++ b/fs/ntfs/aops.h @@ -1,5 +1,5 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ -/** +/* * aops.h - Defines for NTFS kernel address space operations and page cache * handling. Part of the Linux-NTFS project. * diff --git a/fs/ntfs/attrib.c b/fs/ntfs/attrib.c index d563abc3e136..2911c04a33e0 100644 --- a/fs/ntfs/attrib.c +++ b/fs/ntfs/attrib.c @@ -1,5 +1,5 @@ // SPDX-License-Identifier: GPL-2.0-or-later -/** +/* * attrib.c - NTFS attribute operations. Part of the Linux-NTFS project. * * Copyright (c) 2001-2012 Anton Altaparmakov and Tuxera Inc. diff --git a/fs/ntfs/compress.c b/fs/ntfs/compress.c index d2f9d6a0ee32..e4e7587e8f7b 100644 --- a/fs/ntfs/compress.c +++ b/fs/ntfs/compress.c @@ -1,5 +1,5 @@ // SPDX-License-Identifier: GPL-2.0-or-later -/** +/* * compress.c - NTFS kernel compressed attributes handling. * Part of the Linux-NTFS project. * @@ -19,7 +19,7 @@ #include "ntfs.h" /** - * ntfs_compression_constants - enum of constants used in the compression code + * enum ntfs_compression_constants - enum of constants used in the compression code */ typedef enum { /* Token types and access mask. */ @@ -41,12 +41,12 @@ typedef enum { NTFS_MAX_CB_SIZE = 64 * 1024, } ntfs_compression_constants; -/** +/* * ntfs_compression_buffer - one buffer for the decompression engine */ static u8 *ntfs_compression_buffer; -/** +/* * ntfs_cb_lock - spinlock which protects ntfs_compression_buffer */ static DEFINE_SPINLOCK(ntfs_cb_lock); diff --git a/fs/ntfs/dir.c b/fs/ntfs/dir.c index cd96083a12c8..518c3a21a556 100644 --- a/fs/ntfs/dir.c +++ b/fs/ntfs/dir.c @@ -1,5 +1,5 @@ // SPDX-License-Identifier: GPL-2.0-or-later -/** +/* * dir.c - NTFS kernel directory operations. Part of the Linux-NTFS project. * * Copyright (c) 2001-2007 Anton Altaparmakov @@ -17,7 +17,7 @@ #include "debug.h" #include "ntfs.h" -/** +/* * The little endian Unicode string $I30 as a global constant. */ ntfschar I30[5] = { cpu_to_le16('$'), cpu_to_le16('I'), diff --git a/fs/ntfs/inode.c b/fs/ntfs/inode.c index f5c058b3192c..4277d0fd7d88 100644 --- a/fs/ntfs/inode.c +++ b/fs/ntfs/inode.c @@ -1,5 +1,5 @@ // SPDX-License-Identifier: GPL-2.0-or-later -/** +/* * inode.c - NTFS kernel inode handling. * * Copyright (c) 2001-2014 Anton Altaparmakov and Tuxera Inc. diff --git a/fs/ntfs/mft.c b/fs/ntfs/mft.c index 0d62cd5bb7f8..d197d402933a 100644 --- a/fs/ntfs/mft.c +++ b/fs/ntfs/mft.c @@ -1,5 +1,5 @@ // SPDX-License-Identifier: GPL-2.0-or-later -/** +/* * mft.c - NTFS kernel mft record operations. Part of the Linux-NTFS project. * * Copyright (c) 2001-2012 Anton Altaparmakov and Tuxera Inc. diff --git a/fs/ntfs/runlist.c b/fs/ntfs/runlist.c index 97932fb5179c..0d448e9881f7 100644 --- a/fs/ntfs/runlist.c +++ b/fs/ntfs/runlist.c @@ -1,5 +1,5 @@ // SPDX-License-Identifier: GPL-2.0-or-later -/** +/* * runlist.c - NTFS runlist handling code. Part of the Linux-NTFS project. * * Copyright (c) 2001-2007 Anton Altaparmakov -- 2.17.1 _______________________________________________ Linux-kernel-mentees mailing list Linux-kernel-mentees@lists.linuxfoundation.org https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees