linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH][-next] mwifiex: make function mwifiex_ret_pkt_aggr_ctrl static
@ 2017-06-02  8:56 Colin King
  2017-06-05  8:23 ` Xinming Hu
  2017-06-13  7:01 ` [-next] " Kalle Valo
  0 siblings, 2 replies; 3+ messages in thread
From: Colin King @ 2017-06-02  8:56 UTC (permalink / raw)
  To: Amitkumar Karwar, Nishant Sarmukadam, Ganapathi Bhat, Xinming Hu,
	Kalle Valo, linux-wireless, netdev
  Cc: kernel-janitors, linux-kernel

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

function mwifiex_ret_pkt_aggr_ctrl can be made static as it does not
need to be in global scope.

Cleans up sparse warning: "symbol 'mwifiex_ret_pkt_aggr_ctrl' was not
declared. Should it be static?"

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

diff --git a/drivers/net/wireless/marvell/mwifiex/sta_cmdresp.c b/drivers/net/wireless/marvell/mwifiex/sta_cmdresp.c
index 3348fb3a7514..2945775e83c5 100644
--- a/drivers/net/wireless/marvell/mwifiex/sta_cmdresp.c
+++ b/drivers/net/wireless/marvell/mwifiex/sta_cmdresp.c
@@ -1154,8 +1154,8 @@ static int mwifiex_ret_chan_region_cfg(struct mwifiex_private *priv,
 	return 0;
 }
 
-int mwifiex_ret_pkt_aggr_ctrl(struct mwifiex_private *priv,
-			      struct host_cmd_ds_command *resp)
+static int mwifiex_ret_pkt_aggr_ctrl(struct mwifiex_private *priv,
+				     struct host_cmd_ds_command *resp)
 {
 	struct host_cmd_ds_pkt_aggr_ctrl *pkt_aggr_ctrl =
 					&resp->params.pkt_aggr_ctrl;
-- 
2.11.0

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

* Re:  [PATCH][-next] mwifiex: make function mwifiex_ret_pkt_aggr_ctrl static
  2017-06-02  8:56 [PATCH][-next] mwifiex: make function mwifiex_ret_pkt_aggr_ctrl static Colin King
@ 2017-06-05  8:23 ` Xinming Hu
  2017-06-13  7:01 ` [-next] " Kalle Valo
  1 sibling, 0 replies; 3+ messages in thread
From: Xinming Hu @ 2017-06-05  8:23 UTC (permalink / raw)
  To: Colin King, Amitkumar Karwar, Nishant Sarmukadam, Ganapathi Bhat,
	Kalle Valo, linux-wireless, netdev
  Cc: kernel-janitors, linux-kernel, Cathy Luo

Hi Colin,

> -----Original Message-----
> From: Colin King [mailto:colin.king@canonical.com]
> Sent: 2017年6月2日 16:57
> To: Amitkumar Karwar; Nishant Sarmukadam; Ganapathi Bhat; Xinming Hu;
> Kalle Valo; linux-wireless@vger.kernel.org; netdev@vger.kernel.org
> Cc: kernel-janitors@vger.kernel.org; linux-kernel@vger.kernel.org
> Subject: [EXT] [PATCH][-next] mwifiex: make function
> mwifiex_ret_pkt_aggr_ctrl static
> 
> External Email
> 
> ----------------------------------------------------------------------
> From: Colin Ian King <colin.king@canonical.com>
> 
> function mwifiex_ret_pkt_aggr_ctrl can be made static as it does not need to
> be in global scope.
> 
> Cleans up sparse warning: "symbol 'mwifiex_ret_pkt_aggr_ctrl' was not
> declared. Should it be static?"

Yes, it should be static, Thanks,

Regards,
Simon
> 
> Signed-off-by: Colin Ian King <colin.king@canonical.com>
> ---
>  drivers/net/wireless/marvell/mwifiex/sta_cmdresp.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/net/wireless/marvell/mwifiex/sta_cmdresp.c
> b/drivers/net/wireless/marvell/mwifiex/sta_cmdresp.c
> index 3348fb3a7514..2945775e83c5 100644
> --- a/drivers/net/wireless/marvell/mwifiex/sta_cmdresp.c
> +++ b/drivers/net/wireless/marvell/mwifiex/sta_cmdresp.c
> @@ -1154,8 +1154,8 @@ static int mwifiex_ret_chan_region_cfg(struct
> mwifiex_private *priv,
>  	return 0;
>  }
> 
> -int mwifiex_ret_pkt_aggr_ctrl(struct mwifiex_private *priv,
> -			      struct host_cmd_ds_command *resp)
> +static int mwifiex_ret_pkt_aggr_ctrl(struct mwifiex_private *priv,
> +				     struct host_cmd_ds_command *resp)
>  {
>  	struct host_cmd_ds_pkt_aggr_ctrl *pkt_aggr_ctrl =
>  					&resp->params.pkt_aggr_ctrl;
> --
> 2.11.0

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

* Re: [-next] mwifiex: make function mwifiex_ret_pkt_aggr_ctrl static
  2017-06-02  8:56 [PATCH][-next] mwifiex: make function mwifiex_ret_pkt_aggr_ctrl static Colin King
  2017-06-05  8:23 ` Xinming Hu
@ 2017-06-13  7:01 ` Kalle Valo
  1 sibling, 0 replies; 3+ messages in thread
From: Kalle Valo @ 2017-06-13  7:01 UTC (permalink / raw)
  To: Colin Ian King
  Cc: Amitkumar Karwar, Nishant Sarmukadam, Ganapathi Bhat, Xinming Hu,
	linux-wireless, netdev, kernel-janitors, linux-kernel

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

> From: Colin Ian King <colin.king@canonical.com>
> 
> function mwifiex_ret_pkt_aggr_ctrl can be made static as it does not
> need to be in global scope.
> 
> Cleans up sparse warning: "symbol 'mwifiex_ret_pkt_aggr_ctrl' was not
> declared. Should it be static?"
> 
> Signed-off-by: Colin Ian King <colin.king@canonical.com>

Patch applied to wireless-drivers-next.git, thanks.

292c333300ec mwifiex: make function mwifiex_ret_pkt_aggr_ctrl static

-- 
https://patchwork.kernel.org/patch/9761985/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches

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

end of thread, other threads:[~2017-06-13  7:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-02  8:56 [PATCH][-next] mwifiex: make function mwifiex_ret_pkt_aggr_ctrl static Colin King
2017-06-05  8:23 ` Xinming Hu
2017-06-13  7:01 ` [-next] " Kalle Valo

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