diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2007-10-14 14:35:50 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-14 15:41:52 -0400 |
commit | 5ba253313d014364a9b87b6fa975ce2fc9759aa6 (patch) | |
tree | b6f7b222b980d7a28e8d73d6cf939454a77205b1 | |
parent | b4482a4b2e2ff5ed96d8d16d72e83e75064062c5 (diff) |
more low-hanging fruits - kernel, fs, lib signedness
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | fs/jfs/jfs_dtree.c | 2 | ||||
-rw-r--r-- | fs/jfs/jfs_incore.h | 2 | ||||
-rw-r--r-- | fs/jfs/jfs_logmgr.h | 2 | ||||
-rw-r--r-- | fs/smbfs/smbiod.c | 2 | ||||
-rw-r--r-- | include/linux/reiserfs_fs_sb.h | 4 | ||||
-rw-r--r-- | kernel/posix-timers.c | 6 | ||||
-rw-r--r-- | lib/idr.c | 2 |
7 files changed, 10 insertions, 10 deletions
diff --git a/fs/jfs/jfs_dtree.c b/fs/jfs/jfs_dtree.c index c14ba3cfa818..df0b8535de84 100644 --- a/fs/jfs/jfs_dtree.c +++ b/fs/jfs/jfs_dtree.c | |||
@@ -520,7 +520,7 @@ static void free_index(tid_t tid, struct inode *ip, u32 index, u32 next) | |||
520 | * Changes an entry in the directory index table | 520 | * Changes an entry in the directory index table |
521 | */ | 521 | */ |
522 | static void modify_index(tid_t tid, struct inode *ip, u32 index, s64 bn, | 522 | static void modify_index(tid_t tid, struct inode *ip, u32 index, s64 bn, |
523 | int slot, struct metapage ** mp, u64 *lblock) | 523 | int slot, struct metapage ** mp, s64 *lblock) |
524 | { | 524 | { |
525 | struct dir_table_slot *dirtab_slot; | 525 | struct dir_table_slot *dirtab_slot; |
526 | 526 | ||
diff --git a/fs/jfs/jfs_incore.h b/fs/jfs/jfs_incore.h index cb8f30985ad1..439901d205fe 100644 --- a/fs/jfs/jfs_incore.h +++ b/fs/jfs/jfs_incore.h | |||
@@ -49,7 +49,7 @@ struct jfs_inode_info { | |||
49 | short btorder; /* access order */ | 49 | short btorder; /* access order */ |
50 | short btindex; /* btpage entry index*/ | 50 | short btindex; /* btpage entry index*/ |
51 | struct inode *ipimap; /* inode map */ | 51 | struct inode *ipimap; /* inode map */ |
52 | long cflag; /* commit flags */ | 52 | unsigned long cflag; /* commit flags */ |
53 | u16 bxflag; /* xflag of pseudo buffer? */ | 53 | u16 bxflag; /* xflag of pseudo buffer? */ |
54 | unchar agno; /* ag number */ | 54 | unchar agno; /* ag number */ |
55 | signed char active_ag; /* ag currently allocating from */ | 55 | signed char active_ag; /* ag currently allocating from */ |
diff --git a/fs/jfs/jfs_logmgr.h b/fs/jfs/jfs_logmgr.h index 1f85ef0ec045..9236bc49ae7f 100644 --- a/fs/jfs/jfs_logmgr.h +++ b/fs/jfs/jfs_logmgr.h | |||
@@ -376,7 +376,7 @@ struct jfs_log { | |||
376 | int size; /* 4: log size in log page (in page) */ | 376 | int size; /* 4: log size in log page (in page) */ |
377 | int l2bsize; /* 4: log2 of bsize */ | 377 | int l2bsize; /* 4: log2 of bsize */ |
378 | 378 | ||
379 | long flag; /* 4: flag */ | 379 | unsigned long flag; /* 4: flag */ |
380 | 380 | ||
381 | struct lbuf *lbuf_free; /* 4: free lbufs */ | 381 | struct lbuf *lbuf_free; /* 4: free lbufs */ |
382 | wait_queue_head_t free_wait; /* 4: */ | 382 | wait_queue_head_t free_wait; /* 4: */ |
diff --git a/fs/smbfs/smbiod.c b/fs/smbfs/smbiod.c index 67176af8515f..283c5720c9de 100644 --- a/fs/smbfs/smbiod.c +++ b/fs/smbfs/smbiod.c | |||
@@ -45,7 +45,7 @@ static LIST_HEAD(smb_servers); | |||
45 | static DEFINE_SPINLOCK(servers_lock); | 45 | static DEFINE_SPINLOCK(servers_lock); |
46 | 46 | ||
47 | #define SMBIOD_DATA_READY (1<<0) | 47 | #define SMBIOD_DATA_READY (1<<0) |
48 | static long smbiod_flags; | 48 | static unsigned long smbiod_flags; |
49 | 49 | ||
50 | static int smbiod(void *); | 50 | static int smbiod(void *); |
51 | static int smbiod_start(void); | 51 | static int smbiod_start(void); |
diff --git a/include/linux/reiserfs_fs_sb.h b/include/linux/reiserfs_fs_sb.h index 1e5488ede037..ff9e9234f8ba 100644 --- a/include/linux/reiserfs_fs_sb.h +++ b/include/linux/reiserfs_fs_sb.h | |||
@@ -120,7 +120,7 @@ struct reiserfs_journal_cnode { | |||
120 | struct buffer_head *bh; /* real buffer head */ | 120 | struct buffer_head *bh; /* real buffer head */ |
121 | struct super_block *sb; /* dev of real buffer head */ | 121 | struct super_block *sb; /* dev of real buffer head */ |
122 | __u32 blocknr; /* block number of real buffer head, == 0 when buffer on disk */ | 122 | __u32 blocknr; /* block number of real buffer head, == 0 when buffer on disk */ |
123 | long state; | 123 | unsigned long state; |
124 | struct reiserfs_journal_list *jlist; /* journal list this cnode lives in */ | 124 | struct reiserfs_journal_list *jlist; /* journal list this cnode lives in */ |
125 | struct reiserfs_journal_cnode *next; /* next in transaction list */ | 125 | struct reiserfs_journal_cnode *next; /* next in transaction list */ |
126 | struct reiserfs_journal_cnode *prev; /* prev in transaction list */ | 126 | struct reiserfs_journal_cnode *prev; /* prev in transaction list */ |
@@ -181,7 +181,7 @@ struct reiserfs_journal { | |||
181 | struct block_device *j_dev_bd; | 181 | struct block_device *j_dev_bd; |
182 | int j_1st_reserved_block; /* first block on s_dev of reserved area journal */ | 182 | int j_1st_reserved_block; /* first block on s_dev of reserved area journal */ |
183 | 183 | ||
184 | long j_state; | 184 | unsigned long j_state; |
185 | unsigned long j_trans_id; | 185 | unsigned long j_trans_id; |
186 | unsigned long j_mount_id; | 186 | unsigned long j_mount_id; |
187 | unsigned long j_start; /* start of current waiting commit (index into j_ap_blocks) */ | 187 | unsigned long j_start; /* start of current waiting commit (index into j_ap_blocks) */ |
diff --git a/kernel/posix-timers.c b/kernel/posix-timers.c index 7a15afb73ed0..57efe0400bc2 100644 --- a/kernel/posix-timers.c +++ b/kernel/posix-timers.c | |||
@@ -712,7 +712,7 @@ sys_timer_getoverrun(timer_t timer_id) | |||
712 | { | 712 | { |
713 | struct k_itimer *timr; | 713 | struct k_itimer *timr; |
714 | int overrun; | 714 | int overrun; |
715 | long flags; | 715 | unsigned long flags; |
716 | 716 | ||
717 | timr = lock_timer(timer_id, &flags); | 717 | timr = lock_timer(timer_id, &flags); |
718 | if (!timr) | 718 | if (!timr) |
@@ -784,7 +784,7 @@ sys_timer_settime(timer_t timer_id, int flags, | |||
784 | struct k_itimer *timr; | 784 | struct k_itimer *timr; |
785 | struct itimerspec new_spec, old_spec; | 785 | struct itimerspec new_spec, old_spec; |
786 | int error = 0; | 786 | int error = 0; |
787 | long flag; | 787 | unsigned long flag; |
788 | struct itimerspec *rtn = old_setting ? &old_spec : NULL; | 788 | struct itimerspec *rtn = old_setting ? &old_spec : NULL; |
789 | 789 | ||
790 | if (!new_setting) | 790 | if (!new_setting) |
@@ -836,7 +836,7 @@ asmlinkage long | |||
836 | sys_timer_delete(timer_t timer_id) | 836 | sys_timer_delete(timer_t timer_id) |
837 | { | 837 | { |
838 | struct k_itimer *timer; | 838 | struct k_itimer *timer; |
839 | long flags; | 839 | unsigned long flags; |
840 | 840 | ||
841 | retry_delete: | 841 | retry_delete: |
842 | timer = lock_timer(timer_id, &flags); | 842 | timer = lock_timer(timer_id, &flags); |
@@ -120,7 +120,7 @@ static int sub_alloc(struct idr *idp, int *starting_id, struct idr_layer **pa) | |||
120 | int n, m, sh; | 120 | int n, m, sh; |
121 | struct idr_layer *p, *new; | 121 | struct idr_layer *p, *new; |
122 | int l, id, oid; | 122 | int l, id, oid; |
123 | long bm; | 123 | unsigned long bm; |
124 | 124 | ||
125 | id = *starting_id; | 125 | id = *starting_id; |
126 | restart: | 126 | restart: |