|
@@ -239,7 +239,7 @@ static struct blk_major_name {
|
|
} *major_names[BLKDEV_MAJOR_HASH_SIZE];
|
|
} *major_names[BLKDEV_MAJOR_HASH_SIZE];
|
|
|
|
|
|
/* index in the above - for now: assume no multimajor ranges */
|
|
/* index in the above - for now: assume no multimajor ranges */
|
|
-static inline int major_to_index(int major)
|
|
|
|
|
|
+static inline int major_to_index(unsigned major)
|
|
{
|
|
{
|
|
return major % BLKDEV_MAJOR_HASH_SIZE;
|
|
return major % BLKDEV_MAJOR_HASH_SIZE;
|
|
}
|
|
}
|