Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754488AbbLTMwH (ORCPT ); Sun, 20 Dec 2015 07:52:07 -0500 Received: from mail-wm0-f52.google.com ([74.125.82.52]:33264 "EHLO mail-wm0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753647AbbLTMwE (ORCPT ); Sun, 20 Dec 2015 07:52:04 -0500 MIME-Version: 1.0 In-Reply-To: <1450505768.3430.24.camel@perches.com> References: <5674C068.9000809@infradead.org> <1450505768.3430.24.camel@perches.com> Date: Sun, 20 Dec 2015 20:52:03 +0800 Message-ID: Subject: Re: Indent issus in kernel module development From: chunguang qu To: Joe Perches , linux-kernel@vger.kernel.org Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1259 Lines: 38 I tried it. Not worked unfortunately,. ```bash $ ~/share/linux/scripts/checkpatch.pl --fix --types=spacing testcompletion.c total: 0 errors, 0 warnings, 0 lines checked testcompletion.c has no obvious style problems and is ready for submission. NOTE: Used message types: SPACING ``` 2015-12-19 14:16 GMT+08:00 Joe Perches : > On Sat, 2015-12-19 at 13:50 +0800, chunguang qu wrote: >> Yes, I just tried `scripts/Lindent` and it has the same problem. >> >> I had compared the source of `Lindent` with `-linux` option of >> `indent` long time ago, there's seems no major difference. >> So i used `indent -linux ` above. >> >> Thanks for your advice about `emace`, but `vi` is my only editor for >> dozens of years. > > Try: > > $ ./scripts/checkpatch.pl --fix --types=spacing > -- [Kevin Q (ChunGuang Qu)](mailto:quchunguang@gmail.com) [public key](http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x5B06DCA77BEF043B) @sdu.edu.cn @gnu.org @mit.edu @grazestar.com @jolijolie.cn -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/