Skip to content

Commit 93043ec

Browse files
jirislabyLinus Torvalds
authored andcommitted
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>
1 parent 7b19ada commit 93043ec

18 files changed

Lines changed: 1 addition & 38 deletions

File tree

‎arch/ppc/platforms/chestnut.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ extern void gen550_progress(char *, unsigned short);
4949
extern void gen550_init(int, struct uart_port *);
5050
extern void mv64360_pcibios_fixup(mv64x60_handle_t *bh);
5151

52-
#define BIT(x) (1<<x)
5352
#define CHESTNUT_PRESERVE_MASK (BIT(MV64x60_CPU2DEV_0_WIN) | \
5453
BIT(MV64x60_CPU2DEV_1_WIN) | \
5554
BIT(MV64x60_CPU2DEV_2_WIN) | \

‎drivers/edac/edac_core.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,6 @@ extern int edac_debug_level;
9494

9595
#endif /* !CONFIG_EDAC_DEBUG */
9696

97-
#define BIT(x) (1 << (x))
98-
9997
#define PCI_VEND_DEV(vend, dev) PCI_VENDOR_ID_ ## vend, \
10098
PCI_DEVICE_ID_ ## vend ## _ ## dev
10199

‎drivers/firmware/dcdbas.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020
#include <linux/sysfs.h>
2121
#include <linux/types.h>
2222

23-
#define BIT(x) (1UL << x)
24-
2523
#define MAX_SMI_DATA_BUF_SIZE (256 * 1024)
2624

2725
#define HC_ACTION_NONE (0)

‎drivers/input/serio/maceps2.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ MODULE_LICENSE("GPL");
3131

3232
#define MACE_PS2_TIMEOUT 10000 /* in 50us unit */
3333

34-
#define BIT(x) (1UL << (x))
35-
3634
#define PS2_STATUS_CLOCK_SIGNAL BIT(0) /* external clock signal */
3735
#define PS2_STATUS_CLOCK_INHIBIT BIT(1) /* clken output signal */
3836
#define PS2_STATUS_TX_INPROGRESS BIT(2) /* transmission in progress */

‎drivers/net/eth16i.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,6 @@ static char *version =
170170

171171

172172
/* Few macros */
173-
#define BIT(a) ( (1 << (a)) )
174173
#define BITSET(ioaddr, bnum) ((outb(((inb(ioaddr)) | (bnum)), ioaddr)))
175174
#define BITCLR(ioaddr, bnum) ((outb(((inb(ioaddr)) & (~(bnum))), ioaddr)))
176175

‎drivers/net/meth.h‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@
2828
#define RX_BUFFER_OFFSET (sizeof(rx_status_vector)+2) /* staus vector + 2 bytes of padding */
2929
#define RX_BUCKET_SIZE 256
3030

31-
#undef BIT
32-
#define BIT(x) (1UL << (x))
33-
3431
/* For more detailed explanations of what each field menas,
3532
see Nick's great comments to #defines below (or docs, if
3633
you are lucky enough toget hold of them :)*/

‎drivers/net/wireless/hostap/hostap_common.h‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
#include <linux/types.h>
55
#include <linux/if_ether.h>
66

7-
#define BIT(x) (1 << (x))
8-
9-
107
/* IEEE 802.11 defines */
118

129
/* Information Element IDs */

‎drivers/scsi/FlashPoint.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525

2626
#define FAILURE 0xFFFFFFFFL
2727

28-
#define BIT(x) ((unsigned char)(1<<(x))) /* single-bit mask in bit position x */
2928
#define BITW(x) ((unsigned short)(1<<(x))) /* single-bit mask in bit position x */
3029

3130
struct sccb;

‎drivers/scsi/nsp32.h‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,6 @@ static char * nsp32_model[] = {
6868
typedef u32 u32_le;
6969
typedef u16 u16_le;
7070

71-
/*
72-
* MACRO
73-
*/
74-
#define BIT(x) (1UL << (x))
75-
7671
/*
7772
* BASIC Definitions
7873
*/

‎drivers/scsi/pcmcia/nsp_cs.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
/************************************
2525
* Some useful macros...
2626
*/
27-
#define BIT(x) (1L << (x))
2827

2928
/* SCSI initiator must be ID 7 */
3029
#define NSP_INITIATOR_ID 7

0 commit comments

Comments
 (0)