blob: 84e1061ac7d77fc85ed45c61f1cdadbe9e4ef5e2 [file] [log] [blame]
From aaditya.kumar.30@gmail.com Fri Dec 21 15:55:12 2012
From: Aaditya Kumar <aaditya.kumar.30@gmail.com>
Date: Sat, 22 Dec 2012 05:25:10 +0530
Subject: AXFS: fix type cast warning in axfs_region_is_vmalloc()
To: Greg KH <gregkh@linuxfoundation.org>
Cc: ltsi-dev@lists.linuxfoundation.org, tim.bird@am.sony.com, frank.rowand@am.sony.com, takuzo.ohara@ap.sony.com, amit.agarwal@ap.sony.com, kan.iibuchi@jp.sony.com, Aaditya Kumar <aaditya.kumar@ap.sony.com>
Message-ID: <CAEtiSasb7hLcp63zjRg2gQAmYgKE-F8rKwu==T=jQAxCYQWSbQ@mail.gmail.com>
This patch fixes following compilation warning caused by
Commit-ID: a7e526129f6ea298513ef4ce7aa6db08fc069d14
fs/axfs/axfs_inode.c: In function ‘axfs_region_is_vmalloc’:
fs/axfs/axfs_inode.c:175:11: warning: cast from pointer to integer of
different size [-Wpointer-to-int-cast]
Signed-off-by: Aaditya Kumar <aaditya.kumar@ap.sony.com>
---
Changes from v1:
- Use unsigned long type cast.
---
fs/axfs/axfs_inode.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/fs/axfs/axfs_inode.c
+++ b/fs/axfs/axfs_inode.c
@@ -172,7 +172,7 @@ static inline u64 axfs_get_xip_region_ph
static inline int axfs_region_is_vmalloc(struct axfs_super *sbi,
struct axfs_region_desc *region)
{
- u64 va = (u32) region->virt_addr;
+ u64 va = (unsigned long) region->virt_addr;
u64 vo = (u64) region->fsoffset + (u64) sbi->virt_start_addr;
if (va == 0)