]> git.baikalelectronics.ru Git - kernel.git/commit
checkpatch: fix --fix use with a patch of multiple files
authorJoe Perches <joe@perches.com>
Thu, 16 Apr 2015 19:44:50 +0000 (12:44 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 17 Apr 2015 13:03:58 +0000 (09:03 -0400)
commit98e5c05366e4c8a0ef5b19060899f51fa05a460b
treece7e14a8f0cf95104cbd18f99013c696b1108593
parentca52ab01603153470b00633f1c7da7409feeb11c
checkpatch: fix --fix use with a patch of multiple files

If a patch touches multiple files, the --fix and --fix-inplace option
doesn't keep the proper line count and makes the new patch file not able
to be applied via bad offset line numbers when lines are added or deleted
by the --fix option.

Dunno how that extra backslash snuck in there.

Signed-off-by: Joe Perches <joe@perches.com>
Cc: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl