Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2771227pxj; Mon, 14 Jun 2021 06:52:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxcrEuiD2bEuwlOUhZvReFLiAx/SQaj3s0PNkIKLm/8eCi7pWVoOqzYL0bWqICZYjrzEDyn X-Received: by 2002:a05:6402:1111:: with SMTP id u17mr17390267edv.87.1623678732812; Mon, 14 Jun 2021 06:52:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623678732; cv=none; d=google.com; s=arc-20160816; b=X9PwCEmOxHWp3EcQuoeMWrW7C6sIdlVDJWtsPsiMyR3eolncR4H4g9Wd1dknyLgZy1 PWjbPRwUx502dY9IkIaNTJPRHafkrVQXW8u5JB0LBH+6eb3U/TYC1KvGcPXNCON/qPTb 3QV92hozNDqaclznsqiBmPve7NITKksTmIOmghtSat0HNDF6by80o3do/trta15wu4Tz 82LqZt3JWCOmyBtpcv191WwGc9xdYt98G2CH+Zao+HGVh1gQCFH9BQD6BID09ZZVCKmW 56kV4/G+vYto3VE29K6XSZMx1mwF4DL7XDFI/04yPDYe+SDCCxYPu9qq8gmzHhFI5VrM PQgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:date:from:dkim-signature; bh=rK9Q1mNWnb94FFuQqkdC7VJ2nzbzqNo9H25GvMLEJag=; b=ljRNn9gIn5NR1SdDobLZKcqXlz/vxgyxukiA/kZzSLuyqppqg4s0t5/AlDxdCFsQZk 7P+2pjtYJAKcisrSQ+BT4F30okAcRewyjmsZtVAoFWzAaPbx3KgL2QRv48T+ndJH9txf G8Z1/KGNEph0wT5uDrDJjLgu3dpylFZ1KL5IKp8Bnn222xjyFZcIf7hVLesgij7CIMU9 Q7UMEp3NZaYfTzmh/9dBSe+jMAccbwCTgrNbX63pSHOjav7WOU8AGRvlgjC1GpHTrjjZ yI+KCnYAlwqki28kkuoc3bzLfmwx2CFKDWqNfCsga+3YoiG5cdgLsSFf+h0A3GLACLJj FlMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="TRi/aZqI"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m12si11052777ejn.548.2021.06.14.06.51.49; Mon, 14 Jun 2021 06:52:12 -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=@gmail.com header.s=20161025 header.b="TRi/aZqI"; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234194AbhFNNwr (ORCPT + 99 others); Mon, 14 Jun 2021 09:52:47 -0400 Received: from mail-wr1-f47.google.com ([209.85.221.47]:35736 "EHLO mail-wr1-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233674AbhFNNwq (ORCPT ); Mon, 14 Jun 2021 09:52:46 -0400 Received: by mail-wr1-f47.google.com with SMTP id m18so14642789wrv.2; Mon, 14 Jun 2021 06:50:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=rK9Q1mNWnb94FFuQqkdC7VJ2nzbzqNo9H25GvMLEJag=; b=TRi/aZqILauPquOhvVzePZlwFemjM4DxUaMTDQZuaTyYe7FcMc2FKib8fBfUF2/hsY t4W9pTVMOLFf6fn093Vi0o1aBgNb4u9k0+FB6BsZpmfNDx5unCYSM2dXeC/mFI5o/A+G IBVcqsSfZhRihX13zRhrZjA9bgCdAlgF8zQr9wLrNEbws5D3lWnoXT/X6KMw2SIwJjFW promwW+1MwOsHvY8f6GYe+qAbZyrSgcQ1gZbMEvoBIeUC6E+uGz6z7nES4XXnx6eitWB IXfMCOf+rVj4Oq+MoKjDVMmvWyo7hyoFy7osSU1vRHdLBMKf7aVUXMpiPPLFhwH5dHDx Je/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=rK9Q1mNWnb94FFuQqkdC7VJ2nzbzqNo9H25GvMLEJag=; b=pyV/+WAPfYR4S7GV9cVmcgriDyJA0QzatHOAraMiy+JWAC0FOedPe5Kej0BznsvEk7 mYYoxnAk+a6qmrr/MBgWcTQQbkux/1mffK5z4Kx6lWGBdX8S6aMXKPNfIXlS58LLgI4n Jt6quO+R8VkNb+kOrgZ7Dl2df8KzInD+R+DPd7ulZQSMdyhptrBzImoRofhMZv/NZOVT 4JgY/8NNNWuV5JlMc6fLOFK1cMw2fciXJ/4fQPXUlFy48WGpCxBkzr1GYvPnZxqqoYaf g3urjLpYp8nKEc0clu1r21NJU0zG5Hh8ViyI0gSSZA9rIROGR2bQKUXMnzI8UakOZlL9 8O/g== X-Gm-Message-State: AOAM531YDy1lpadpa+Zdcs6sqk2NpmvzmZ/eb79Qpa0XIwPF7cZWk0D+ X5YFMHi5b/tJ8XR190DtpYQ= X-Received: by 2002:a5d:6546:: with SMTP id z6mr19043411wrv.100.1623678576619; Mon, 14 Jun 2021 06:49:36 -0700 (PDT) Received: from felia ([2001:16b8:2d62:e800:a8e7:80e:6e34:237d]) by smtp.gmail.com with ESMTPSA id o5sm16637577wrw.65.2021.06.14.06.49.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Jun 2021 06:49:36 -0700 (PDT) From: Lukas Bulwahn X-Google-Original-From: Lukas Bulwahn Date: Mon, 14 Jun 2021 15:49:22 +0200 (CEST) X-X-Sender: lukas@felia To: Dwaipayan Ray cc: corbet@lwn.net, linux-kernel@vger.kernel.org, lukas.bulwahn@gmail.com, joe@perches.com, linux-doc@vger.kernel.org Subject: Re: [PATCH v3] docs: checkpatch: Document and segregate more checkpatch message types In-Reply-To: <20210611060833.1802-1-dwaipayanray1@gmail.com> Message-ID: References: <20210611060833.1802-1-dwaipayanray1@gmail.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 11 Jun 2021, Dwaipayan Ray wrote: > Add and document more checkpatch message types. About 50% of all > message types are documented now. > > In addition to this: > > - Create a new subsection 'Indentation and Line Breaks'. > - Rename subsection 'Comment style' to simply 'Comments'. > - Refactor some of the existing types to appropriate subsections. > > Signed-off-by: Dwaipayan Ray Reviewed-by: Lukas Bulwahn Tested-by: Lukas Bulwahn 'make htmldocs' produces no new warnings. See one further comment on the html presentation below; other than that no further comments. Lukas > --- > > Changes in v3: > - Update explanation for CONSTANT_CONVERSION > - Add more reference links > - Fix grammatical errors > > Changes in v2: > - Correct DEVICE_ATTR message types as suggested by Joe Perches. > https://lore.kernel.org/lkml/eab0487d7b4e68badbbe0505b2a7903b9d8931c4.camel@perches.com/T/#t > - Use passive voice in the documentation > > Documentation/dev-tools/checkpatch.rst | 397 ++++++++++++++++++++----- > 1 file changed, 327 insertions(+), 70 deletions(-) > > diff --git a/Documentation/dev-tools/checkpatch.rst b/Documentation/dev-tools/checkpatch.rst > index 87b859f321de..ad84e709aa25 100644 > --- a/Documentation/dev-tools/checkpatch.rst > +++ b/Documentation/dev-tools/checkpatch.rst > + > + **FUNCTION_ARGUMENTS** > + This warning is emitted due to any of the following reasons:: I think here you wnt to have an enumeration, but the "::" makes it a code block. > + > + 1. Arguments for the function declaration do not follow > + the identifier name. Example:: > + > + void foo > + (int bar, int baz) > + > + This should be corrected to:: > + > + void foo(int bar, int baz) > + > + 2. Some arguments for the function definition do not > + have an identifier name. Example:: > + > + void foo(int) > + > + All arguments should have identifier names. > + > **FUNCTION_WITHOUT_ARGS** > Function declarations without arguments like:: >