]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
fat-additions-to-support-fat_fallocate-fix
authorAndrew Morton <akpm@linux-foundation.org>
Thu, 9 May 2013 23:57:48 +0000 (09:57 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 21 May 2013 04:17:59 +0000 (14:17 +1000)
fix min() warning

Cc: Amit Sahrawat <a.sahrawat@samsung.com>
Cc: Namjae Jeon <namjae.jeon@samsung.com>
Cc: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Cc: Ravishankar N <ravi.n1@samsung.com>
Reported-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/fat/inode.c

index 99a76c274ff59dd47697ad67b5ae67cf117a8f1b..f49de9379bcdca0f8884db4e157bf182a252225d 100644 (file)
@@ -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));