From: imre_palik@yahoo.co.uk (palik imre) Date: Fri, 13 Mar 2015 13:09:29 +0000 (UTC) Subject: CHECK: Alignment should match open parenthesis In-Reply-To: <20150313124332.GA22044@opentech.at> References: <20150313124332.GA22044@opentech.at> Message-ID: <1158748566.6782126.1426252169494.JavaMail.yahoo@mail.yahoo.com> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org On Friday, 13 March 2015, 13:43, Nicholas Mc Guire wrote: > On Fri, 13 Mar 2015, palik imre wrote: > > > > Sorry for the silly question, but I have some issues with this checkpatch.pl warning. > > > > I mean Documentation/CodingStyle says: > > > > Outside of comments, documentation and except in Kconfig, spaces are never > > used for indentation, and the above example is deliberately broken. > > > > But checkpatch.pl claims I should align to open parentheses. These two things seem to be contradictory to me. Could somebody clarify this? > > > > leading tabs *followed* by spaces to align parameters to a function are fine The emacs settings in Documentation/CodingStyle seem to contradict to you, as it is set up to use c-lineup-arglist-tabs-only > but for basic block indentation you never use spaces. so > > func(param1, > param2); > > would be allowed but not > > if (something) { > if(something else) { > > HTH > > thx! > hofrat