Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp399650ybe; Thu, 12 Sep 2019 23:00:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqyB+CjwmUlkldT3Ma3IWxQXLRFuLZQGIchbZzgS8X9wzddKy6B7rFQMpqw/kUixVxRqcV7O X-Received: by 2002:a05:6402:7d1:: with SMTP id u17mr45825164edy.132.1568354454238; Thu, 12 Sep 2019 23:00:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568354454; cv=none; d=google.com; s=arc-20160816; b=0cMuskF4haq0XX+YB03ICkejsSyH34f/H/IPbkf39qqXJBrpLegHOnK+zUb5M6B+kT PHeG8JF5AFvItstyZ0Mh65EM0jzbEir+2q4KJPUZhR2qQMhTXHTCg6sTI4y7bwDeDQCf 0JIDGqReq/LflvGNrIt3ZU4xJFcjXf7oJQ1q2q6gcBKsnfl2SJH0N69q0+DLt+NEots5 VSg2UO7F6bS6rCizt/GZ41Rj6manj33i7VPF1r9FdmTb1+n2gcKecofFMaC2ADl03HPr oOy8gzjjhweNEVb1FcVgv9eNXTYo9CmA3j8INPyxsTMvo21JXuZqLL4mR56rsWkqbTIJ 7jpQ== 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:dkim-signature; bh=/EfoqZLd1KhuSSe8ANxUxbTo88SadP356qgf3PW516s=; b=vpwqprs4RuZW3tqY2JTAWzdGDrMT0buqmRdCZcYxO8W8T1XT35J4IJ13VfQceq2kr/ axf5+smmuE8aPPF4ZdXMeUE3BDq9AVa+NGn/G4v0t2W5ftufYqgupuK9TZqmGwkvvE3N PDx5pji7CxdrdQ1x4uJpgsY2dcKcTpuyMB+gayGUiwMhGsngUQFIuXXeBTf7KeobKXkc +EUxNTmTtqdTd54x01N2LjDvNEODnwancWD6oZLS50eR9kHGDGtrWzzW/FnxGm2DVliy FSC8D1Qi0R+3bo3O3sftnZe7HpFw+0WpQ9w6bmFZmGbRGRHos+nuB0S+70jMr5XfS7S+ eQig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=CljD4YMO; 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 57si17195704edz.280.2019.09.12.23.00.28; Thu, 12 Sep 2019 23:00: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 header.i=@kernel.org header.s=default header.b=CljD4YMO; 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 S1727182AbfIMFAh (ORCPT + 99 others); Fri, 13 Sep 2019 01:00:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:45028 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725385AbfIMFAg (ORCPT ); Fri, 13 Sep 2019 01:00:36 -0400 Received: from localhost (unknown [84.241.200.49]) (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 01BAA20717; Fri, 13 Sep 2019 05:00:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1568350836; bh=yHqpSeWaKdWHTKdxmQpNg5pLxh28uD8FY7G7RDJZJ/Y=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=CljD4YMOdbV28FTif1XLxmaHj1ZdQT/ts0RyBESTYvHflGm7l5aP0S7mF1I9mlBqE YBX/SmZmIV61gJbWliZToRYsIEX6EhLRBArA0u82XFHM2IaLxKc0IrEZOEqNNpe6no QUFTwH/A9myiKrqb3UXL2Jkqu+dmdcpOSlG0LO3Y= Date: Fri, 13 Sep 2019 06:00:31 +0100 From: Greg KH To: "Aneesh Kumar K.V" Cc: Dan Carpenter , Dan Williams , Dave Jiang , linux-nvdimm@lists.01.org, Vishal Verma , linux-kernel@vger.kernel.org, bpf@vger.kernel.org Subject: Re: [Ksummit-discuss] [PATCH v2 3/3] libnvdimm, MAINTAINERS: Maintainer Entry Profile Message-ID: <20190913050031.GB128462@kroah.com> References: <156821692280.2951081.18036584954940423225.stgit@dwillia2-desk3.amr.corp.intel.com> <156821693963.2951081.11214256396118531359.stgit@dwillia2-desk3.amr.corp.intel.com> <20190911184332.GL20699@kadam> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 13, 2019 at 07:41:55AM +0530, Aneesh Kumar K.V wrote: > On 9/12/19 12:13 AM, Dan Carpenter wrote: > > On Wed, Sep 11, 2019 at 08:48:59AM -0700, Dan Williams wrote: > > > +Coding Style Addendum > > > +--------------------- > > > +libnvdimm expects multi-line statements to be double indented. I.e. > > > + > > > + if (x... > > > + && ...y) { > > > > That looks horrible and it causes a checkpatch warning. :( Why not > > do it the same way that everyone else does it. > > > > if (blah_blah_x && <-- && has to be on the first line for checkpatch > > blah_blah_y) { <-- [tab][space][space][space][space]blah > > > > Now all the conditions are aligned visually which makes it readable. > > They aren't aligned with the indent block so it's easy to tell the > > inside from the if condition. > > > I came across this while sending patches to libnvdimm subsystem. W.r.t > coding Style can we have consistent styles across the kernel? Otherwise, one > would have to change the editor settings as they work across different > subsystems in the kernel. In this specific case both clang-format and emacs > customization tip in the kernel documentation directory suggest the later > style. We _should_ have a consistent coding style across the whole kernel, that's the whole reason for having a coding style in the first place! The problem is, we all have agreed on the "basics" a long time ago, but are now down in the tiny nits as to what some minor things should, or should not, look like. It might be time to just bite the bullet and do something like "clang-format" to stop arguing about stuff like this for new submissions, if for no other reason to keep us from wasting mental energy on trivial things like this. thanks, greg k-h