Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4097811yba; Wed, 17 Apr 2019 04:41:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqw6aBoR5ugIXtIvjsWyaw4a2vA4+4Xlt0rIOj2L9uXKk9SfPFc7xcxdnY47h13Ei5EovC9E X-Received: by 2002:a17:902:121:: with SMTP id 30mr53906305plb.174.1555501265188; Wed, 17 Apr 2019 04:41:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555501265; cv=none; d=google.com; s=arc-20160816; b=fWpcirqOuzbYd5xU/lcZ2wGKIDInMDgIl5pFPx6+fnd9SvLHqCmB11Z8SiQnQSyFNe o2fyC/paBrhIJ0MTdl9FSlDvhKKUQ9AkirECHCm5EDBF3niSTRN/ce+oY020mI9o5GjI N7+t4Vd4KRT2FC2dRv8ZZxTLIA0RHfAzitptP01SYHndGIXzMgnAlF2NL5UBdjRPBMQO bk5/vWM/IN2L8kFsmB+GdihQnUNUKmiQZArJoZpRjeFto4JRtr2rMWen4/Tj11zE0vwb uetY/sVzw4+mU9wfYOhxtnBWK1/zpjxWSgjygFUZHPjgCwUCUGrTnxnxy6nEtK/k9QWP WywQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=iaQ9dMyM/mdqTRSrB7M+KSMNaVGOb28EtpPR3MYUHks=; b=P2JoWM7GaGN0hyn0oCiEM5v61jXyY0X3/auAiXePAUu8x++dHWEC+VMy7qoGyFaN2A 3G3XTaMELc4Dk1kjSFkTv+SmiOgNT5Eindtsscji88rGsBSUjaukmGDLmKsPW0pcHnUK 8iDasaeCHfdrIAvS/ox3jo9AhFwofWgkXck3ouUCUJ+nbr6xZsQfckWssKv8+BnsZWhS JyksuZ1B0hePoHcnnnLhTdV7mVeF+WAU/MavLvGYVj5TaOgZlewCpkQ+6dAxLnK/9PWi rBd0EIr+PlrbsfL1847aDeB31BmcLDo3GtGwXp9OUQPMnrDI9GtdMWpp0+HBaat3Kxhg kYiw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j12si43890801pgb.14.2019.04.17.04.40.49; Wed, 17 Apr 2019 04:41:05 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731743AbfDQLjd (ORCPT + 99 others); Wed, 17 Apr 2019 07:39:33 -0400 Received: from mail-lf1-f65.google.com ([209.85.167.65]:40264 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726695AbfDQLjd (ORCPT ); Wed, 17 Apr 2019 07:39:33 -0400 Received: by mail-lf1-f65.google.com with SMTP id a28so18630991lfo.7 for ; Wed, 17 Apr 2019 04:39:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=iaQ9dMyM/mdqTRSrB7M+KSMNaVGOb28EtpPR3MYUHks=; b=gkkKoiBGSWKA8qYIpb5+KkasisXTEu5wnh7exbYX6E7z7fGltlhNFE+i4XvCZGBSgg twOZpwUw6KYTrmEtu1Yeo8wFJkbnm9RqHkMInYzYbZiOeVVYM/ZI42+a7gWenTpTlSl7 +zCT26jWp5SnpCjA0QY1oTpbjOUZVgb68vUFbwW/LnooE+IMMROx9zBkE5q2Gsmi7DDV I8MaOkdoMt4cP8Gfi57XgorjA7mRAqNJVxsMHmBYnf/wxK2HvHGm/6WLa+w2+TWIcJDs jxY7JiSwnhcBdT8aJUwVURpTpqnKv5IvTZ5b8NNq5Modi01x6Ut4sd1+Mo+4493VnNQP B1CQ== X-Gm-Message-State: APjAAAXU51yQVW6xzOfsdpuZ2AVHWPjVy7AZ9lwOb+aBpWXWBM4szP7e CvyJEcyPTUfIafK3SA07TZ8= X-Received: by 2002:a19:c51a:: with SMTP id w26mr45298465lfe.59.1555501171462; Wed, 17 Apr 2019 04:39:31 -0700 (PDT) Received: from xi.terra (c-74bee655.07-184-6d6c6d4.bbcust.telenor.se. [85.230.190.116]) by smtp.gmail.com with ESMTPSA id f18sm10782549lja.91.2019.04.17.04.39.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 Apr 2019 04:39:30 -0700 (PDT) Received: from johan by xi.terra with local (Exim 4.91) (envelope-from ) id 1hGiue-00040A-Fu; Wed, 17 Apr 2019 13:39:37 +0200 Date: Wed, 17 Apr 2019 13:39:36 +0200 From: Johan Hovold To: Alex Elder Cc: Greg KH , Madhumitha Prabakaran , devel@driverdev.osuosl.org, greybus-dev@lists.linaro.org, elder@kernel.org, johan@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [greybus-dev] [PATCH v2] Staging: greybus: Cleanup in greybus driver Message-ID: <20190417113936.GB2520@localhost> References: <20190416221318.21161-1-madhumithabiw@gmail.com> <20190417062518.GA23076@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 17, 2019 at 06:19:50AM -0500, Alex Elder wrote: > I'm not completely sure about the inline function, but on the no blank > lines thing (and many other minor issues) "checkpatch.pl" is to blame. > There are lots of examples of issues that checkpatch points out that are > matters of opinion and not hardened kernel style rules. > > We try to encourage people to get involved with kernel development by > fixing minor problems, and we tell them a good way to find them is > by running checkpatch and "fixing" what it reports. Unfortunately, > it is often things of this type, and reviewers balk and say "no, > please leave it," and the poor new person has a bad first experience. > > I *like* "checkpatch.pl". And the fact that it can point out some > of these sorts of things is great. But it would be nice if certain > types of problems (like multiple blank lines, or lines that are 81 > characters wide for example) would only be reported when a "--strict" > option or something were supplied. The problem is that --strict is enabled by default when running checkpatch on code in staging (and net). And it has all sorts of weird tests (prefixed as "CHECK" rather than "WARNING") to catch everyone and their mom's pet peeve. I don't think the intention ever was that all those should be "fixed", but this appears to be where this checkpatch mission creep comes from (and we're now seeing --strict being used on code outside of staging too). IMO we're setting a bad example for new contributers by accepting such changes by default. Blindly trusting a tool is not how kernel development works, but that seems to be the message currently sent. Johan