Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp5509308imm; Tue, 16 Oct 2018 11:19:14 -0700 (PDT) X-Google-Smtp-Source: ACcGV62mWCvhAGQie6W/kqt3zUopp5IpU3YbkYqXKpSB1Nl6MH9+yb9w/awRt05XttJothVUvEwW X-Received: by 2002:a63:8e43:: with SMTP id k64-v6mr20533891pge.75.1539713954542; Tue, 16 Oct 2018 11:19:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539713954; cv=none; d=google.com; s=arc-20160816; b=Lmn8XZebCi8bzof0lwhSYE1Of+ZxSJrACoSbB0W7hdTb8bvV8H3JWnniDwJEe7G2Ed cjjUpVb1TwF6fiK6QJyuLR6ze5uE65/37u2fzw9GykH/LEld81QU58zYTFhHkF/jmA1l CtgpaiTt+I1OfF3cIEGwLOPOSwNJWI+zA4+bKTrz07fKLPVmwMxsJ9bS3KVb+cOuzEu9 x0fIisE+BNN88JM6YzQKUuLdCOVe7fy3Uoqcs57b0WnYF7vPNhYcweiF3GrdFSetubeW bVT034wJkvxEfE9aVuQdXkmqgETYHYCHh7thFZRvOgIo0Au7iPUovuuiXC1wBLEzhgUu k5yA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=GoHZEx5lDyjKU71TllkDATMOC74aN865WRMe1hnDHu4=; b=qh9uLoJW8DpQt8j0GMRpVQrgEX/giYItm3l3jpnSjXA34EBMwqZVzTSn0ZGKb3ZH8a L7F37zQarbd850sB0f7Vf/h394Ze51MnbfEN0cMZWgooqwMECJojVp4abbasxXfycpHH gdGxaBcen5/Hbqdb40rwZELHysYjr363oFN3KEX7ySsFbCUNpn8b1V20E9Z7IaX2eE/n KT6I8EgX6isaKCVVpCp8P/1jDIy36RfFABfaIQEc7gTGozzD4nscvntFcpuFiWTQ9z5W yAmAZWXQ3rRkJ0WYBfGRF4ONdp8MjFlUgImNiUnau0f5qXVOmGe+cXYU7ZcPCf5tbvOg xsPw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j63-v6si14220929pgd.69.2018.10.16.11.18.59; Tue, 16 Oct 2018 11:19:14 -0700 (PDT) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727553AbeJQCIb (ORCPT + 99 others); Tue, 16 Oct 2018 22:08:31 -0400 Received: from smtprelay0188.hostedemail.com ([216.40.44.188]:54529 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727006AbeJQCIa (ORCPT ); Tue, 16 Oct 2018 22:08:30 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay06.hostedemail.com (Postfix) with ESMTP id B7ACE18033236; Tue, 16 Oct 2018 18:16:49 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::::::::::,RULES_HIT:41:152:355:379:599:800:960:967:973:982:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2194:2199:2393:2525:2559:2564:2682:2685:2693:2859:2933:2937:2939:2942:2945:2947:2951:2954:3022:3138:3139:3140:3141:3142:3353:3622:3865:3866:3867:3868:3870:3871:3872:3873:3874:3934:3936:3938:3941:3944:3947:3950:3953:3956:3959:4250:4321:4470:4605:5007:6119:7903:9025:9108:10004:10400:10848:11232:11658:11914:12043:12294:12438:12555:12663:12740:12895:12986:13069:13095:13311:13357:13894:14093:14096:14097:14181:14659:14721:21063:21080:21365:21433:21451:21627:30012:30054:30070:30091,0,RBL:error,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:28,LUA_SUMMARY:none X-HE-Tag: pin24_7585ef7e4865b X-Filterd-Recvd-Size: 2768 Received: from XPS-9350.home (unknown [47.151.153.53]) (Authenticated sender: joe@perches.com) by omf15.hostedemail.com (Postfix) with ESMTPA; Tue, 16 Oct 2018 18:16:47 +0000 (UTC) Message-ID: <928f615f2a25f821e785f2db96f90df009d2fa34.camel@perches.com> Subject: Re: [PATCH] staging: iio: adc: Add comments to prevent checks corrections From: Joe Perches To: Slawomir Stepien , Gabriel Capella Cc: Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Greg Kroah-Hartman , linux-iio@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, kernel-usp@googlegroups.com, apw@canonical.com Date: Tue, 16 Oct 2018 11:16:46 -0700 In-Reply-To: <20181016180631.GA6085@x220.localdomain> References: <20181015212521.GA24512@mantaray> <20181016180631.GA6085@x220.localdomain> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.1-1build1 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2018-10-16 at 20:06 +0200, Slawomir Stepien wrote: > On paź 15, 2018 18:25, Gabriel Capella wrote: > > This patch adds 3 comments in 2 different files. > > These comments warn to don't correct the checks of type: > > "CHECK: spaces preferred around that '-'" > > > > Signed-off-by: Gabriel Capella > > --- > > drivers/staging/iio/adc/ad7192.c | 1 + > > drivers/staging/iio/adc/ad7280a.c | 2 ++ > > 2 files changed, 3 insertions(+) > > I have this simpler solution...let's focus our efforts on moving the two drivers > out of staging. This will prevent the CHK to appear: > > Cut from checkpatch.pl: > > if ($realfile =~ m@^(?:drivers/net/|net/|drivers/staging/)@) { > $check = 1; > > Existing driver out of staging, with this "problem": > $ ./scripts/checkpatch.pl --types SPACING --file drivers/iio/adc/ad7793.c > total: 0 errors, 0 warnings, 827 lines checked > > drivers/iio/adc/ad7793.c has no obvious style problems and is ready for submission. > > NOTE: Used message types: SPACING > > In my opinion it would stop this incorrect patches. - > > I have also this changes to checkpatch.pl: > https://github.com/s-stepien/linux-1/commit/c976a31b392393fb417f2d9e2ec9639bc226ad0b > and usage: > https://github.com/s-stepien/linux-1/commit/1adc0428b496f44f6a931637084bb619ddd9992d > but I'm not that sure it is the best way to go. > > What do you all think? I think the suggested form is somewhat cryptic /* checkpatch- */ and the new checkpatch code is somewhat balky. It also allows only a single type to ignore per line.