Commit c10a1e90 authored by Brian King's avatar Brian King Committed by James Bottomley

[PATCH] ipr: Use sector_t type in sector_div call

From: Pawel Sikora <pluto@pld-linux.org>
The first parameter for sector_div must be sector_t rather than int.
Signed-off-by: default avatarBrian King <brking@us.ibm.com>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
parent 584a5da2
...@@ -2785,7 +2785,8 @@ static int ipr_biosparam(struct scsi_device *sdev, ...@@ -2785,7 +2785,8 @@ static int ipr_biosparam(struct scsi_device *sdev,
struct block_device *block_device, struct block_device *block_device,
sector_t capacity, int *parm) sector_t capacity, int *parm)
{ {
int heads, sectors, cylinders; int heads, sectors;
sector_t cylinders;
heads = 128; heads = 128;
sectors = 32; sectors = 32;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment