The patch titled jsm: remove unused spinlock has been added to the -mm tree. Its filename is jsm-remove-unused-spinlock.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: jsm: remove unused spinlock From: Breno Leitao <leitao@xxxxxxxxxxxxxxxxxx> Remove the bd_lock spinlock (inside jsm_board structure). The lock is initialized in the probe function and not used anymore. Signed-off-by: Breno Leitao <leitao@xxxxxxxxxxxxxxxxxx> Cc: Alan Cox <alan@xxxxxxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/serial/jsm/jsm.h | 2 -- drivers/serial/jsm/jsm_driver.c | 1 - 2 files changed, 3 deletions(-) diff -puN drivers/serial/jsm/jsm.h~jsm-remove-unused-spinlock drivers/serial/jsm/jsm.h --- a/drivers/serial/jsm/jsm.h~jsm-remove-unused-spinlock +++ a/drivers/serial/jsm/jsm.h @@ -130,8 +130,6 @@ struct jsm_board struct pci_dev *pci_dev; u32 maxports; /* MAX ports this board can handle */ - spinlock_t bd_lock; /* Used to protect board */ - spinlock_t bd_intr_lock; /* Used to protect the poller tasklet and * the interrupt routine from each other. */ diff -puN drivers/serial/jsm/jsm_driver.c~jsm-remove-unused-spinlock drivers/serial/jsm/jsm_driver.c --- a/drivers/serial/jsm/jsm_driver.c~jsm-remove-unused-spinlock +++ a/drivers/serial/jsm/jsm_driver.c @@ -88,7 +88,6 @@ static int __devinit jsm_probe_one(struc else brd->maxports = 2; - spin_lock_init(&brd->bd_lock); spin_lock_init(&brd->bd_intr_lock); /* store which revision we have */ _ Patches currently in -mm which might be from leitao@xxxxxxxxxxxxxxxxxx are icom-converting-space-to-tabs.patch jsm-remove-unused-spinlock.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