Received: by 10.223.185.116 with SMTP id b49csp960207wrg; Tue, 20 Feb 2018 10:38:05 -0800 (PST) X-Google-Smtp-Source: AH8x224xSoZ8bga2TFlNQbhCKoMSoVdHRjDj2MKjlS6fqv2eiJ1FW63FrYJgCRnYsk0zxtHggnNa X-Received: by 10.99.175.76 with SMTP id s12mr453742pgo.240.1519151885833; Tue, 20 Feb 2018 10:38:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519151885; cv=none; d=google.com; s=arc-20160816; b=c3zmUbi1RS77oHn+ehMlguIADihD3MNBWpas9B+4i/KV/Gh5xNRKEwrLbA2Tdx1Hn7 1QdBEifGvQFMQi18BPTGzXugF8/OHgXIODVojMReILuyWs26+7F32GpH3ofY5LirYrGo C71mcpLc3of0CWWDiBjRuBvu1+WuJD7aG3NqhYhWxTCFA/EU0Gn+biyy7OBkJkYha2i2 ZErVZ6NL/dOw9OHtzCPxAz/km5gFJvWb1HxFO0iAh2OT00AWihKEOzihR8ZnqYrqymvW 6Bra9eDESGEcM9XFEnJpumNXbUMI/0gvQ7iXYbr9Fg5qEvNRqNp0CBBeWpUvh04LxaK0 DMhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=Ctgy5T80IZXSIk93WjB/QI7DcnSG0Z3JNDvYyw5Nbc4=; b=u4R+BhdUgvGBeKsJM+WtgtmNMWxpdjqxRB1x2T5eswH77FYkmHl9l4t3O3FAp2a3c8 bYCi7RT0pLU5lMyhQPXRnmAQUEtQ7vn6EwtbcApqu+TLPEspguMcYuP4SLfxCWl0GsY1 eVsLJsVPJOxoqlc7hQFi5uexrPdG+MLmYKF+2TKGk/xjYx05xC2IxjwdntamgLWTeL0y ZUxhss1YUz1pYWfb318nLHje6U2fCp+yFB4D/bEC54wvwt4AbGG9ARFsYokNoB2WuDL5 Xaa572nf/r4K2cCmC6Jfn006OxVzAWwri7iuE2mWT7Y3mjnede9hkru2c+xY5cMGCyzy 3DSQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v189si4016679pgb.706.2018.02.20.10.37.51; Tue, 20 Feb 2018 10:38:05 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751898AbeBTSgy (ORCPT + 99 others); Tue, 20 Feb 2018 13:36:54 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:36548 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751814AbeBTSgn (ORCPT ); Tue, 20 Feb 2018 13:36:43 -0500 Received: from pps.filterd (m0098393.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w1KIZG5b039324 for ; Tue, 20 Feb 2018 13:36:43 -0500 Received: from e06smtp15.uk.ibm.com (e06smtp15.uk.ibm.com [195.75.94.111]) by mx0a-001b2d01.pphosted.com with ESMTP id 2g8qvvk67g-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Tue, 20 Feb 2018 13:36:42 -0500 Received: from localhost by e06smtp15.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 20 Feb 2018 18:36:40 -0000 Received: from b06cxnps4074.portsmouth.uk.ibm.com (9.149.109.196) by e06smtp15.uk.ibm.com (192.168.101.145) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 20 Feb 2018 18:36:38 -0000 Received: from d06av25.portsmouth.uk.ibm.com (d06av25.portsmouth.uk.ibm.com [9.149.105.61]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w1KIacTa40763448; Tue, 20 Feb 2018 18:36:38 GMT Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 6866D11C04A; Tue, 20 Feb 2018 18:29:42 +0000 (GMT) Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id D035F11C04C; Tue, 20 Feb 2018 18:29:40 +0000 (GMT) Received: from rapoport-lnx (unknown [9.148.205.17]) by d06av25.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Tue, 20 Feb 2018 18:29:40 +0000 (GMT) Received: by rapoport-lnx (sSMTP sendmail emulation); Tue, 20 Feb 2018 20:36:35 +0200 From: Mike Rapoport To: Jonathan Corbet Cc: Matthew Wilcox , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Mike Rapoport Subject: [PATCH] doc-guide: kernel-doc: add comment about formatting verification Date: Tue, 20 Feb 2018 20:36:25 +0200 X-Mailer: git-send-email 2.7.4 X-TM-AS-GCONF: 00 x-cbid: 18022018-0020-0000-0000-000003F9BBAD X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18022018-0021-0000-0000-0000428DCA10 Message-Id: <1519151785-25997-1-git-send-email-rppt@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-02-20_07:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 malwarescore=0 lowpriorityscore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1802200223 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Currently there is no automated checking for kernel-doc comments except running 'kernel-doc -v -none '. Mention the possibility to run kernel-doc to verify formatting of the comments in the kernel-doc guide. Signed-off-by: Mike Rapoport --- v2: * fix typo * add a sentence about using 'make W=n' Documentation/doc-guide/kernel-doc.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Documentation/doc-guide/kernel-doc.rst b/Documentation/doc-guide/kernel-doc.rst index c6c3297..80383b1 100644 --- a/Documentation/doc-guide/kernel-doc.rst +++ b/Documentation/doc-guide/kernel-doc.rst @@ -44,6 +44,17 @@ that somebody changing the code will also change the documentation. The overview kernel-doc comments may be placed anywhere at the top indentation level. +Running the ``kernel-doc`` tool with increased verbosity and without actual +output generation may be used to verify proper formatting of the +documentation comments. For example:: + + scripts/kernel-doc -v -none drivers/foo/bar.c + +The documentation format is verified by the kernel build when it is +requested to perform extra gcc checks:: + + make W=n + Function documentation ---------------------- -- 2.7.4