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>
This commit is contained in:
@@ -59,7 +59,7 @@ static struct char_device_struct {
|
||||
} *chrdevs[CHRDEV_MAJOR_HASH_SIZE];
|
||||
|
||||
/* index in the above */
|
||||
static inline int major_to_index(int major)
|
||||
static inline int major_to_index(unsigned major)
|
||||
{
|
||||
return major % CHRDEV_MAJOR_HASH_SIZE;
|
||||
}
|
||||
|
Reference in New Issue
Block a user