Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1935976ybe; Thu, 12 Sep 2019 01:46:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqxqkn/i0JHMcuUjJh/jb27MkWhIEUc2p/d3T8TXUe9+d8kotqXMxKbvL0cPfh6Oac9wpOhL X-Received: by 2002:a05:6402:7d1:: with SMTP id u17mr40624785edy.132.1568278015242; Thu, 12 Sep 2019 01:46:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568278015; cv=none; d=google.com; s=arc-20160816; b=ZEE2fxOBdQgrMJPGUZIt/Ot4z3ZlxpDnUtvl2UIwYssTVA2cHu9EaIr6pFKWUj6GMd d6DQqkZ8h8k4fTlQFwwJxdRnhX9xPNZd5YpteAOpQoEK3Dv0ximPFlJAjVZkUUKr1vr9 UNNoKsmIowKBdao31Wo/5J9rvP2syuQaX89GglXPKSdJorh67YOHi1tAnqEFby2P+/VE dhh8kxiEh4XD95dUeG9OR0o03RK/syjlolYii1e9J5v6ngCedGjGuSs9va0CbKOFnxY3 pqrDW7Yr7mXPdv+OE1+Fotv9MNS+CuHZ8LBoFbeezKXYH4OYfbEqOz02Rf8/8K8OcD0G TgEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=lNrIuUYLDbT7zQ5324Ye/I2/Q3u9VnMzuPI9RQmmH+s=; b=A9V0qjOxTqhtmkIBWqSYQXzCoB3tzSAh2qBNaYQXLZ7yj2M5tCRXDVep+d1Un+DVX4 YcnTxkzzSO7kxoS8SOi5kaKFybwEwLadpw6XiZHH8DVzNpE781U8e0DpnmQoYxGEuUQR MsfWkoxy7Vqge/0KzC9Yl3xHyvbH1/4c22N5g7+lF2/IFrqFZRqmhwNDyLJwXgKykpnm v7v/3MHyHt0stffNnDhc6gA42J+drcA7MKVZyd59V1qaKyKm0CXu4gRWhLjEuy+jxcjy Ho5pTWq7mcK2efc0rvCJ4FTGGSlwGcMknHTpSmWf7s2GkaMWMaAF+F+iCmlS7t0j2ZGA 1faw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=HQvte52r; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y11si4444262edm.302.2019.09.12.01.46.31; Thu, 12 Sep 2019 01:46:55 -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=@gmail.com header.s=20161025 header.b=HQvte52r; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730409AbfILImU (ORCPT + 99 others); Thu, 12 Sep 2019 04:42:20 -0400 Received: from mail-lf1-f67.google.com ([209.85.167.67]:40491 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730049AbfILImT (ORCPT ); Thu, 12 Sep 2019 04:42:19 -0400 Received: by mail-lf1-f67.google.com with SMTP id d17so773683lfa.7 for ; Thu, 12 Sep 2019 01:42:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=lNrIuUYLDbT7zQ5324Ye/I2/Q3u9VnMzuPI9RQmmH+s=; b=HQvte52rfMzXkfmg2dy9fX6VpDW3IFfdlGC05XQ8K1w8RM25pVju8tCDde4KUH0v1a 1kcdT7UH/73YhhPccKsaGWDyC+Sz+Wb6IX/AHz34Gb0cW2pCuGQRxZhr8jDVO1REPKTg jwEpA+OPl7mOutzaxAJv2kNWbY5ouhp4RVMwiy22nCjmfGZ+3EozFEdOLX9t+9uGjz3t bBEXwt2yJqGwzYLFaPWKmr6RdcKpM7iziqyRJYi127B5fZCPWJI/JZSJ0wUocRLM5+dS Gc+Gp17oJ9b/iyPdk67fWEsZUWN8K4JROeX14wCj6dt/srxxNI6pKTv+Ztoedr/7VPPN Ba9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=lNrIuUYLDbT7zQ5324Ye/I2/Q3u9VnMzuPI9RQmmH+s=; b=UeirZG+/miPkV2ILYNxvEtQsekcYJPHnEIQ4IZLm+XPhTc/TKfUc4xx69xBpkNX46u aAQ1y9tJtJT3GdpIXRad/XS1gUdEXdhDW76qQQjEuCXYwvTKwYvSQU+jeBghlWq59X7Y oQM8P+9BJs3HB/xcfiFq60cJMZ0Vmq6LZ1Wj6SQuxtEXf0R5Uxml/T5iOHF76XwbDkr6 zIsMJ3zbjSbJFiNG+oriBlAU6UiYs3C1U1Qt/TIHZ4UZAfw4PK8iYDEJjt76r7YV9mT2 eakQF1k44DLcp3IFhtAxXhX4CrzIKQbLYbccEAZUthe83oUlC95GCoa12PD1nexrERHm JqwQ== X-Gm-Message-State: APjAAAV6harkhsHCNpEItgFYXn1XMhZAmgUyzRwTujMBI30oCX4e6OZg VizP9ciJzhC7L89j7EHHo91axQrB7gAxi21OC/A= X-Received: by 2002:ac2:4351:: with SMTP id o17mr1127056lfl.131.1568277737781; Thu, 12 Sep 2019 01:42:17 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Miguel Ojeda Date: Thu, 12 Sep 2019 10:42:06 +0200 Message-ID: Subject: Re: [PATCH 00/13] nvdimm: Use more common kernel coding style To: Joe Perches Cc: Dan Williams , linux-nvdimm , Dan Carpenter , Vishal Verma , Dave Jiang , Keith Busch , Ira Weiny , "Oliver O'Halloran" , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 12, 2019 at 10:15 AM Joe Perches wrote: > > I am adding Miguel Ojeda to the cc's. Thanks Joe! > Of course you are welcome to try it, but I believe that > clang-format doesn't work all that well yet. > > It's more a work in progress rather than a "standard". > > I believe you'll find that the patch series I sent > ends up with a rather more typical kernel style. > > I suggest you try to apply the series I sent and then > run clang-format on that and see the differences. Indeed, it is not there just yet. There are a few differences w.r.t. the kernel style that aren't supported yet. However, for block/batch conversions, it is very useful. Luckily, one of the biggest ones (the consecutive macros alignment, and we have a lot of them given this is C and a kernel) is going away with LLVM 9 which is about to be released next week. > Ideally one day, something tool like clang-format > might be locally applied by every developer for their > own personal style with some other neutral style the > content actually distributed. If that day comes, I hope we can all agree to a single format and apply it everywhere as other major projects have done. I think agreeing to a given style is much, much easier for any of us when formatting is fully automatic -- because at that point you don't need to spend mental cycles (and memory!) on it. :-) If I had to guess, I would say the path forward will start with some subsystem maintainers starting to apply clang-format systematically on their trees. That is why I think it is very useful that Dan tries it out and let us know his impressions. Cheers, Miguel