ata: Convert deprecated static spinlock_t lock
Subsystems (2)
PATCH 1/1 ata: Convert deprecated static spinlock_t lock
Replace deprecated static spinlock_t instance to static DEFINE_SPINLOCK(lock).
Signed-off-by Pradeep Singh <[email protected]>
--- drivers/ata/libata-core.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/ata/libata-core.c +1 -1
@@ -5403,7 +5403,7 @@ static void ata_host_stop(struct device *gendev, void *res)*/ static void ata_finalize_port_ops (struct ata_port_operations *ops) { -static spinlock_t lock =SPIN_LOCK_UNLOCKED ; +static DEFINE_SPINLOCK (lock);const struct ata_port_operations *cur;void **begin = (void **)ops;void **end = (void **)&ops->inherits;
Signature · 1 line
1.5.5.1
Jeff Garzik
AppliedRe: [PATCH v2.6.26-rc4] ata: Convert deprecated static spinlock_t
Quoted 12 lines · Pradeep Singh Rautela
Replace deprecated static
spinlock_tinstance to staticDEFINE_SPINLOCK(lock).Signed-off-by Pradeep Singh <[email protected]>--- drivers/ata/libata-core.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)drivers/ata/libata-core.c +0
-0
drivers/ata/libata-core.c static void ata_host_stop(struct device *gendev, void *res) · line 5408
Quoted 7 lines
drivers/ata/libata-core.c +1
-1@@ -5403,7 +5403,7 @@ static void ata_host_stop(struct device *gendev, void *res)*/ static void ata_finalize_port_ops (struct ata_port_operations *ops) { -static spinlock_t lock =SPIN_LOCK_UNLOCKED ; +static DEFINE_SPINLOCK (lock);const struct ata_port_operations *cur;void **begin = (void **)ops;
applied