diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2007-10-14 14:35:20 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-14 15:41:51 -0400 |
commit | 64b33619a30ff18c1535ee779572ecffcc4711d2 (patch) | |
tree | 742db1890a5671d105eba372b78c7d383607ffe6 /include | |
parent | 0cc0844bc6d0bfca97fda48fa28d1f0a7cf878cb (diff) |
long vs. unsigned long - low-hanging fruits in drivers
deal with signedness of the stuff passed to set_bit() et.al.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/agpgart.h | 2 | ||||
-rw-r--r-- | include/linux/hdlcdrv.h | 2 | ||||
-rw-r--r-- | include/linux/scx200_gpio.h | 8 | ||||
-rw-r--r-- | include/linux/stallion.h | 2 |
4 files changed, 7 insertions, 7 deletions
diff --git a/include/linux/agpgart.h b/include/linux/agpgart.h index bfb8ec791b7b..09fbf7e5a6cb 100644 --- a/include/linux/agpgart.h +++ b/include/linux/agpgart.h | |||
@@ -197,7 +197,7 @@ struct agp_file_private { | |||
197 | struct agp_file_private *next; | 197 | struct agp_file_private *next; |
198 | struct agp_file_private *prev; | 198 | struct agp_file_private *prev; |
199 | pid_t my_pid; | 199 | pid_t my_pid; |
200 | long access_flags; /* long req'd for set_bit --RR */ | 200 | unsigned long access_flags; /* long req'd for set_bit --RR */ |
201 | }; | 201 | }; |
202 | 202 | ||
203 | struct agp_front_data { | 203 | struct agp_front_data { |
diff --git a/include/linux/hdlcdrv.h b/include/linux/hdlcdrv.h index 4f6ee3b267fa..bf6302f6b5f8 100644 --- a/include/linux/hdlcdrv.h +++ b/include/linux/hdlcdrv.h | |||
@@ -200,7 +200,7 @@ struct hdlcdrv_state { | |||
200 | 200 | ||
201 | struct hdlcdrv_hdlcrx { | 201 | struct hdlcdrv_hdlcrx { |
202 | struct hdlcdrv_hdlcbuffer hbuf; | 202 | struct hdlcdrv_hdlcbuffer hbuf; |
203 | long in_hdlc_rx; | 203 | unsigned long in_hdlc_rx; |
204 | /* 0 = sync hunt, != 0 receiving */ | 204 | /* 0 = sync hunt, != 0 receiving */ |
205 | int rx_state; | 205 | int rx_state; |
206 | unsigned int bitstream; | 206 | unsigned int bitstream; |
diff --git a/include/linux/scx200_gpio.h b/include/linux/scx200_gpio.h index d2b058130eb1..ece4e553e9ac 100644 --- a/include/linux/scx200_gpio.h +++ b/include/linux/scx200_gpio.h | |||
@@ -1,7 +1,7 @@ | |||
1 | u32 scx200_gpio_configure(unsigned index, u32 set, u32 clear); | 1 | u32 scx200_gpio_configure(unsigned index, u32 set, u32 clear); |
2 | 2 | ||
3 | extern unsigned scx200_gpio_base; | 3 | extern unsigned scx200_gpio_base; |
4 | extern long scx200_gpio_shadow[2]; | 4 | extern unsigned long scx200_gpio_shadow[2]; |
5 | extern struct nsc_gpio_ops scx200_gpio_ops; | 5 | extern struct nsc_gpio_ops scx200_gpio_ops; |
6 | 6 | ||
7 | #define scx200_gpio_present() (scx200_gpio_base!=0) | 7 | #define scx200_gpio_present() (scx200_gpio_base!=0) |
@@ -9,7 +9,7 @@ extern struct nsc_gpio_ops scx200_gpio_ops; | |||
9 | /* Definitions to make sure I do the same thing in all functions */ | 9 | /* Definitions to make sure I do the same thing in all functions */ |
10 | #define __SCx200_GPIO_BANK unsigned bank = index>>5 | 10 | #define __SCx200_GPIO_BANK unsigned bank = index>>5 |
11 | #define __SCx200_GPIO_IOADDR unsigned short ioaddr = scx200_gpio_base+0x10*bank | 11 | #define __SCx200_GPIO_IOADDR unsigned short ioaddr = scx200_gpio_base+0x10*bank |
12 | #define __SCx200_GPIO_SHADOW long *shadow = scx200_gpio_shadow+bank | 12 | #define __SCx200_GPIO_SHADOW unsigned long *shadow = scx200_gpio_shadow+bank |
13 | #define __SCx200_GPIO_INDEX index &= 31 | 13 | #define __SCx200_GPIO_INDEX index &= 31 |
14 | 14 | ||
15 | #define __SCx200_GPIO_OUT __asm__ __volatile__("outsl":"=mS" (shadow):"d" (ioaddr), "0" (shadow)) | 15 | #define __SCx200_GPIO_OUT __asm__ __volatile__("outsl":"=mS" (shadow):"d" (ioaddr), "0" (shadow)) |
@@ -42,7 +42,7 @@ static inline void scx200_gpio_set_high(unsigned index) { | |||
42 | __SCx200_GPIO_IOADDR; | 42 | __SCx200_GPIO_IOADDR; |
43 | __SCx200_GPIO_SHADOW; | 43 | __SCx200_GPIO_SHADOW; |
44 | __SCx200_GPIO_INDEX; | 44 | __SCx200_GPIO_INDEX; |
45 | set_bit(index, shadow); | 45 | set_bit(index, shadow); /* __set_bit()? */ |
46 | __SCx200_GPIO_OUT; | 46 | __SCx200_GPIO_OUT; |
47 | } | 47 | } |
48 | 48 | ||
@@ -53,7 +53,7 @@ static inline void scx200_gpio_set_low(unsigned index) { | |||
53 | __SCx200_GPIO_IOADDR; | 53 | __SCx200_GPIO_IOADDR; |
54 | __SCx200_GPIO_SHADOW; | 54 | __SCx200_GPIO_SHADOW; |
55 | __SCx200_GPIO_INDEX; | 55 | __SCx200_GPIO_INDEX; |
56 | clear_bit(index, shadow); | 56 | clear_bit(index, shadow); /* __clear_bit()? */ |
57 | __SCx200_GPIO_OUT; | 57 | __SCx200_GPIO_OUT; |
58 | } | 58 | } |
59 | 59 | ||
diff --git a/include/linux/stallion.h b/include/linux/stallion.h index 4a0a329beafb..94b4a10b912f 100644 --- a/include/linux/stallion.h +++ b/include/linux/stallion.h | |||
@@ -75,7 +75,7 @@ struct stlport { | |||
75 | int ioaddr; | 75 | int ioaddr; |
76 | int uartaddr; | 76 | int uartaddr; |
77 | unsigned int pagenr; | 77 | unsigned int pagenr; |
78 | long istate; | 78 | unsigned long istate; |
79 | int flags; | 79 | int flags; |
80 | int baud_base; | 80 | int baud_base; |
81 | int custom_divisor; | 81 | int custom_divisor; |