+ tipc-fix-printk-warning.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled

     TIPC: fix printk warning

has been added to the -mm tree.  Its filename is

     tipc-fix-printk-warning.patch

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: TIPC: fix printk warning
From: Jeff Garzik <jeff@xxxxxxxxxx>

gcc spits out this warning:

net/tipc/link.c: In function â??link_retransmit_failureâ??:
net/tipc/link.c:1669: warning: cast from pointer to integer of different
size

More than a little bit ugly, storing integers in void*, but at least the
code is correct, unlike some of the more crufty Linux kernel code found
elsewhere.

Rather than having two casts to massage the value into u32, it's easier
just to have a single cast and use "%lu", since it's just a printk.

Signed-off-by: Jeff Garzik <jeff@xxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 net/tipc/link.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff -puN net/tipc/link.c~tipc-fix-printk-warning net/tipc/link.c
--- a/net/tipc/link.c~tipc-fix-printk-warning
+++ a/net/tipc/link.c
@@ -1666,8 +1666,9 @@ static void link_retransmit_failure(stru
 		char addr_string[16];
 
 		tipc_printf(TIPC_OUTPUT, "Msg seq number: %u,  ", msg_seqno(msg));
-		tipc_printf(TIPC_OUTPUT, "Outstanding acks: %u\n", (u32)TIPC_SKB_CB(buf)->handle);
-		
+		tipc_printf(TIPC_OUTPUT, "Outstanding acks: %lu\n",
+				     (unsigned long) TIPC_SKB_CB(buf)->handle);
+
 		n_ptr = l_ptr->owner->next;
 		tipc_node_lock(n_ptr);
 
_

Patches currently in -mm which might be from jeff@xxxxxxxxxx are

origin.patch
acpi-fix-64-bit-pointer-truncation-bugs.patch
git-libata-all.patch
libata-return-sense-data-in-hdio_drive_cmd-ioctl.patch
libata-return-sense-data-in-hdio_drive_cmd-ioctl-tidy.patch
via-pata-controller-xfer-fixes.patch
ahci-ati-sb600-sata-support-for-various-modes.patch
git-netdev-all.patch
update-smc91x-driver-with-arm-versatile-board-info.patch
b44-fix-eeprom-endianess-issue.patch
forcedeth-hardirq-lockdep-warning.patch
forcedeth-power-management-support.patch
forcedeth-power-management-support-tidy.patch
remove-unnecessary-check-in-drivers-net-depcac.patch
8139too-force-media-setting-fix.patch
tulip-fix-shutdown-dma-irq-race.patch
zatm-always-clear-pcr-in-alloc_shaper.patch
atm-ambassador-fix-return-code-bug.patch
tipc-fix-printk-warning.patch
r8169-driver-corega-support-patch.patch
git-pciseg.patch
usb-serial-mos7840-fix-cast.patch
fs-eventpoll-error-handling-micro-cleanup.patch
ipmi-fix-uninitd-data-bug.patch
drivers-char-ip2-kill-unused-code-label.patch

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

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux