diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2007-10-14 19:35:20 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-14 12:41:51 -0700 |
commit | 64b33619a30ff18c1535ee779572ecffcc4711d2 (patch) | |
tree | 742db1890a5671d105eba372b78c7d383607ffe6 /drivers/char | |
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 'drivers/char')
-rw-r--r-- | drivers/char/dsp56k.c | 2 | ||||
-rw-r--r-- | drivers/char/rio/host.h | 2 | ||||
-rw-r--r-- | drivers/char/riscom8.h | 2 | ||||
-rw-r--r-- | drivers/char/sx.h | 4 |
4 files changed, 5 insertions, 5 deletions
diff --git a/drivers/char/dsp56k.c b/drivers/char/dsp56k.c index acbfe1c49b4..a69c6528326 100644 --- a/drivers/char/dsp56k.c +++ b/drivers/char/dsp56k.c @@ -136,7 +136,7 @@ static int sizeof_bootstrap = 375; static struct dsp56k_device { - long in_use; + unsigned long in_use; long maxio, timeout; int tx_wsize, rx_wsize; } dsp56k; diff --git a/drivers/char/rio/host.h b/drivers/char/rio/host.h index 23d0681fe49..78f24540c22 100644 --- a/drivers/char/rio/host.h +++ b/drivers/char/rio/host.h @@ -99,7 +99,7 @@ struct Host { struct UnixRup UnixRups[MAX_RUP + LINKS_PER_UNIT]; int timeout_id; /* For calling 100 ms delays */ int timeout_sem; /* For calling 100 ms delays */ - long locks; /* long req'd for set_bit --RR */ + unsigned long locks; /* long req'd for set_bit --RR */ char ____end_marker____; }; #define Control CardP->DpControl diff --git a/drivers/char/riscom8.h b/drivers/char/riscom8.h index 6317aade201..9cc1313d5e6 100644 --- a/drivers/char/riscom8.h +++ b/drivers/char/riscom8.h @@ -71,7 +71,7 @@ struct riscom_port { struct tty_struct * tty; int count; int blocked_open; - long event; /* long req'd for set_bit --RR */ + unsigned long event; /* long req'd for set_bit --RR */ int timeout; int close_delay; unsigned char * xmit_buf; diff --git a/drivers/char/sx.h b/drivers/char/sx.h index 432aad0a2dd..70d9783c732 100644 --- a/drivers/char/sx.h +++ b/drivers/char/sx.h @@ -27,7 +27,7 @@ struct sx_port { int c_dcd; struct sx_board *board; int line; - long locks; + unsigned long locks; }; struct sx_board { @@ -45,7 +45,7 @@ struct sx_board { int poll; int ta_type; struct timer_list timer; - long locks; + unsigned long locks; }; struct vpd_prom { |