This is a note to let you know that I've just added the patch titled
scsi: aha152x: Fix sparse warning and make printing pointer address more
portable.
to the 3.4-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:
scsi-aha152x-fix-sparse-warning-and-make-printing-pointer-address-more-portable.patch
and it can be found in the queue-3.4 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree,
please let <[email protected]> know about it.
>From b631cf1f899f9d2e449884dbccc34940637c639f Mon Sep 17 00:00:00 2001
From: Krzysztof Wilczynski <[email protected]>
Date: Wed, 2 May 2012 11:34:01 +0100
Subject: scsi: aha152x: Fix sparse warning and make printing pointer address
more portable.
From: Krzysztof Wilczynski <[email protected]>
commit b631cf1f899f9d2e449884dbccc34940637c639f upstream.
This is to change use of "0x%08x" in favour of "%p" as per
../Documentation/printk-formats.txt,
which also takes care about the following warning during compilation time:
drivers/scsi/aha152x.c: In function âget_commandâ:
drivers/scsi/aha152x.c:2987: warning: cast from pointer to integer of
different size
Signed-off-by: Krzysztof Wilczynski <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
---
drivers/scsi/aha152x.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- a/drivers/scsi/aha152x.c
+++ b/drivers/scsi/aha152x.c
@@ -2984,8 +2984,8 @@ static int get_command(char *pos, Scsi_C
char *start = pos;
int i;
- SPRINTF("0x%08x: target=%d; lun=%d; cmnd=( ",
- (unsigned int) ptr, ptr->device->id, ptr->device->lun);
+ SPRINTF("%p: target=%d; lun=%d; cmnd=( ",
+ ptr, ptr->device->id, ptr->device->lun);
for (i = 0; i < COMMAND_SIZE(ptr->cmnd[0]); i++)
SPRINTF("0x%02x ", ptr->cmnd[i]);
Patches currently in stable-queue which might be from
[email protected] are
queue-3.4/scsi-aha152x-fix-sparse-warning-and-make-printing-pointer-address-more-portable.patch
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html