Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2105185ybt; Fri, 3 Jul 2020 00:33:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyioRpk0vpEvhWbJ6kGYG12z5mKBPtyH43wVnRm4+889Y+sV0B9bRM54zhcWt+L9g13ogkn X-Received: by 2002:a17:906:f183:: with SMTP id gs3mr29412674ejb.361.1593761619901; Fri, 03 Jul 2020 00:33:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593761619; cv=none; d=google.com; s=arc-20160816; b=QVsmkvis6CTApIZ3quvN/dpKmpWr9ujXcVHb/DWDshEuZobfPz+66Lqtdl6uklhKT7 ZvmiWMhzKKaarhddqO8/uLbwzzAUWTJ1gtEc3JBi0KI3raY/6N7ZGzWMxFwssLU9La1I /oBY0/MrseH7pOzIFY/UPXde4Jv4cIBEZIjPWEWTbZlCGCoPPupAadG0P8S3q8DSytPL PHeKUJ6QzoB6/WJ6H6c2w9mY2MLNh0Ew5f1/nQ+ZCYOZJDrZR/VMAP0HAlan3xxYZXZi DJsaiDajVZ34aPbzFJ0NtU3Y2IUeimVCF8L29TbzB8zd4aqrXI41mwfcGKruwgMa+WPW Q/sQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=JySkV+jaMaBi53EvsBaH0nrrvi4RjY5RL+Gc+Q1kKYU=; b=Qn//WrF58C94TTMCNMeTC943dMDMc9yOrmbvK84ci+rIyIQtwcCSonbMixKMadBJso QbN8/TRf5AYIBs1e4Koh8rUXRH8jzTRwxCU/dduCOD57j30eZ+I2CsBZhHQbT8UkduF9 SvKtRrjJKj8qrIgXu1f3MiPlM60tVxL3DkvzVNYyfClwgQzEK3ZyH9mtQY87ciM3G/Kx wMEUyrYxOtt5PXDhP8ozG21bwxH2E+uRk9S5oma7T4FJ22Q8nZLMF9S1Z89MUSRidiky oWpswe+T87wnSE4bG8cRSENW4py33ROhxtH+hMolnpnYcIN7G/QIjR6XGbnXqytfaNG7 mKYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kdrag0n.dev header.s=fm1 header.b=TR7n4591; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=fsGfWB7g; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=kdrag0n.dev Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gx2si7352715ejb.706.2020.07.03.00.33.17; Fri, 03 Jul 2020 00:33:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kdrag0n.dev header.s=fm1 header.b=TR7n4591; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=fsGfWB7g; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=kdrag0n.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725984AbgGCHbF (ORCPT + 99 others); Fri, 3 Jul 2020 03:31:05 -0400 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]:45823 "EHLO wout3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725648AbgGCHbE (ORCPT ); Fri, 3 Jul 2020 03:31:04 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 77DA6A86; Fri, 3 Jul 2020 03:31:03 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Fri, 03 Jul 2020 03:31:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kdrag0n.dev; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s=fm1; bh= JySkV+jaMaBi53EvsBaH0nrrvi4RjY5RL+Gc+Q1kKYU=; b=TR7n4591CtsMVBC3 0u4ZuGMFp/+YByjzIk84qhQn9zUzTZMc6kPZkUwg9psQlPXV6ttr1412SK1TFIQl IvhWDCbGUrQu8bMmS2X/RxGn/m/rcMk+F3SX0R6hC3tyP63l2dw2yJR30qTlrXXJ /EfVi4Y7k2xEM/Prndb8YdDxdRU91QLHBt7bd77HIfcA9gkHc3YyyuXVMpqDOmIl aEESaJxv7X8zZKxCw85fZf8DE4dNrULTQIhhuIWADPd10Lm4ccPtBZ/svnvr0BVO 97lkYnpkc7Hu3lfWfnkp/AeR+I93hD7ewCqL78T1VewbXcteJhw0LplGPaxNiJwt 97wIgg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=JySkV+jaMaBi53EvsBaH0nrrvi4RjY5RL+Gc+Q1kK YU=; b=fsGfWB7g1K3lv7XMDpRAu9T7HwdIRDW0S9VF/gszCcXrqgz3FhztCReJG Xyhp2RaL3HiVI7SrhZ7q+Rq8st4NNxFLLmgiRfxKwZWgAMybFNHrOvGv9MBLtfDX fVX67lyHZ4FKMOQiWWKbTywiDs0bS+nIwh3qlKoTG+REjtWkHrPa2v2YyYmkx7SB TNuCSqnx8cbAAx5OJOHob5m8ie4f3fIB0t46X9tFK15FHH27ZAJoGS97cAdOvlP4 GgB0rL5YYjM/3MnVoDUxfiP4/5Yt9OmbW/xLFKDoikXEJsFQmOSlZXK1FGO1hXYB FKRnbwHJwVXueyRL8ii2am/U/CpGg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedrtdehgdduudelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkfgjfhgggfgtsehtufertddttddvnecuhfhrohhmpeffrghnnhih ucfnihhnuceouggrnhhnhieskhgurhgrghdtnhdruggvvheqnecuggftrfgrthhtvghrnh epheeujeffgfdvieduvdeltedvteelueegheegleeggeegveefieevfeeitdfhledvnecu kfhppeejfedrvddvhedrgedrudefkeenucevlhhushhtvghrufhiiigvpedtnecurfgrrh grmhepmhgrihhlfhhrohhmpegurghnnhihsehkughrrghgtdhnrdguvghv X-ME-Proxy: Received: from pinwheel.localnet (c-73-225-4-138.hsd1.wa.comcast.net [73.225.4.138]) by mail.messagingengine.com (Postfix) with ESMTPA id E239E3060066; Fri, 3 Jul 2020 03:31:01 -0400 (EDT) From: Danny Lin To: Miguel Ojeda Cc: Andrew Morton , Andy Whitcroft , Joe Perches , Jonathan Corbet , Linux Doc Mailing List , linux-kernel Subject: Re: [PATCH] editorconfig: Add automatic editor configuration file Date: Fri, 03 Jul 2020 00:31:00 -0700 Message-ID: <16043769.gqpzGLO8mG@pinwheel> In-Reply-To: References: <20200703001212.207565-1-danny@kdrag0n.dev> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thursday, July 2, 2020 at 10:38 PM, Miguel Ojeda wrote: > Hi Danny, > > On Fri, Jul 3, 2020 at 2:16 AM Danny Lin wrote: > > +[*] > > +charset = utf-8 > > +end_of_line = lf > > While UTF-8 and LF are probably OK for all files, I am not 100% sure about: > > +insert_final_newline = true > > +indent_style = tab > > +indent_size = 8 > > for other languages and non-code files we may have around. Perhaps it > is best to avoid `[*]` unless we are sure? Most of the other exceptions can be accomodated for with more specific rules below the base [*] section. I just went through most of the kernel's files and added rules for the vast majority of the exceptinos to the 8-column tab indent style, though there are still some that haven't been covered. It looks like some types of files lack consistent indentation, e.g. arch/mips/*/Platform and some shell scripts in scripts/ tools/testing/ selftests/ftrace/test.d/kprobe/*.tc. There are also some files that were highly inconsistent even within themselves (e.g. drivers/gpu/drm/amd/ amdkfd/cwsr_trap_handler_gfx*.asm), so setting indentation settings to something sane by default doesn't make them any worse. After all, no automated code style tooling is perfect and there will be edge cases where it breaks down. That being said, I think most of the exceptions should be taken care of now; please feel free to suggest a better way to deal with these. > > Cheers, > Miguel