checkpatch: emit an error when there's a diff in a changelog
authorJoe Perches <joe@perches.com>
Thu, 25 Jun 2015 22:03:27 +0000 (15:03 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 26 Jun 2015 00:00:42 +0000 (17:00 -0700)
commite518e9a59ec37a323b0f4785e2311a1ec1433c6d
tree854f8e6f053b56d06a071dc129732c989f74317e
parent5a6d20ce19b770c9946281783614294b3f570ab8
checkpatch: emit an error when there's a diff in a changelog

People often put diff snippets in changelogs.  This causes problems
when one tries to apply a file containing both the changelog and the
diff because patch(1) tries to apply the diff which it found in the
changelog.

Warn once when what seems to be a diff snippet in the changelog exists.

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