linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH][net-next] net: hinic: make functions set_ctrl0 and set_ctrl1 static
@ 2017-08-23  9:59 Colin King
  2017-08-23 10:08 ` Aviad Krawczyk (A)
  2017-08-24  5:20 ` David Miller
  0 siblings, 2 replies; 4+ messages in thread
From: Colin King @ 2017-08-23  9:59 UTC (permalink / raw)
  To: Aviad Krawczyk, netdev; +Cc: kernel-janitors, linux-kernel

From: Colin Ian King <colin.king@canonical.com>

The functions set_ctrl0 and set_ctrl1 are local to the source and do
not need to be in global scope, so make them static.

Cleans up sparse warnings:
symbol 'set_ctrl0' was not declared. Should it be static?
symbol 'set_ctrl1' was not declared. Should it be static?

Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
 drivers/net/ethernet/huawei/hinic/hinic_hw_eqs.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/ethernet/huawei/hinic/hinic_hw_eqs.c b/drivers/net/ethernet/huawei/hinic/hinic_hw_eqs.c
index cd09e6ef3aea..7cb8b9b94726 100644
--- a/drivers/net/ethernet/huawei/hinic/hinic_hw_eqs.c
+++ b/drivers/net/ethernet/huawei/hinic/hinic_hw_eqs.c
@@ -423,7 +423,7 @@ static irqreturn_t ceq_interrupt(int irq, void *data)
 	return IRQ_HANDLED;
 }
 
-void set_ctrl0(struct hinic_eq *eq)
+static void set_ctrl0(struct hinic_eq *eq)
 {
 	struct msix_entry *msix_entry = &eq->msix_entry;
 	enum hinic_eq_type type = eq->type;
@@ -474,7 +474,7 @@ void set_ctrl0(struct hinic_eq *eq)
 	}
 }
 
-void set_ctrl1(struct hinic_eq *eq)
+static void set_ctrl1(struct hinic_eq *eq)
 {
 	enum hinic_eq_type type = eq->type;
 	u32 page_size_val, elem_size;
-- 
2.14.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* RE: [PATCH][net-next] net: hinic: make functions set_ctrl0 and set_ctrl1 static
  2017-08-23  9:59 [PATCH][net-next] net: hinic: make functions set_ctrl0 and set_ctrl1 static Colin King
@ 2017-08-23 10:08 ` Aviad Krawczyk (A)
  2017-08-23 18:42   ` David Miller
  2017-08-24  5:20 ` David Miller
  1 sibling, 1 reply; 4+ messages in thread
From: Aviad Krawczyk (A) @ 2017-08-23 10:08 UTC (permalink / raw)
  To: Colin King, netdev; +Cc: kernel-janitors, linux-kernel

Thanks

-----Original Message-----
From: Colin King [mailto:colin.king@canonical.com] 
Sent: Wednesday, August 23, 2017 1:00 PM
To: Aviad Krawczyk (A); netdev@vger.kernel.org
Cc: kernel-janitors@vger.kernel.org; linux-kernel@vger.kernel.org
Subject: [PATCH][net-next] net: hinic: make functions set_ctrl0 and set_ctrl1 static

From: Colin Ian King <colin.king@canonical.com>

The functions set_ctrl0 and set_ctrl1 are local to the source and do not need to be in global scope, so make them static.

Cleans up sparse warnings:
symbol 'set_ctrl0' was not declared. Should it be static?
symbol 'set_ctrl1' was not declared. Should it be static?

Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
 drivers/net/ethernet/huawei/hinic/hinic_hw_eqs.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/ethernet/huawei/hinic/hinic_hw_eqs.c b/drivers/net/ethernet/huawei/hinic/hinic_hw_eqs.c
index cd09e6ef3aea..7cb8b9b94726 100644
--- a/drivers/net/ethernet/huawei/hinic/hinic_hw_eqs.c
+++ b/drivers/net/ethernet/huawei/hinic/hinic_hw_eqs.c
@@ -423,7 +423,7 @@ static irqreturn_t ceq_interrupt(int irq, void *data)
 	return IRQ_HANDLED;
 }
 
-void set_ctrl0(struct hinic_eq *eq)
+static void set_ctrl0(struct hinic_eq *eq)
 {
 	struct msix_entry *msix_entry = &eq->msix_entry;
 	enum hinic_eq_type type = eq->type;
@@ -474,7 +474,7 @@ void set_ctrl0(struct hinic_eq *eq)
 	}
 }
 
-void set_ctrl1(struct hinic_eq *eq)
+static void set_ctrl1(struct hinic_eq *eq)
 {
 	enum hinic_eq_type type = eq->type;
 	u32 page_size_val, elem_size;
--
2.14.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH][net-next] net: hinic: make functions set_ctrl0 and set_ctrl1 static
  2017-08-23 10:08 ` Aviad Krawczyk (A)
@ 2017-08-23 18:42   ` David Miller
  0 siblings, 0 replies; 4+ messages in thread
From: David Miller @ 2017-08-23 18:42 UTC (permalink / raw)
  To: aviad.krawczyk; +Cc: colin.king, netdev, kernel-janitors, linux-kernel

From: "Aviad Krawczyk (A)" <aviad.krawczyk@huawei.com>
Date: Wed, 23 Aug 2017 10:08:58 +0000

> Thanks

Please do not top-post.

Especially quoting the original message in the way that you did.

As a result of how you replied to this, this patch will show up
twice in my patchwork queue making more administrative work
for me.

Please learn how to properly reply in ASCII text using proper
traditional email quoting mechanisms just like other developers
do on this mailing list.

Every time you do this improperly, you make more work for everyone
on this mailing list.

Thank you.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH][net-next] net: hinic: make functions set_ctrl0 and set_ctrl1 static
  2017-08-23  9:59 [PATCH][net-next] net: hinic: make functions set_ctrl0 and set_ctrl1 static Colin King
  2017-08-23 10:08 ` Aviad Krawczyk (A)
@ 2017-08-24  5:20 ` David Miller
  1 sibling, 0 replies; 4+ messages in thread
From: David Miller @ 2017-08-24  5:20 UTC (permalink / raw)
  To: colin.king; +Cc: aviad.krawczyk, netdev, kernel-janitors, linux-kernel

From: Colin King <colin.king@canonical.com>
Date: Wed, 23 Aug 2017 10:59:40 +0100

> From: Colin Ian King <colin.king@canonical.com>
> 
> The functions set_ctrl0 and set_ctrl1 are local to the source and do
> not need to be in global scope, so make them static.
> 
> Cleans up sparse warnings:
> symbol 'set_ctrl0' was not declared. Should it be static?
> symbol 'set_ctrl1' was not declared. Should it be static?
> 
> Signed-off-by: Colin Ian King <colin.king@canonical.com>

Applied.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-08-24  5:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-23  9:59 [PATCH][net-next] net: hinic: make functions set_ctrl0 and set_ctrl1 static Colin King
2017-08-23 10:08 ` Aviad Krawczyk (A)
2017-08-23 18:42   ` David Miller
2017-08-24  5:20 ` David Miller

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).