* [PATCH] ata: libahci: make ahci_pmp_retry_softreset() as static
@ 2014-02-19 5:07 Daeseok Youn
2014-02-19 12:38 ` Sergei Shtylyov
0 siblings, 1 reply; 3+ messages in thread
From: Daeseok Youn @ 2014-02-19 5:07 UTC (permalink / raw)
To: tj; +Cc: linux-ide, linux-kernel
>From 2a428e5e45bca3fc38fad17b9e2e14c5e6514ca0 Mon Sep 17 00:00:00 2001
From: Daeseok Youn <daeseok.youn@gmail.com>
Date: Wed, 19 Feb 2014 10:56:37 +0900
Subject: [PATCH] ata: libahci: make ahci_pmp_retry_softreset() as static
sparse says:
drivers/ata/libahci.c:1390:5: warning:
symbol 'ahci_pmp_retry_softreset' was not declared. Should it be static?
Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>
---
drivers/ata/libahci.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/ata/libahci.c b/drivers/ata/libahci.c
index 36605ab..f9600fe 100644
--- a/drivers/ata/libahci.c
+++ b/drivers/ata/libahci.c
@@ -1387,7 +1387,7 @@ static int ahci_bad_pmp_check_ready(struct ata_link *link)
return ata_check_ready(status);
}
-int ahci_pmp_retry_softreset(struct ata_link *link, unsigned int *class,
+static int ahci_pmp_retry_softreset(struct ata_link *link, unsigned int *class,
unsigned long deadline)
{
struct ata_port *ap = link->ap;
--
1.7.9.5
---
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] ata: libahci: make ahci_pmp_retry_softreset() as static
2014-02-19 5:07 [PATCH] ata: libahci: make ahci_pmp_retry_softreset() as static Daeseok Youn
@ 2014-02-19 12:38 ` Sergei Shtylyov
2014-02-19 14:14 ` DaeSeok Youn
0 siblings, 1 reply; 3+ messages in thread
From: Sergei Shtylyov @ 2014-02-19 12:38 UTC (permalink / raw)
To: Daeseok Youn, tj; +Cc: linux-ide, linux-kernel
Hello.
On 19-0202014 9:07, Daeseok Youn wrote:
> From 2a428e5e45bca3fc38fad17b9e2e14c5e6514ca0 Mon Sep 17 00:00:00 2001
> From: Daeseok Youn <daeseok.youn@gmail.com>
> Date: Wed, 19 Feb 2014 10:56:37 +0900
> Subject: [PATCH] ata: libahci: make ahci_pmp_retry_softreset() as static
This header is not needed.
> sparse says:
> drivers/ata/libahci.c:1390:5: warning:
> symbol 'ahci_pmp_retry_softreset' was not declared. Should it be static?
> Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>
> ---
> drivers/ata/libahci.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> diff --git a/drivers/ata/libahci.c b/drivers/ata/libahci.c
> index 36605ab..f9600fe 100644
> --- a/drivers/ata/libahci.c
> +++ b/drivers/ata/libahci.c
> @@ -1387,7 +1387,7 @@ static int ahci_bad_pmp_check_ready(struct ata_link *link)
> return ata_check_ready(status);
> }
>
> -int ahci_pmp_retry_softreset(struct ata_link *link, unsigned int *class,
> +static int ahci_pmp_retry_softreset(struct ata_link *link, unsigned int *class,
> unsigned long deadline)
Realign this continuation line too, for it to start under *struct* on the
first line.
WBR, Sergei
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] ata: libahci: make ahci_pmp_retry_softreset() as static
2014-02-19 12:38 ` Sergei Shtylyov
@ 2014-02-19 14:14 ` DaeSeok Youn
0 siblings, 0 replies; 3+ messages in thread
From: DaeSeok Youn @ 2014-02-19 14:14 UTC (permalink / raw)
To: Sergei Shtylyov; +Cc: tj, linux-ide, linux-kernel
2014-02-19 21:38 GMT+09:00 Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>:
> Hello.
>
>
> On 19-0202014 9:07, Daeseok Youn wrote:
>
>> From 2a428e5e45bca3fc38fad17b9e2e14c5e6514ca0 Mon Sep 17 00:00:00 2001
>> From: Daeseok Youn <daeseok.youn@gmail.com>
>> Date: Wed, 19 Feb 2014 10:56:37 +0900
>> Subject: [PATCH] ata: libahci: make ahci_pmp_retry_softreset() as static
>
>
> This header is not needed.
Actually, this patch was made by "git format-patch" command and
attached to mail client.
>
>
>> sparse says:
>
>
>> drivers/ata/libahci.c:1390:5: warning:
>> symbol 'ahci_pmp_retry_softreset' was not declared. Should it be static?
>
>
>> Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>
>> ---
>> drivers/ata/libahci.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>
>> diff --git a/drivers/ata/libahci.c b/drivers/ata/libahci.c
>> index 36605ab..f9600fe 100644
>> --- a/drivers/ata/libahci.c
>> +++ b/drivers/ata/libahci.c
>> @@ -1387,7 +1387,7 @@ static int ahci_bad_pmp_check_ready(struct ata_link
>> *link)
>> return ata_check_ready(status);
>> }
>>
>> -int ahci_pmp_retry_softreset(struct ata_link *link, unsigned int *class,
>> +static int ahci_pmp_retry_softreset(struct ata_link *link, unsigned int
>> *class,
>> unsigned long deadline)
>
>
> Realign this continuation line too, for it to start under *struct* on
> the first line.
I will realign and send this patch again.
>
> WBR, Sergei
>
Thanks for your comment.
Daeseok Youn.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-02-19 14:14 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-19 5:07 [PATCH] ata: libahci: make ahci_pmp_retry_softreset() as static Daeseok Youn
2014-02-19 12:38 ` Sergei Shtylyov
2014-02-19 14:14 ` DaeSeok Youn
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox