checkpatch: add --strict preference for #defines using BIT(foo)
authorJoe Perches <joe@perches.com>
Wed, 10 Dec 2014 23:51:57 +0000 (15:51 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 11 Dec 2014 01:41:12 +0000 (17:41 -0800)
commit0ab9019184f1de09409434204cb8fbffe8286e00
treef1afe23858fb53702ee9a30f0fa2740e60efea25
parentf512357646268451da0d7e1e0100c55df6c8cea6
checkpatch: add --strict preference for #defines using BIT(foo)

Using BIT(foo) and BIT_ULL(bar) is more common now.  Suggest using these
macros over #defines with 1<<value.

Add a --fix option too.

Signed-off-by: Joe Perches <joe@perches.com>
Cc: David Miller <davem@davemloft.net>
Cc: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl