From: Joe Perches Date: Thu, 3 Apr 2014 21:49:14 +0000 (-0700) Subject: checkpatch: warn on uses of __constant_ functions X-Git-Tag: v3.15-rc1~106^2~90 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fbdb8138cf0c75a0cf21991ca05ecc9fdff6e070;p=pandora-kernel.git checkpatch: warn on uses of __constant_ functions Emit a warning when using any of these __constant_ 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 Cc: Andy Whitcroft Cc: Simon Wunderlich Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed