Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp840912pxj; Thu, 20 May 2021 23:50:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzr3SoGqkpEQsne9RA+TtTRqLAUoXwRkNwJ2Ms+FO8PZb/o/YRfrX5GEcnomUvoSiBXVDPn X-Received: by 2002:a17:906:2dcd:: with SMTP id h13mr9035042eji.41.1621579848178; Thu, 20 May 2021 23:50:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621579848; cv=none; d=google.com; s=arc-20160816; b=NAp54lcWvoH3buQJy9ZLI/cm+mSZp0B53qLUI2lKz97DZq2iHiHEeApFnvDLIVhuLk IH+tGAdjEo8nKIGyqiB579bKGsMMBA5m89UmMZBWo1oMmT5nFWeVPgK5nc2kBVWeDvDP 5VIHGvn3fFtGq24imHzyHiZ1VD1DywvfUN1GJE+OVBh8ZKesAJ5OHyuFk/YkZCvGqFZK kWs311GYgjcIbnX+/k6+uBw/icSwp8+LgQOa9RW7+f7I+bNOOqZX678WyOew0wNflshF bSedfG3tkL0szRryYdgwtGZhCNVa4jMfwrRQyiPz3g5567O9IzKiFyAFZIpDCyfj8G+M fAEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=agiakZtvhMa1O9T2XzsnpNjO6uMLLfnHhIvJ8sxlh1Y=; b=pdGmKjhpw51CWs1CTvWJYvDGFT62NTB11/tNobADQ9VN13KWC8aESeSw6GrG7P1sOB l/C6nFCqbwecMs+t4oNThfk5QUK0HcCzCSf9FAdmLVoye/FU9URh+vn9yvZGBKD7Q4H6 Bcqgftphk8FHeTlC8SA/8BBv1/253zLq8lNIMLJJw0ELpU4AYI0XSykE02yxU5jcJZ6K mME7dSJq4jiwEY0V42tI03xdk0YFHypBk7/70FhF854KBnss+aMJxzISvMpCqY40ntiE 3FrXnDg/3V82Zys+1bobx19MmGqgqjJ2geL9CD7l2g/bJizSQq0+Al199ZXhHfbAv6zS IYZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=Ew5DIjR5; 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 re2si4717914ejb.407.2021.05.20.23.50.25; Thu, 20 May 2021 23:50:48 -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; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=Ew5DIjR5; 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 S235247AbhETSb6 (ORCPT + 99 others); Thu, 20 May 2021 14:31:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233462AbhETSbz (ORCPT ); Thu, 20 May 2021 14:31:55 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 54534C061574; Thu, 20 May 2021 11:30:34 -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: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To: Subject:Sender:Reply-To:Content-ID:Content-Description; bh=agiakZtvhMa1O9T2XzsnpNjO6uMLLfnHhIvJ8sxlh1Y=; b=Ew5DIjR56nVHadIx3pywARpTvd Kgq0VyI+O62d0VLyFLIu4w7CjQvihMOMTaRgdL8VG7HB0i6DOjHbQxlwccFvsRL6HlnU87Kle5NKO T/EvFNAW3TnfAReeo8nt1ucuvPbyUmN5KKzlmEI/Nbie6KLnfjxukn2+fTEL7ic/44bk/PK5pnYW6 6eF40guPIS7n/zLzzE+mrKkKw7N0FSq9BObMkmzj1B6W7Mdn9CDYem5oEFLFi0RNu1vQSLlwkNaVK lm7gK8J0uTRyq/zLQa0fmnnqamK5wzCi3XycoZ+rz1lsaWlkTcgZ3o8T8BxPLEl5gbVjTih08AIF/ OMutOsyA==; Received: from [2601:1c0:6280:3f0::7376] by bombadil.infradead.org with esmtpsa (Exim 4.94 #2 (Red Hat Linux)) id 1ljnRJ-00GZgm-Jd; Thu, 20 May 2021 18:30:33 +0000 Subject: Re: [PATCH] Phonet: fix kernel-doc syntax in file headers To: Aditya Srivastava , courmisch@gmail.com Cc: lukas.bulwahn@gmail.com, linux-kernel-mentees@lists.linuxfoundation.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org References: <20210520182159.31462-1-yashsri421@gmail.com> From: Randy Dunlap Message-ID: <7cb9bfad-55b1-b5f3-5051-a2e837dda736@infradead.org> Date: Thu, 20 May 2021 11:30:31 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.0 MIME-Version: 1.0 In-Reply-To: <20210520182159.31462-1-yashsri421@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/20/21 11:21 AM, Aditya Srivastava wrote: > The opening comment mark '/**' is used for highlighting the beginning of > kernel-doc comments. > The header for include/*/linux/phonet.h files 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. > For e.g., running scripts/kernel-doc -none include/linux/phonet.h emits: > 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. > > Signed-off-by: Aditya Srivastava Hi, This all looks good, but it would be even better to remove the file names. We tend to prefer not to have filenames in their files because they get moved or renamed -- and because it's redundant info. Anyway, Acked-by: Randy Dunlap Thanks. > --- > include/linux/phonet.h | 2 +- > include/uapi/linux/phonet.h | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/include/linux/phonet.h b/include/linux/phonet.h > index bc7d1e529efc..09ecb1f94c5e 100644 > --- a/include/linux/phonet.h > +++ b/include/linux/phonet.h > @@ -1,5 +1,5 @@ > /* SPDX-License-Identifier: GPL-2.0-only */ > -/** > +/* > * file phonet.h > * > * Phonet sockets kernel interface > diff --git a/include/uapi/linux/phonet.h b/include/uapi/linux/phonet.h > index a2f6b37a5937..6b873c460994 100644 > --- a/include/uapi/linux/phonet.h > +++ b/include/uapi/linux/phonet.h > @@ -1,5 +1,5 @@ > /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ > -/** > +/* > * file phonet.h > * > * Phonet sockets kernel interface > -- ~Randy