checkpatch: report the right line # when using --emacs and --file
authorJoe Perches <joe@perches.com>
Wed, 9 Sep 2015 22:37:39 +0000 (15:37 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 10 Sep 2015 20:29:01 +0000 (13:29 -0700)
commit7d3a9f673e1bdb45f86d15a67e230e4a9b050850
treea4893fb6092cc84ca97eebb4ef12249b22ab37d1
parent100425deeb7586c9d401f787aeab3b43a4c6a0c6
checkpatch: report the right line # when using --emacs and --file

commit 34d8815f9512 ("checkpatch: add --showfile to allow input via pipe
to show filenames") broke the --emacs with --file option.

Fix it.

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