Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp938004rdb; Fri, 17 Nov 2023 18:32:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IGO0UsoEIkWADRgbhRkW4kH+vxEAVxfWM9Dppq7vuAXnr1CngETFyKoIMCwHeg9LarWNsMj X-Received: by 2002:a05:6808:158a:b0:3a7:44da:d5e4 with SMTP id t10-20020a056808158a00b003a744dad5e4mr1534010oiw.51.1700274727699; Fri, 17 Nov 2023 18:32:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700274727; cv=none; d=google.com; s=arc-20160816; b=sdmQp8n3NdcrpchBr1fSgwLXtQJpCZKjfeqICELYHOutu5InwgTKy2eC21Xrvzt8ed MELgSsKijiYjW0B2nxs57H2DaO96OatiU0stZwFX6aZLywFtmR0nalLjcSE/9JRXpiGs VJsH1pw4kcF4PBlDktC/HKJ3cfKcbKwrVTeA8M2/LQhkKl1yc2PJ2JSzpxBnDBcPNr7w Hkj71X75ocOl9ysSIDAHjEEY75i6zY6538HIUXx9kBnu2Si5Q69bkenXCTdBh7nH1kYP bBAEt22EKm1PBtdZfUMyU1m+vf6KgfRdNJr807G1hYVboyo+r344i6Ov+OOsYHnQSKjx AQQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=Evcwlcp3d2PQmMX2IVCecA5yyDwuGfCMof13YLW0yBQ=; fh=/NJwfbSM0PnCcq+/1gWlSm3WJNDEx3vtA4ILaKIYBfM=; b=STDoXBJKnHExdzQO82kY89Mm7QIZ3D3smN3r2Pji2Z/oZzeuhCqfxTF/0fzmfxTo8M id98fOp+3l3FzyC02kEq24zgM99KWGSwbghE3qFrEmHtFABgghNUU+1Lq0EyovAT2ASI idiZ1mqc4S7z+OadxFvvL4oHX4vT627yRcyCy3h+Z7uyHo3wakr5FBxQToC/CcH5YPUD WTDKlmve7kqt5bvOV2YB7sRW9heF/djN7uRg7rNIeqyyEXw2zc4evcuVkDbWDLmYpjo3 6so6PC6/ToPBrSc9sbuY2rjtQP58w+Ac+WlhzQLZTJ0/2BDTEXu9892XC3kKnnYy1wF6 Kuzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=2nZYVNIT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id 1-20020a631541000000b005be1e55546esi3322390pgv.51.2023.11.17.18.32.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 18:32:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=2nZYVNIT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id F2CAA8378492; Fri, 17 Nov 2023 18:32:04 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232708AbjKRC0n (ORCPT + 99 others); Fri, 17 Nov 2023 21:26:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229789AbjKRC0m (ORCPT ); Fri, 17 Nov 2023 21:26:42 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5014E10CE for ; Fri, 17 Nov 2023 18:26:38 -0800 (PST) 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:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Sender:Reply-To:Content-ID:Content-Description; bh=Evcwlcp3d2PQmMX2IVCecA5yyDwuGfCMof13YLW0yBQ=; b=2nZYVNITdww6ahOBiRFvw7ZRqL /lW+cK7eJDD0PkR+eqWUi79C2ikO8+Hd4AiZJ6EhEG7qcg0giT/L0Dxzr+rRDJ1/nCoKCOxJ1mtWL HaohPpTlLCCb1Xctuwm0HpV5Mfz2PPajftJnkree3KbX6cVg1RWyY7Y1Vl45HhmO4uz9h5EWne4il +HnK+gWsh8Fiyc0Z61RKSyHzibXrJaRpgsNo8iTmp4ee/jIzRhZzkYHX8B8+FW5qVhs5yj1kl8pfV 1fV3tS8vLCHvgymJxOyIHSQUCsBfqDQJTlvL8uqm39NE3xuAHgUtT8I2bi3FXT8g4dzaiwMjTQv9M fVV67VeA==; Received: from [50.53.46.231] (helo=[192.168.254.15]) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1r4B2X-007ijt-17; Sat, 18 Nov 2023 02:26:33 +0000 Message-ID: Date: Fri, 17 Nov 2023 18:26:32 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] checkpatch: add judgment condition for Kconfig help test Content-Language: en-US To: Cixi Geng , apw@canonical.com, joe@perches.co, dwaipayanray1@gmail.com, lukas.bulwahn@gmail.com, akpm@linux-foundation.org Cc: linux-kernel@vger.kernel.org References: <20231116153904.15589-1-cixi.geng@linux.dev> From: Randy Dunlap In-Reply-To: <20231116153904.15589-1-cixi.geng@linux.dev> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Fri, 17 Nov 2023 18:32:05 -0800 (PST) Hi-- On 11/16/23 07:39, Cixi Geng wrote: > From: Cixi Geng > > The has_help only counted the situation which the patch file add > a help line, when the config was renamed and modify description, > the has_help is zero for the "help" line not added. > > here is one case: > the modify file: drivers/iio/adc/Kconfig line(1047) > > -config SC27XX_ADC > +config SPRD_ADC > tristate "Spreadtrum SC27xx series PMICs ADC" > depends on MFD_SC27XX_PMIC || COMPILE_TEST > + depends on ARCH_SPRD > help > - Say yes here to build support for the integrated ADC inside the > - Spreadtrum SC27xx series PMICs. > + Say yes here to build support for the integrated ADC inside of the > + Spreadtrum SC27xx and UMPxx series PMICs. > > This driver can also be built as a module. If so, the module > will be called sc27xx_adc. OK, I made those changes to that Kconfig file and ran checkpatch. I didn't get any of the following checkpatch results. Are you using a current version of checkpatch? > the checkpatch result: > WARNING: please write a help paragraph that fully describes the config symbol > #23: FILE: drivers/iio/adc/Kconfig:1050: > +config SPRD_ADC > + tristate "Spreadtrum's ADC PMICs driver" > depends on MFD_SC27XX_PMIC || COMPILE_TEST > + depends on ARCH_SPRD > help > + Say yes here to build support for the integrated ADC inside of the > + Say yes here to build support for the integrated ADC inside of the > + Say yes here to build support for the integrated ADC inside of the > + Spreadtrum SC27xx and UMPxx series PMICs. > > This driver can also be built as a module. If so, the module > will be called sc27xx_adc. > > total: 0 errors, 1 warnings, 17 lines checked > > Fixes: b8709bce9089 ("checkpatch: improve Kconfig help test") > Signed-off-by: Cixi Geng > --- > scripts/checkpatch.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl > index 25fdb7fda112..402009d08505 100755 > --- a/scripts/checkpatch.pl > +++ b/scripts/checkpatch.pl > @@ -3616,7 +3616,7 @@ sub process { > $needs_help = 1; > next; > } > - if ($f =~ /^\+\s*help\s*$/) { > + if ($f =~ /^\+\s*help\s*$/ || $f =~ /^\s*help\s*$/) { > $has_help = 1; > next; > } -- ~Randy