From: Mike Marshall Date: Thu, 30 Jul 2015 19:34:04 +0000 (-0400) Subject: Orangefs: large integer implicitly truncated to unsigned type X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c36316b74e0d98fdc5492104b5dd8bde697f0f81;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git Orangefs: large integer implicitly truncated to unsigned type make.cross ARCH=tile doesn't like "inode->i_bytes = PAGE_CACHE_SIZE;", so cast PAGE_CACHE_SIZE to unsigned short. Signed-off-by: Mike Marshall --- diff --git a/fs/orangefs/pvfs2-utils.c b/fs/orangefs/pvfs2-utils.c index 8d4411ca118f..6eecb1861aca 100644 --- a/fs/orangefs/pvfs2-utils.c +++ b/fs/orangefs/pvfs2-utils.c @@ -163,7 +163,7 @@ static int copy_attributes_to_inode(struct inode *inode, /*FALLTHRU*/ default: pvfs2_lock_inode(inode); - inode->i_bytes = PAGE_CACHE_SIZE; + inode->i_bytes = (unsigned short)PAGE_CACHE_SIZE; inode->i_blocks = (unsigned long)(PAGE_CACHE_SIZE / 512); pvfs2_unlock_inode(inode);