The patch titled drivers/infiniband/hw/nes/nes_cm.c: fix unused var warning has been added to the -mm tree. Its filename is drivers-infiniband-hw-nes-nes_cmc-fix-unused-var-warning.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: drivers/infiniband/hw/nes/nes_cm.c: fix unused var warning From: Zhenwen Xu <helight.xu@xxxxxxxxx> drivers/infiniband/hw/nes/nes_cm.c:862: warning: unused variable `tmp_addr' The 'tmp_addr' is defined for debug, so it should be defined in CONFIG_INFINIBAND_NES_DEBUG Signed-off-by: Zhenwen Xu <helight.xu@xxxxxxxxx> Cc: Roland Dreier <rolandd@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/infiniband/hw/nes/nes_cm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff -puN drivers/infiniband/hw/nes/nes_cm.c~drivers-infiniband-hw-nes-nes_cmc-fix-unused-var-warning drivers/infiniband/hw/nes/nes_cm.c --- a/drivers/infiniband/hw/nes/nes_cm.c~drivers-infiniband-hw-nes-nes_cmc-fix-unused-var-warning +++ a/drivers/infiniband/hw/nes/nes_cm.c @@ -854,8 +854,9 @@ static struct nes_cm_listener *find_list { unsigned long flags; struct nes_cm_listener *listen_node; +#ifdef CONFIG_INFINIBAND_NES_DEBUG __be32 tmp_addr = cpu_to_be32(dst_addr); - +#endif /* walk list and find cm_node associated with this session ID */ spin_lock_irqsave(&cm_core->listen_list_lock, flags); list_for_each_entry(listen_node, &cm_core->listen_list.list, list) { _ Patches currently in -mm which might be from helight.xu@xxxxxxxxx are drivers-infiniband-hw-nes-nes_cmc-fix-unused-var-warning.patch drivers-mtd-nand-cafe_nandc-fix-irq-handler-return-type.patch drivers-pci-hotplug-ibmphp_corec-fix-warning-due-to-missing-module_exit.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