summaryrefslogtreecommitdiffstats
path: root/common/block.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2011-10-19 09:27:47 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2012-06-30 16:53:24 +0200
commitbe573120fe20e2735e8ec8db26c2f3feeec11bf4 (patch)
treefff4e24bdfbcef8de8216c9082d549e8bf8b02d8 /common/block.c
parent849ce2df7ab7ea1dabbdf04f1944f378075314cf (diff)
downloadbarebox-be573120fe20e2735e8ec8db26c2f3feeec11bf4.tar.gz
make cdev 64bit capable
Next step to 64bit support: Make cdev size a 64bit type. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/block.c')
-rw-r--r--common/block.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/block.c b/common/block.c
index 1db06cc..e40374f 100644
--- a/common/block.c
+++ b/common/block.c
@@ -338,7 +338,7 @@ static struct file_operations block_ops = {
int blockdevice_register(struct block_device *blk)
{
- size_t size = blk->num_blocks * BLOCKSIZE(blk);
+ loff_t size = (loff_t)blk->num_blocks * BLOCKSIZE(blk);
int ret;
int i;