mwifiex: make function mwifiex_ret_pkt_aggr_ctrl static
authorColin Ian King <colin.king@canonical.com>
Fri, 2 Jun 2017 08:56:39 +0000 (09:56 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 13 Jun 2017 07:00:45 +0000 (10:00 +0300)
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>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/mwifiex/sta_cmdresp.c

index 3348fb3..2945775 100644 (file)
@@ -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;