From: Jeff Garzik <jgarzik@pobox.com>
To: Pradeep Singh Rautela <rautelap@gmail.com>
Cc: linux-ide@vger.kernel.org, kernel-janitors@vger.kernel.org
Subject: Re: [PATCH v2.6.26-rc4] ata: Convert deprecated static spinlock_t
Date: Fri, 30 May 2008 22:11:22 +0000 [thread overview]
Message-ID: <48407B8A.4030507@pobox.com> (raw)
In-Reply-To: <20080529175814.GB4926@kernelpanic>
Pradeep Singh Rautela wrote:
> 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;
applied
WARNING: multiple messages have this Message-ID (diff)
From: Jeff Garzik <jgarzik@pobox.com>
To: Pradeep Singh Rautela <rautelap@gmail.com>
Cc: linux-ide@vger.kernel.org, kernel-janitors@vger.kernel.org
Subject: Re: [PATCH v2.6.26-rc4] ata: Convert deprecated static spinlock_t lock instance to static DEFINE_SPINLOCK(lock)
Date: Fri, 30 May 2008 18:11:22 -0400 [thread overview]
Message-ID: <48407B8A.4030507@pobox.com> (raw)
In-Reply-To: <20080529175814.GB4926@kernelpanic>
Pradeep Singh Rautela wrote:
> 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;
applied
next prev parent reply other threads:[~2008-05-30 22:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-29 17:58 [PATCH v2.6.26-rc4] ata: Convert deprecated static spinlock_t lock instance to static DEFINE_SPINLOCK(lock) Pradeep Singh Rautela
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 ` Jeff Garzik [this message]
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=48407B8A.4030507@pobox.com \
--to=jgarzik@pobox.com \
--cc=kernel-janitors@vger.kernel.org \
--cc=linux-ide@vger.kernel.org \
--cc=rautelap@gmail.com \
/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.