mirror of https://github.com/torvalds/linux.git
The scsi_lock() and scsi_unlock() macros protect the sm_state and the single queue element srb for write access in the driver. As suggested, these names are very generic. Remove the macros from header file and call spin_lock_irq() & spin_unlock_irq() directly instead. Suggested-by: Dan Carpenter <dan.carpenter@linaro.org> Suggested-by: Julia Lawall <julia.lawall@inria.fr> Signed-off-by: Soumya Negi <soumya.negi97@gmail.com> Link: https://lore.kernel.org/r/75a5990190cf7a5d20d1c27237b90b583e68ced8.1697152251.git.soumya.negi97@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
||
|---|---|---|
| .. | ||
| Kconfig | ||
| Makefile | ||
| TODO | ||
| general.c | ||
| general.h | ||
| ms.c | ||
| ms.h | ||
| rtsx.c | ||
| rtsx.h | ||
| rtsx_card.c | ||
| rtsx_card.h | ||
| rtsx_chip.c | ||
| rtsx_chip.h | ||
| rtsx_scsi.c | ||
| rtsx_scsi.h | ||
| rtsx_sys.h | ||
| rtsx_transport.c | ||
| rtsx_transport.h | ||
| sd.c | ||
| sd.h | ||
| spi.c | ||
| spi.h | ||
| xd.c | ||
| xd.h | ||