Hi Chetan, Aruna, Rameshbabu, Daniel,

Thanks very much for all your time and kind advices!

Best Regards
Nan Xiao

On Mon, Aug 3, 2015 at 6:27 PM, Daniel Baluta <daniel.baluta@gmail.com> wrote:
On Mon, Aug 3, 2015 at 6:35 AM, Nan Xiao <xiaonan830818@gmail.com> wrote:
> Hi all,
>
> I am just wondering whether there is a script/tool which format source code
> according to kernel coding rule automatically? Such as tab, space, brace,
> etc.


Try scripts/Lindent from the kernel source tree.

Daniel.