summaryrefslogtreecommitdiffstats
path: root/fs/smhfs.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2019-02-04 12:32:23 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2019-02-06 08:31:13 +0100
commitd112c7aad310ff5261fb65d4441c0567fc54d696 (patch)
treeb95876a000b3e7a5976a6b8cfe7b40ed467cff8b /fs/smhfs.c
parentcd4f8f89d3f71ba3a0a29fa212f5cc2cb8793c7f (diff)
downloadbarebox-d112c7aad310ff5261fb65d4441c0567fc54d696.tar.gz
barebox-d112c7aad310ff5261fb65d4441c0567fc54d696.tar.xz
fs: let truncate take a loff_t argument
loff_t is the correct type for file sizes. Use it to allow to truncate to sizes bigger than 32bit. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'fs/smhfs.c')
-rw-r--r--fs/smhfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/smhfs.c b/fs/smhfs.c
index 7a6933630c..2e99b05979 100644
--- a/fs/smhfs.c
+++ b/fs/smhfs.c
@@ -56,7 +56,7 @@ static int smhfs_rm(struct device_d __always_unused *dev,
static int smhfs_truncate(struct device_d __always_unused *dev,
FILE __always_unused *f,
- ulong __always_unused size)
+ loff_t __always_unused size)
{
return 0;
}