All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pradeep Singh Rautela <rautelap@gmail.com>
To: linux-ide@vger.kernel.org
Cc: kernel-janitors@vger.kernel.org, jgarzik@pobox.com
Subject: [PATCH v2.6.26-rc4] ata: Convert deprecated static spinlock_t lock
Date: Thu, 29 May 2008 17:59:35 +0000	[thread overview]
Message-ID: <20080529175814.GB4926@kernelpanic> (raw)

Replace deprecated static spinlock_t instance to static DEFINE_SPINLOCK(lock).

Signed-off-by: Pradeep Singh <rautelap@gmail.com>
---
 drivers/ata/libata-core.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index 3c89f20..cc816ca 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
@@ -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;
-- 
1.5.5.1


WARNING: multiple messages have this Message-ID (diff)
From: Pradeep Singh Rautela <rautelap@gmail.com>
To: linux-ide@vger.kernel.org
Cc: kernel-janitors@vger.kernel.org, jgarzik@pobox.com
Subject: [PATCH v2.6.26-rc4] ata: Convert deprecated static spinlock_t lock instance to static DEFINE_SPINLOCK(lock)
Date: Thu, 29 May 2008 23:28:14 +0530	[thread overview]
Message-ID: <20080529175814.GB4926@kernelpanic> (raw)

Replace deprecated static spinlock_t instance to static DEFINE_SPINLOCK(lock).

Signed-off-by: Pradeep Singh <rautelap@gmail.com>
---
 drivers/ata/libata-core.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index 3c89f20..cc816ca 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
@@ -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;
-- 
1.5.5.1


             reply	other threads:[~2008-05-29 17:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-29 17:58 Pradeep Singh Rautela [this message]
2008-05-29 17:59 ` [PATCH v2.6.26-rc4] ata: Convert deprecated static spinlock_t lock Pradeep Singh Rautela
2008-05-30 22:11 ` [PATCH v2.6.26-rc4] ata: Convert deprecated static spinlock_t Jeff Garzik
2008-05-30 22:11   ` [PATCH v2.6.26-rc4] ata: Convert deprecated static spinlock_t lock instance to static DEFINE_SPINLOCK(lock) Jeff Garzik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080529175814.GB4926@kernelpanic \
    --to=rautelap@gmail.com \
    --cc=jgarzik@pobox.com \
    --cc=kernel-janitors@vger.kernel.org \
    --cc=linux-ide@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.