Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1656036 > unrolled thread

[PATCH][-next] mwifiex: make function mwifiex_ret_pkt_aggr_ctrl static

Started byColin King <colin.king@canonical.com>
First post2017-06-02 11:00 +0200
Last post2017-06-05 10:30 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH][-next] mwifiex: make function mwifiex_ret_pkt_aggr_ctrl static Colin King <colin.king@canonical.com> - 2017-06-02 11:00 +0200
    Re:  [PATCH][-next] mwifiex: make function mwifiex_ret_pkt_aggr_ctrl  static Xinming Hu <huxm@marvell.com> - 2017-06-05 10:30 +0200

#1656036 — [PATCH][-next] mwifiex: make function mwifiex_ret_pkt_aggr_ctrl static

FromColin King <colin.king@canonical.com>
Date2017-06-02 11:00 +0200
Subject[PATCH][-next] mwifiex: make function mwifiex_ret_pkt_aggr_ctrl static
Message-ID<tNQB4-78P-33@gated-at.bofh.it>
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

[toc] | [next] | [standalone]


#1657374 — Re: [PATCH][-next] mwifiex: make function mwifiex_ret_pkt_aggr_ctrl static

FromXinming Hu <huxm@marvell.com>
Date2017-06-05 10:30 +0200
SubjectRe: [PATCH][-next] mwifiex: make function mwifiex_ret_pkt_aggr_ctrl static
Message-ID<tOVyH-rf-29@gated-at.bofh.it>
In reply to#1656036
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

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web