]> 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)
commitbc1c7ca82d651325c60496223169dbf92bae4719
treef1afe23858fb53702ee9a30f0fa2740e60efea25
parent82d85640d724b651d75e6b210f5023c3fa1bcf3a
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