]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6995bcaeff111746f737473e01d6e86b4478dd3f
treef1afe23858fb53702ee9a30f0fa2740e60efea25
parent7e23eecc196f834cf729d39215e5961cbacf533b
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