diff options
-rw-r--r-- | block/genhd.c | 2 | ||||
-rw-r--r-- | fs/char_dev.c | 2 |
2 files changed, 2 insertions, 2 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 | } |
diff --git a/fs/char_dev.c b/fs/char_dev.c index e5b9df993b93..143f0207c7eb 100644 --- a/fs/char_dev.c +++ b/fs/char_dev.c | |||
@@ -59,7 +59,7 @@ static struct char_device_struct { | |||
59 | } *chrdevs[CHRDEV_MAJOR_HASH_SIZE]; | 59 | } *chrdevs[CHRDEV_MAJOR_HASH_SIZE]; |
60 | 60 | ||
61 | /* index in the above */ | 61 | /* index in the above */ |
62 | static inline int major_to_index(int major) | 62 | static inline int major_to_index(unsigned major) |
63 | { | 63 | { |
64 | return major % CHRDEV_MAJOR_HASH_SIZE; | 64 | return major % CHRDEV_MAJOR_HASH_SIZE; |
65 | } | 65 | } |