]> 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)
commite07dd9b228bf4a6ba0a3e8d34909e7b62fe9323a
treece7e14a8f0cf95104cbd18f99013c696b1108593
parentb617330360272cb405fff0185197032fc5d89909
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