diff options
author | Jiri Slaby <jirislaby@gmail.com> | 2007-10-19 02:40:35 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-19 14:53:42 -0400 |
commit | 93043ece030af58529e3e1367502461d265ab4e2 (patch) | |
tree | 48add1b72e3ebd07866089c88ad6122422f1da55 /include | |
parent | 7b19ada2ed3c1eccb9fe94d74b05e1428224663d (diff) |
define global BIT macro
define global BIT macro
move all local BIT defines to the new globally define macro.
Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Kumar Gala <galak@gate.crashing.org>
Cc: Dmitry Torokhov <dtor@mail.ru>
Cc: Jeff Garzik <jeff@garzik.org>
Cc: James Bottomley <James.Bottomley@steeleye.com>
Cc: "Antonino A. Daplas" <adaplas@pol.net>
Cc: Russell King <rmk@arm.linux.org.uk>
Acked-by: Ralf Baechle <ralf@linux-mips.org>
Cc: "John W. Linville" <linville@tuxdriver.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-arm/arch-ixp4xx/io.h | 3 | ||||
-rw-r--r-- | include/asm-mips/ip32/crime.h | 3 | ||||
-rw-r--r-- | include/asm-mips/ip32/mace.h | 3 | ||||
-rw-r--r-- | include/linux/bitops.h | 1 | ||||
-rw-r--r-- | include/video/sstfb.h | 1 | ||||
-rw-r--r-- | include/video/tdfx.h | 2 |
6 files changed, 1 insertions, 12 deletions
diff --git a/include/asm-arm/arch-ixp4xx/io.h b/include/asm-arm/arch-ixp4xx/io.h index c72f9d79417c..eeeea90cd5a9 100644 --- a/include/asm-arm/arch-ixp4xx/io.h +++ b/include/asm-arm/arch-ixp4xx/io.h | |||
@@ -17,9 +17,6 @@ | |||
17 | 17 | ||
18 | #define IO_SPACE_LIMIT 0xffff0000 | 18 | #define IO_SPACE_LIMIT 0xffff0000 |
19 | 19 | ||
20 | #define BIT(x) ((1)<<(x)) | ||
21 | |||
22 | |||
23 | extern int (*ixp4xx_pci_read)(u32 addr, u32 cmd, u32* data); | 20 | extern int (*ixp4xx_pci_read)(u32 addr, u32 cmd, u32* data); |
24 | extern int ixp4xx_pci_write(u32 addr, u32 cmd, u32 data); | 21 | extern int ixp4xx_pci_write(u32 addr, u32 cmd, u32 data); |
25 | 22 | ||
diff --git a/include/asm-mips/ip32/crime.h b/include/asm-mips/ip32/crime.h index a13702fafa85..7c36b0e5b1c6 100644 --- a/include/asm-mips/ip32/crime.h +++ b/include/asm-mips/ip32/crime.h | |||
@@ -17,9 +17,6 @@ | |||
17 | */ | 17 | */ |
18 | #define CRIME_BASE 0x14000000 /* physical */ | 18 | #define CRIME_BASE 0x14000000 /* physical */ |
19 | 19 | ||
20 | #undef BIT | ||
21 | #define BIT(x) (1UL << (x)) | ||
22 | |||
23 | struct sgi_crime { | 20 | struct sgi_crime { |
24 | volatile unsigned long id; | 21 | volatile unsigned long id; |
25 | #define CRIME_ID_MASK 0xff | 22 | #define CRIME_ID_MASK 0xff |
diff --git a/include/asm-mips/ip32/mace.h b/include/asm-mips/ip32/mace.h index 990082c81f39..d08d7c672139 100644 --- a/include/asm-mips/ip32/mace.h +++ b/include/asm-mips/ip32/mace.h | |||
@@ -17,9 +17,6 @@ | |||
17 | */ | 17 | */ |
18 | #define MACE_BASE 0x1f000000 /* physical */ | 18 | #define MACE_BASE 0x1f000000 /* physical */ |
19 | 19 | ||
20 | #undef BIT | ||
21 | #define BIT(x) (1UL << (x)) | ||
22 | |||
23 | /* | 20 | /* |
24 | * PCI interface | 21 | * PCI interface |
25 | */ | 22 | */ |
diff --git a/include/linux/bitops.h b/include/linux/bitops.h index 939e80bdbef7..7fc90d7cd0c9 100644 --- a/include/linux/bitops.h +++ b/include/linux/bitops.h | |||
@@ -3,6 +3,7 @@ | |||
3 | #include <asm/types.h> | 3 | #include <asm/types.h> |
4 | 4 | ||
5 | #ifdef __KERNEL__ | 5 | #ifdef __KERNEL__ |
6 | #define BIT(nr) (1UL << (nr)) | ||
6 | #define BIT_MASK(nr) (1UL << ((nr) % BITS_PER_LONG)) | 7 | #define BIT_MASK(nr) (1UL << ((nr) % BITS_PER_LONG)) |
7 | #define BIT_WORD(nr) ((nr) / BITS_PER_LONG) | 8 | #define BIT_WORD(nr) ((nr) / BITS_PER_LONG) |
8 | #define BITS_TO_TYPE(nr, t) (((nr)+(t)-1)/(t)) | 9 | #define BITS_TO_TYPE(nr, t) (((nr)+(t)-1)/(t)) |
diff --git a/include/video/sstfb.h b/include/video/sstfb.h index baa163f770ab..b52f07381243 100644 --- a/include/video/sstfb.h +++ b/include/video/sstfb.h | |||
@@ -68,7 +68,6 @@ | |||
68 | # define print_var(X,Y...) | 68 | # define print_var(X,Y...) |
69 | #endif | 69 | #endif |
70 | 70 | ||
71 | #define BIT(x) (1ul<<(x)) | ||
72 | #define POW2(x) (1ul<<(x)) | 71 | #define POW2(x) (1ul<<(x)) |
73 | 72 | ||
74 | /* | 73 | /* |
diff --git a/include/video/tdfx.h b/include/video/tdfx.h index 05b63c2a5abc..7431d9681e57 100644 --- a/include/video/tdfx.h +++ b/include/video/tdfx.h | |||
@@ -79,8 +79,6 @@ | |||
79 | 79 | ||
80 | /* register bitfields (not all, only as needed) */ | 80 | /* register bitfields (not all, only as needed) */ |
81 | 81 | ||
82 | #define BIT(x) (1UL << (x)) | ||
83 | |||
84 | /* COMMAND_2D reg. values */ | 82 | /* COMMAND_2D reg. values */ |
85 | #define TDFX_ROP_COPY 0xcc /* src */ | 83 | #define TDFX_ROP_COPY 0xcc /* src */ |
86 | #define TDFX_ROP_INVERT 0x55 /* NOT dst */ | 84 | #define TDFX_ROP_INVERT 0x55 /* NOT dst */ |