From cfcfc66d5486c2061316ebcdf32ef2f1ecbda433 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Fri, 22 Jun 2012 14:33:46 +0200 Subject: partitions: Make 64bit capable Signed-off-by: Sascha Hauer --- include/driver.h | 2 +- include/partition.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/driver.h b/include/driver.h index 0b6d1b30c5..eacd8e6813 100644 --- a/include/driver.h +++ b/include/driver.h @@ -418,7 +418,7 @@ int cdev_erase(struct cdev *cdev, size_t count, loff_t offset); #define DEVFS_PARTITION_READONLY (1 << 1) #define DEVFS_IS_PARTITION (1 << 2) -int devfs_add_partition(const char *devname, unsigned long offset, size_t size, +int devfs_add_partition(const char *devname, loff_t offset, loff_t size, int flags, const char *name); int devfs_del_partition(const char *name); diff --git a/include/partition.h b/include/partition.h index 0827bb40c6..8ad7490d85 100644 --- a/include/partition.h +++ b/include/partition.h @@ -8,7 +8,7 @@ struct partition { int flags; - unsigned long offset; + loff_t offset; struct device_d *physdev; struct device_d device; -- cgit v1.2.3