From: Satoru Takeuchi <takeuchi_sat...@jp.fujitsu.com>

Suppress the following warning displayed on building 32bit (i686) kernel.

===============================================================================
...
  CC [M]  fs/btrfs/extent_io.o
fs/btrfs/extent_io.c: In function ‘btrfs_free_io_failure_record’:
fs/btrfs/extent_io.c:2193:13: warning: cast to pointer from integer of
different size [-Wint-to-pointer-cast]
   failrec = (struct io_failure_record *)state->private;
...
===============================================================================

Signed-off-by: Satoru Takeuchi <takeuchi_sat...@jp.fujitsu.com>
Reported-by: Chris Murphy <ch...@colorremedies.com>

---
 fs/btrfs/extent_io.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c
index 4ebabd2..790dbae 100644
--- a/fs/btrfs/extent_io.c
+++ b/fs/btrfs/extent_io.c
@@ -2190,7 +2190,7 @@ void btrfs_free_io_failure_record(struct inode *inode, 
u64 start, u64 end)
next = next_state(state); - failrec = (struct io_failure_record *)state->private;
+               failrec = (struct io_failure_record *)(unsigned 
long)state->private;
                free_extent_state(state);
                kfree(failrec);
--
1.8.3.1

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to