Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2474496pxj; Sun, 23 May 2021 01:13:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwTaQ7WTnD/4HXih9f+psIPUAORo0TbTR9GXBEA74/LDrNqTzUA8ezamsoWaeB3Bhsj57kr X-Received: by 2002:a02:c73a:: with SMTP id h26mr16222961jao.95.1621757609207; Sun, 23 May 2021 01:13:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621757609; cv=none; d=google.com; s=arc-20160816; b=vB3u3Q6Bid6r+YQw1QtGdJUdnPhgUIhmQs0F0RkanG0uZieHDUKNjyFpzy0GbJQQPm VsiqvKNOtu8x97WeuypMOc79VW12nGjzd6iaslIihkY+6k1PsAPl9Plqx4e4s4N/XmxV 1wSFL38IQyjlZ1ezDsIwC+LPoGr2vYqGKhNBGOQl9diZ88pJ2I8j9blUroJHkvXWcEzs I1F23ud67vabE5txfOInOc0NwONlO/2iavNNO3wlHrQ5vqgKh+6oNXx1ID4m9GDGwTu4 i9FIy7Sf1fbNVvdlih3myZPyJB/QDDsFGgWTnCyXyK/dcw4DcOLNn7bCsOD6jmmKQdIm Wiow== 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 :references:in-reply-to:organization:message-id:date:subject:cc:to :from; bh=/0CumRbVop0o0p1yZ2H0gINxmEDW+/WFbX3YsZ0f60Y=; b=yPD7jsoQzdz5DMgi5edgThAPX5CmY4xjKnoby5CA+ijUNFN2lrycJ1e489RqmuSiUc UGU5SO1mER64hFvyNM3JHA15MenroBbOUY4v90MfKCrep77lWdpvh0OHdfVlOuYm02rd OIRH/DdgP+6hUCAU77IRIU7SkSmYfM2QJkyEWby0/69rqM1SEonY1lZ5hVKRodDgdlu3 Vg2d0tqJap1VQXb9vKcUgr0m/YMa/VhvL08HKm2W5PMoyME5qQzAVrqwBVwP6fGXeTX6 8hufrTeJD3juA+BM0sNIGI/kc6Xs5PSZt5gzs/PtvWbXmt2Uw8b0yquuAUg/zUNREW4o Ec/Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n1si2533204ilt.65.2021.05.23.01.13.13; Sun, 23 May 2021 01:13:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231638AbhEWIMq convert rfc822-to-8bit (ORCPT + 99 others); Sun, 23 May 2021 04:12:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231599AbhEWIMe (ORCPT ); Sun, 23 May 2021 04:12:34 -0400 X-Greylist: delayed 81817 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Sun, 23 May 2021 01:11:08 PDT Received: from ursule.remlab.net (vps-a2bccee9.vps.ovh.net [IPv6:2001:41d0:305:2100::8a0c]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2FA08C061574; Sun, 23 May 2021 01:11:08 -0700 (PDT) Received: from philogene.localnet (localhost [IPv6:::1]) by ursule.remlab.net (Postfix) with ESMTP id 14100C2C68; Sun, 23 May 2021 11:11:07 +0300 (EEST) From: =?ISO-8859-1?Q?R=E9mi?= Denis-Courmont To: Aditya Srivastava Cc: courmisch@gmail.com, lukas.bulwahn@gmail.com, rdunlap@infradead.org, linux-kernel-mentees@lists.linuxfoundation.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] Phonet: fix kernel-doc syntax in file headers and remove file names Date: Sun, 23 May 2021 11:11:06 +0300 Message-ID: <1794881.Lfz63IBmft@philogene> Organization: Remlab Tmi In-Reply-To: <20210522113408.8766-1-yashsri421@gmail.com> References: <52313028.m8L9TnScQ9@philogene> <20210522113408.8766-1-yashsri421@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT Content-Type: text/plain; charset="iso-8859-1" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le samedi 22 mai 2021, 14:34:08 EEST Aditya Srivastava a ?crit : > The opening comment mark '/**' is used for highlighting the beginning of > kernel-doc comments. > For e.g., the header for include/linux/phonet.h follows this syntax, but > the content inside does not comply with kernel-doc. > > This line was probably not meant for kernel-doc parsing, but is parsed > due to the presence of kernel-doc like comment syntax(i.e, '/**'), which > causes unexpected warning from kernel-doc: > warning: This comment starts with '/**', but isn't a kernel-doc comment. > Refer Documentation/doc-guide/kernel-doc.rst * file phonet.h > > Provide a simple fix by replacing this occurrence with general comment > format, i.e. '/*', to prevent kernel-doc from parsing it. > > Also remove the redundant file name from the comment headers. > > Signed-off-by: Aditya Srivastava Acked-by: R?mi Denis-Courmont > --- > Changes in v2: > - Remove file name information from comment headers as well, as suggested by > Randy and Remi > > include/linux/phonet.h | 4 +--- > include/uapi/linux/phonet.h | 4 +--- > 2 files changed, 2 insertions(+), 6 deletions(-) > > diff --git a/include/linux/phonet.h b/include/linux/phonet.h > index bc7d1e529efc..6117a0e462d3 100644 > --- a/include/linux/phonet.h > +++ b/include/linux/phonet.h > @@ -1,7 +1,5 @@ > /* SPDX-License-Identifier: GPL-2.0-only */ > -/** > - * file phonet.h > - * > +/* > * Phonet sockets kernel interface > * > * Copyright (C) 2008 Nokia Corporation. All rights reserved. > diff --git a/include/uapi/linux/phonet.h b/include/uapi/linux/phonet.h > index a2f6b37a5937..e7e14b5e59c6 100644 > --- a/include/uapi/linux/phonet.h > +++ b/include/uapi/linux/phonet.h > @@ -1,7 +1,5 @@ > /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ > -/** > - * file phonet.h > - * > +/* > * Phonet sockets kernel interface > * > * Copyright (C) 2008 Nokia Corporation. All rights reserved. -- R?mi Denis-Courmont