* [PATCH] net: phy: marvell: make two functions static
@ 2017-06-02 11:14 Colin King
2017-06-02 14:00 ` Andrew Lunn
0 siblings, 1 reply; 3+ messages in thread
From: Colin King @ 2017-06-02 11:14 UTC (permalink / raw)
To: Andrew Lunn, Florian Fainelli, netdev, linux-kernel; +Cc: kernel-janitors
From: Colin Ian King <colin.king@canonical.com>
functions m88e1510_get_temp_critical and m88e1510_get_temp_alarm can be
made static as they not need to be in global scope.
Cleans up sparse warnings:
"symbol 'm88e1510_get_temp_alarm' was not declared. Should it be static?"
"symbol 'm88e1510_get_temp_critical' was not declared. Should it be
static?"
Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
drivers/net/phy/marvell.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/phy/marvell.c b/drivers/net/phy/marvell.c
index 7c2cde45c262..dc679cdf96be 100644
--- a/drivers/net/phy/marvell.c
+++ b/drivers/net/phy/marvell.c
@@ -1704,7 +1704,7 @@ static int m88e1510_get_temp(struct phy_device *phydev, long *temp)
return ret;
}
-int m88e1510_get_temp_critical(struct phy_device *phydev, long *temp)
+static int m88e1510_get_temp_critical(struct phy_device *phydev, long *temp)
{
int oldpage;
int ret;
@@ -1735,7 +1735,7 @@ int m88e1510_get_temp_critical(struct phy_device *phydev, long *temp)
return ret;
}
-int m88e1510_set_temp_critical(struct phy_device *phydev, long temp)
+static int m88e1510_set_temp_critical(struct phy_device *phydev, long temp)
{
int oldpage;
int ret;
--
2.11.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] net: phy: marvell: make two functions static
2017-06-02 11:14 [PATCH] net: phy: marvell: make two functions static Colin King
@ 2017-06-02 14:00 ` Andrew Lunn
2017-06-02 14:04 ` Colin Ian King
0 siblings, 1 reply; 3+ messages in thread
From: Andrew Lunn @ 2017-06-02 14:00 UTC (permalink / raw)
To: Colin King; +Cc: Florian Fainelli, netdev, linux-kernel, kernel-janitors
On Fri, Jun 02, 2017 at 12:14:24PM +0100, Colin King wrote:
> From: Colin Ian King <colin.king@canonical.com>
>
> functions m88e1510_get_temp_critical and m88e1510_get_temp_alarm can be
> made static as they not need to be in global scope.
>
> Cleans up sparse warnings:
> "symbol 'm88e1510_get_temp_alarm' was not declared. Should it be static?"
> "symbol 'm88e1510_get_temp_critical' was not declared. Should it be
> static?"
Hi Colin
What about m88e1510_get_temp_alarm()? That should also have a static.
Thanks
Andrew
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] net: phy: marvell: make two functions static
2017-06-02 14:00 ` Andrew Lunn
@ 2017-06-02 14:04 ` Colin Ian King
0 siblings, 0 replies; 3+ messages in thread
From: Colin Ian King @ 2017-06-02 14:04 UTC (permalink / raw)
To: Andrew Lunn; +Cc: Florian Fainelli, netdev, linux-kernel, kernel-janitors
On 02/06/17 15:00, Andrew Lunn wrote:
> On Fri, Jun 02, 2017 at 12:14:24PM +0100, Colin King wrote:
>> From: Colin Ian King <colin.king@canonical.com>
>>
>> functions m88e1510_get_temp_critical and m88e1510_get_temp_alarm can be
>> made static as they not need to be in global scope.
>>
>> Cleans up sparse warnings:
>> "symbol 'm88e1510_get_temp_alarm' was not declared. Should it be static?"
>> "symbol 'm88e1510_get_temp_critical' was not declared. Should it be
>> static?"
>
> Hi Colin
>
> What about m88e1510_get_temp_alarm()? That should also have a static.
Ah, good point, I somehow missed that one. I'll send a V2
Colin
>
> Thanks
> Andrew
> --
> To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-06-02 14:04 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-02 11:14 [PATCH] net: phy: marvell: make two functions static Colin King
2017-06-02 14:00 ` Andrew Lunn
2017-06-02 14:04 ` Colin Ian King
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).