checkpatch: improve TYPECAST_INT_CONSTANT test message
authorJoe Perches <joe@perches.com>
Fri, 26 Feb 2021 01:21:54 +0000 (17:21 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 26 Feb 2021 17:41:04 +0000 (09:41 -0800)
commit0972b8bfe0de8c0f05796aceb8f2428b0efb20cd
tree6a3dae50dd7396af95ec5de023c1fcc6c114fe07
parentadb2da82fcf99b6006fbaf3e3cd12649365fc967
checkpatch: improve TYPECAST_INT_CONSTANT test message

Improve the TYPECAST_INT_CONSTANT test by showing the suggested conversion
for various type of uses like (unsigned int)1 to 1U.

Link: https://lkml.kernel.org/r/ecefe8dcb93fe7028311b69dd297ba52224233d4.camel@perches.com
Signed-off-by: Joe Perches <joe@perches.com>
Cc: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl