]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
fat-additions-to-support-fat_fallocate-fix
authorAndrew Morton <akpm@linux-foundation.org>
Thu, 27 Jun 2013 23:53:44 +0000 (09:53 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 28 Jun 2013 06:38:51 +0000 (16:38 +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));