mirror of
https://github.com/torvalds/linux.git
synced 2024-11-19 10:31:48 +00:00
707505b58e
This patch replaces non-standard spinlock's macros. It is done using coccinelle and the following semantic patch: @@ expression x; @@ - DGNC_SPINLOCK_INIT(x) + spin_lock_init(&x) @@ expression x, y; @@ - DGNC_LOCK(x, y) + spin_lock_irqsave(&x, y) @@ expression x, y; @@ - DGNC_UNLOCK(x, y) + spin_unlock_irqrestore(&x, y) @used_by_lock exists@ typedef ulong; symbol lock_flags; position p1, p2; @@ ( ulong lock_flags@p1; | unsigned long lock_flags@p2; ) ... ( spin_lock_irqsave(..., lock_flags) | spin_unlock_irqrestore(..., lock_flags) ) @@ position used_by_lock.p1, used_by_lock.p2; @@ ( - ulong lock_flags@p1; + unsigned long flags; | - unsigned long lock_flags@p2; + unsigned long flags; ) <... - lock_flags + flags ...> Signed-off-by: Roberta Dobrescu <roberta.dobrescu@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
||
---|---|---|
.. | ||
dgnc_cls.c | ||
dgnc_cls.h | ||
dgnc_driver.c | ||
dgnc_driver.h | ||
dgnc_kcompat.h | ||
dgnc_mgmt.c | ||
dgnc_mgmt.h | ||
dgnc_neo.c | ||
dgnc_neo.h | ||
dgnc_pci.h | ||
dgnc_sysfs.c | ||
dgnc_sysfs.h | ||
dgnc_tty.c | ||
dgnc_tty.h | ||
dgnc_types.h | ||
dgnc_utils.c | ||
dgnc_utils.h | ||
digi.h | ||
dpacompat.h | ||
Kconfig | ||
Makefile | ||
TODO |