checkpatch: add --strict warning for c99 fixed size typedefs : int<size>_t
authorJoe Perches <joe@perches.com>
Thu, 25 Jun 2015 22:02:49 +0000 (15:02 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 26 Jun 2015 00:00:41 +0000 (17:00 -0700)
commite6176fa4728fb6df4f66c3e9c08736c369e71f75
tree97f9337a285c00467e8204c3958d9dc5bf26e37e
parentcb426e99ff9225e94fb56bd4c5cfcce8b78a3904
checkpatch: add --strict warning for c99 fixed size typedefs : int<size>_t

Using declarations like u_int16_t in kernel code is not preferred.

Suggest the kernel sized types instead of the c99 types when not in the
uapi directory.

Add a $typeC99Typedefs variable for the types to check and neaten the
other typedef variables.

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