define first set of BIT* macros
authorJiri Slaby <jirislaby@gmail.com>
Fri, 19 Oct 2007 06:40:31 +0000 (23:40 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Fri, 19 Oct 2007 18:53:42 +0000 (11:53 -0700)
commitd05be13bcc6ec615fb2e9556a9b85d52800669b6
treee75cee7b28e2a22d94f29fdd44746ea14f4fc6b8
parent5159f40742508e03aed4273a9b3ef06f4e71929f
define first set of BIT* macros

define first set of BIT* macros

- move BITOP_MASK and BITOP_WORD from asm-generic/bitops/atomic.h to
  include/linux/bitops.h and rename it to BIT_MASK and BIT_WORD
- move BITS_TO_LONGS and BITS_PER_BYTE to bitops.h too and allow easily
  define another BITS_TO_something (e.g. in event.c) by BITS_TO_TYPE macro
Remaining (and common) BIT macro will be defined after all occurences and
conflicts will be sorted out in the patches.

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/asm-generic/bitops/atomic.h
include/asm-generic/bitops/non-atomic.h
include/linux/bitops.h
include/linux/types.h