Tag: 707505b58eb9aeef294e975a6d7f5afd1c74dd0a

staging: dgnc: Replace non-standard spinlock’s macros

Author: Roberta Dobrescu <roberta.dobrescu@gmail.com> 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 …

Continue reading