From mboxrd@z Thu Jan 1 00:00:00 1970 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=-3.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no 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 718B0C433DF for ; Thu, 11 Jun 2020 01:41:41 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 254002078D for ; Thu, 11 Jun 2020 01:41:41 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="nqDiAsSr" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 254002078D Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id CC3A18D005C; Wed, 10 Jun 2020 21:41:40 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id C74F18D004C; Wed, 10 Jun 2020 21:41:40 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B8B7E8D005C; Wed, 10 Jun 2020 21:41:40 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0226.hostedemail.com [216.40.44.226]) by kanga.kvack.org (Postfix) with ESMTP id 9E3528D004C for ; Wed, 10 Jun 2020 21:41:40 -0400 (EDT) Received: from smtpin01.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 572DA1802203C for ; Thu, 11 Jun 2020 01:41:40 +0000 (UTC) X-FDA: 76915229160.01.nose15_080b59226dcf Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin01.hostedemail.com (Postfix) with ESMTP id 2ED8E1802798B for ; Thu, 11 Jun 2020 01:41:40 +0000 (UTC) X-HE-Tag: nose15_080b59226dcf X-Filterd-Recvd-Size: 3068 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf31.hostedemail.com (Postfix) with ESMTP for ; Thu, 11 Jun 2020 01:41:39 +0000 (UTC) Received: from localhost.localdomain (c-73-231-172-41.hsd1.ca.comcast.net [73.231.172.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B6A24207ED; Thu, 11 Jun 2020 01:41:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1591839699; bh=YVkqou971iUV9O1QD2s9WbqdMRoKErrHhMzpDv2QLfw=; h=Date:From:To:Subject:In-Reply-To:From; b=nqDiAsSr5z7A0nUYYx1zezMgZnbKbVgOiVmdfKJKFJcp/M+tQTiz/DC2iKWl8OW/G tUPu+VNAOcQeKFqv4UaO09iOfSQknzwEI6gYYoSP+1Ssc/mbudcXbqxJ6ieqlYRR08 Gj1w6jC9TPMQeFq5Kk7j9rz9GDZvz1l9tuy6Vx0o= Date: Wed, 10 Jun 2020 18:41:38 -0700 From: Andrew Morton To: akpm@linux-foundation.org, joe@perches.com, linux-mm@kvack.org, mchehab@kernel.org, mm-commits@vger.kernel.org, tim.froidcoeur@tessares.net, torvalds@linux-foundation.org Subject: [patch 06/25] checkpatch: correct check for kernel parameters doc Message-ID: <20200611014138.3OCM1QxQa%akpm@linux-foundation.org> In-Reply-To: <20200610184053.3fa7368ab80e23bfd44de71f@linux-foundation.org> User-Agent: s-nail v14.8.16 X-Rspamd-Queue-Id: 2ED8E1802798B X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam04 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: From: Tim Froidcoeur Subject: checkpatch: correct check for kernel parameters doc Adding a new kernel parameter with documentation makes checkpatch complain "__setup appears un-documented -- check Documentation/admin-guide/kernel-parameters.rst". The list of kernel parameters has moved to a separate txt file, but checkpatch has not been updated for this. Make checkpatch.pl look for the documentation for new kernel parameters in kernel-parameters.txt instead of kernel-parameters.rst. Fixes: e52347bd66f6 ("Documentation/admin-guide: split the kernel parameter list to a separate file") Signed-off-by: Tim Froidcoeur Acked-by: Joe Perches Cc: Mauro Carvalho Chehab Signed-off-by: Andrew Morton --- scripts/checkpatch.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/scripts/checkpatch.pl~checkpatch-correct-check-for-kernel-parameters-doc +++ a/scripts/checkpatch.pl @@ -2407,7 +2407,7 @@ sub process { if ($rawline=~/^\+\+\+\s+(\S+)/) { $setup_docs = 0; - if ($1 =~ m@Documentation/admin-guide/kernel-parameters.rst$@) { + if ($1 =~ m@Documentation/admin-guide/kernel-parameters.txt$@) { $setup_docs = 1; } #next; @@ -6388,7 +6388,7 @@ sub process { if (!grep(/$name/, @setup_docs)) { CHK("UNDOCUMENTED_SETUP", - "__setup appears un-documented -- check Documentation/admin-guide/kernel-parameters.rst\n" . $herecurr); + "__setup appears un-documented -- check Documentation/admin-guide/kernel-parameters.txt\n" . $herecurr); } } _