From ed6cd8aa753b0e878681c25fc29f288e4d7c2e1c Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Fri, 10 May 2013 09:57:48 +1000 Subject: [PATCH] fat-additions-to-support-fat_fallocate-fix fix min() warning Cc: Amit Sahrawat Cc: Namjae Jeon Cc: OGAWA Hirofumi Cc: Ravishankar N Reported-by: Wu Fengguang Signed-off-by: Andrew Morton --- fs/fat/inode.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/fat/inode.c b/fs/fat/inode.c index 99a76c274ff5..f49de9379bcd 100644 --- a/fs/fat/inode.c +++ b/fs/fat/inode.c @@ -162,7 +162,8 @@ static int fat_zero_falloc_area(struct file *file, int err; do { - unsigned offset, bytes; + unsigned offset; + size_t bytes; void *fsdata; offset = (curpos & (PAGE_CACHE_SIZE - 1)); -- 2.39.5