[lkml]   [2014]   [Apr]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH 2/2] checkpatch: skip directories in file checking mode
On Tue, 2014-04-08 at 08:25 -0500, Rob Herring wrote:
> From: Rob Herring <>
> Running on a list of files using a wildcard will exit if
> a directory is encountered. For example:
> $ scripts/ -f arch/*
> diff: arch/alpha/null: No such file or directory
> The correct operation is arch/Kconfig should be checked. Fix this by
> skipping files which are not regular files.


You could make the same argument that it should
skip .o files if you fed it to checkpatch on the
command line.

I think the correct thing is to feed only files
you want scanned to checkpatch.

git ls-files arch/ | xargs ./scripts/ -f

 \ /
  Last update: 2014-04-08 17:21    [W:0.048 / U:8.232 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site