From: Joe Perches Date: Thu, 3 Apr 2014 21:49:24 +0000 (-0700) Subject: checkpatch: improve octal permissions test speed X-Git-Tag: v3.15-rc1~106^2~81 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=515a235ef9bcd31faa672740720936b22fa99c0e;p=pandora-kernel.git checkpatch: improve octal permissions test speed The current octal permissions test is very slow. When patch ("checkpatch: add checks for constant non-octal permissions") was added, processing time approximately tripled. Regain almost all of the performance by not looping through all the possible functions unless the line contains one of the functions. Signed-off-by: Joe Perches Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed