diff options
| author | Joe Perches <joe@perches.com> | 2014-04-03 14:49:14 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-04-03 16:21:13 -0700 |
| commit | fbdb8138cf0c75a0cf21991ca05ecc9fdff6e070 (patch) | |
| tree | afc2cad92df13ce14f72908f56fd2264637ce805 /scripts/patch-kernel | |
| parent | checkpatch: add checks for constant non-octal permissions (diff) | |
| download | linux-fbdb8138cf0c75a0cf21991ca05ecc9fdff6e070.tar.gz linux-fbdb8138cf0c75a0cf21991ca05ecc9fdff6e070.zip | |
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 <joe@perches.com>
Cc: Andy Whitcroft <apw@canonical.com>
Cc: Simon Wunderlich <sw@simonwunderlich.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions
