aboutsummaryrefslogtreecommitdiffstats
path: root/block/genhd.c
diff options
context:
space:
mode:
Diffstat (limited to 'block/genhd.c')
-rw-r--r--block/genhd.c2
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 */
242static inline int major_to_index(int major) 242static 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}