提交 6e1103a6 编写于 作者: S Satoru Takeuchi 提交者: Chris Mason

btrfs: fix state->private cast on 32 bit machines

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: NSatoru Takeuchi <takeuchi_satoru@jp.fujitsu.com>
Reported-by: NChris Murphy <chris@colorremedies.com>
Signed-off-by: NChris Mason <clm@fb.com>
上级 75c68e9f
...@@ -2190,7 +2190,7 @@ void btrfs_free_io_failure_record(struct inode *inode, u64 start, u64 end) ...@@ -2190,7 +2190,7 @@ void btrfs_free_io_failure_record(struct inode *inode, u64 start, u64 end)
next = next_state(state); next = next_state(state);
failrec = (struct io_failure_record *)state->private; failrec = (struct io_failure_record *)(unsigned long)state->private;
free_extent_state(state); free_extent_state(state);
kfree(failrec); kfree(failrec);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册