diff options
author | Yang Zhang <kthreadd@gmail.com> | 2010-12-17 03:00:18 -0500 |
---|---|---|
committer | Jens Axboe <jaxboe@fusionio.com> | 2010-12-17 03:00:18 -0500 |
commit | e61eb2e93fe86931d46831752a82dab25a5335ca (patch) | |
tree | 631aeb9bf8614903972a6a9945040a4d528f1029 /block | |
parent | b9f985b6e05ebd7af2aaef0eb3ae369390ef191f (diff) |
fs/block: type signature of major_to_index(int) to major_to_index(unsigned)
The major/minor device numbers are always defined and used as `unsigned'.
Signed-off-by: Yang Zhang <kthreadd@gmail.com>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
Diffstat (limited to 'block')
-rw-r--r-- | block/genhd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/genhd.c b/block/genhd.c index 79b9e327f3cb..16ccc0d2d5d3 100644 --- a/block/genhd.c +++ b/block/genhd.c | |||
@@ -239,7 +239,7 @@ static struct blk_major_name { | |||
239 | } *major_names[BLKDEV_MAJOR_HASH_SIZE]; | 239 | } *major_names[BLKDEV_MAJOR_HASH_SIZE]; |
240 | 240 | ||
241 | /* index in the above - for now: assume no multimajor ranges */ | 241 | /* index in the above - for now: assume no multimajor ranges */ |
242 | static inline int major_to_index(int major) | 242 | static inline int major_to_index(unsigned major) |
243 | { | 243 | { |
244 | return major % BLKDEV_MAJOR_HASH_SIZE; | 244 | return major % BLKDEV_MAJOR_HASH_SIZE; |
245 | } | 245 | } |