]> Git Repo - linux.git/commit
checkpatch: warn on uses of __constant_<foo> functions
authorJoe Perches <[email protected]>
Thu, 3 Apr 2014 21:49:14 +0000 (14:49 -0700)
committerLinus Torvalds <[email protected]>
Thu, 3 Apr 2014 23:21:13 +0000 (16:21 -0700)
commitfbdb8138cf0c75a0cf21991ca05ecc9fdff6e070
treeafc2cad92df13ce14f72908f56fd2264637ce805
parent2435880fe5cd51cd73c403aa4c07eadc3de799db
checkpatch: warn on uses of __constant_<foo> functions

Emit a warning when using any of these __constant_<foo> forms:

__constant_cpu_to_be[x]
__constant_cpu_to_le[x]
__constant_be[x]_to_cpu
__constant_le[x]_to_cpu
__constant_htons
__constant_ntohs

Using any of these outside of include/uapi/ isn't preferred as using the
function without __constant_ is identical when the argument is a
constant.

Signed-off-by: Joe Perches <[email protected]>
Cc: Andy Whitcroft <[email protected]>
Cc: Simon Wunderlich <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
scripts/checkpatch.pl
This page took 0.040852 seconds and 4 git commands to generate.