Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp5498321imm; Tue, 16 Oct 2018 11:08:54 -0700 (PDT) X-Google-Smtp-Source: ACcGV61siD00sVtmoVlz73JcQnn9gh2ZWBtPmVgqKOeD9nvRDOv8QVxPK+lnx+og7IAuzQDDcnWH X-Received: by 2002:a63:5ec5:: with SMTP id s188-v6mr21186752pgb.126.1539713334198; Tue, 16 Oct 2018 11:08:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539713334; cv=none; d=google.com; s=arc-20160816; b=wayjMGMRwKUWSPeH7MqyQAU8SNYm5GCZ1VI/vzJck9v4JCiQZiwsSeqEP6aXaLV421 GDPmfJHVMV4U3Mue9pZkG6NzYzhlZWGJ00YJD6Nxc+4A43Hq/egsJKwJX/0zSB0l7T4D inTezv9nGAeDv3wv30B3+htATMJ7dUONZpJuV1zq5oOpe772TQD9+EBttP84tz7S//RD FpUMuTdgyiYT/E+Bi+XLj5OhHA/jM+iugJ8WOE69bCsTDrIp4QegcrcZU+2ZuXedQB61 SYbRjVNCxN2+KmSy3KniIPeD0+20hhg1orrg+J5gjzNnGx48FJkImYh4p1eI1SwzoSFz Iudg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=Yz9hCEz77zW2NMvRbpfktcaJYlCVZ58WLz7TvEIWAiA=; b=SPR0WOYeg6/clqMx6zLLr68a6o0bem9pqN0zHTHnAeAtjgq5qEqh8eAOSyIf9oIAnM 8+SpFS9hVU+M5KVDAUpTi+Ko1iAWGO8UE9Jfuvw3nYk1YF2D4SIAcKHu2VuhePG7eJD9 ilqR+ATJB7tHvjSxvQIz+Ji++2Tvh0HIBMOKASAJu5a77DCvQiV6HfgSyeEkp/gGUZYN wuUZqpulnpgoP103BlArlSXvFbGduazomAJUxQiLUnE8q1Zx8E9yPVKJuBl8i8+wEvNt y9qOvIH6QCCT4nTqptixJCnBanlCLcuLORD/zyWFqldgU8s4+vhOxUTCiko9x1PcKFYY qYzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@interia.pl header.s=biztos header.b=N38JF4uA; 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 i5-v6si14298577pgc.289.2018.10.16.11.08.37; Tue, 16 Oct 2018 11:08:54 -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; dkim=pass (test mode) header.i=@interia.pl header.s=biztos header.b=N38JF4uA; 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 S1727349AbeJQB54 (ORCPT + 99 others); Tue, 16 Oct 2018 21:57:56 -0400 Received: from smtpo.poczta.interia.pl ([217.74.65.157]:53671 "EHLO smtpo.poczta.interia.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727142AbeJQB54 (ORCPT ); Tue, 16 Oct 2018 21:57:56 -0400 X-Interia-R: Interia X-Interia-R-IP: 188.121.17.172 X-Interia-R-Helo: Received: from x220.localdomain (unknown [188.121.17.172]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by www.poczta.fm (INTERIA.PL) with ESMTPSA; Tue, 16 Oct 2018 20:06:11 +0200 (CEST) Date: Tue, 16 Oct 2018 20:06:31 +0200 From: Slawomir Stepien To: 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, joe@perches.com Subject: Re: [PATCH] staging: iio: adc: Add comments to prevent checks corrections Message-ID: <20181016180631.GA6085@x220.localdomain> References: <20181015212521.GA24512@mantaray> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20181015212521.GA24512@mantaray> User-Agent: Mutt/1.10.1 (2018-07-13) X-Interia-Antivirus: OK DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=interia.pl; s=biztos; t=1539713174; bh=Yz9hCEz77zW2NMvRbpfktcaJYlCVZ58WLz7TvEIWAiA=; h=X-Interia-R:X-Interia-R-IP:X-Interia-R-Helo:Date:From:To:Cc: Subject:Message-ID:References:MIME-Version:Content-Type: Content-Disposition:Content-Transfer-Encoding:In-Reply-To: User-Agent:X-Interia-Antivirus; b=N38JF4uA1Z9xhFMnn9NZGUMb1oISpdoYYW8ijQAiyv3qYGZ8VRxVqZWe1teZSYyTo kbTBgUEcLYicrQ4FDo7ZJiQE0cV17zrxpa9PynPZj5L+x5+mhTUSvxE3gpmc1wY+SS DlgTEKW33yAnPnyRJ+QFOpXx0WQP0QhLVxNM+NUw= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? -- Slawomir Stepien