* Patch "btrfs: fix state->private cast on 32 bit machines" has been added to the 3.18-stable tree
@ 2017-04-27 14:28 gregkh
0 siblings, 0 replies; only message in thread
From: gregkh @ 2017-04-27 14:28 UTC (permalink / raw)
To: takeuchi_satoru, arnd, chris, clm, gregkh; +Cc: stable, stable-commits
This is a note to let you know that I've just added the patch titled
btrfs: fix state->private cast on 32 bit machines
to the 3.18-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
btrfs-fix-state-private-cast-on-32-bit-machines.patch
and it can be found in the queue-3.18 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@vger.kernel.org> know about it.
>From 6e1103a6e9b19dbdc348077d04a546b626911fc5 Mon Sep 17 00:00:00 2001
From: Satoru Takeuchi <takeuchi_satoru@jp.fujitsu.com>
Date: Thu, 25 Dec 2014 18:21:41 +0900
Subject: btrfs: fix state->private cast on 32 bit machines
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
From: Satoru Takeuchi <takeuchi_satoru@jp.fujitsu.com>
commit 6e1103a6e9b19dbdc348077d04a546b626911fc5 upstream.
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>
Cc: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
fs/btrfs/extent_io.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/fs/btrfs/extent_io.c
+++ b/fs/btrfs/extent_io.c
@@ -2163,7 +2163,7 @@ void btrfs_free_io_failure_record(struct
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);
Patches currently in stable-queue which might be from takeuchi_satoru@jp.fujitsu.com are
queue-3.18/btrfs-fix-state-private-cast-on-32-bit-machines.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-04-27 14:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-27 14:28 Patch "btrfs: fix state->private cast on 32 bit machines" has been added to the 3.18-stable tree gregkh
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).