]> git.hungrycats.org Git - linux/commit
btrfs: fix state->private cast on 32 bit machines
authorSatoru Takeuchi <takeuchi_satoru@jp.fujitsu.com>
Thu, 25 Dec 2014 09:21:41 +0000 (18:21 +0900)
committerZygo Blaxell <zblaxell@serenity.furryterror.org>
Fri, 23 Jan 2015 13:25:40 +0000 (08:25 -0500)
commite40f5afd70ed56fdd86353be5c7ffdaf71443bbe
tree50e6e78787924dbbc428acfff55ca90c79138da9
parentbb8b0526f0831825ee7009e936735f5d04d5b2ae
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: Satoru Takeuchi <takeuchi_satoru@jp.fujitsu.com>
Reported-by: Chris Murphy <chris@colorremedies.com>
Signed-off-by: Chris Mason <clm@fb.com>
(cherry picked from commit 6e1103a6e9b19dbdc348077d04a546b626911fc5)
fs/btrfs/extent_io.c