diff mbox

[OPW,kernel] staging:rtl8821ae:Fix sparse warning of static function declaration

Message ID 20140310115855.GA16386@himangi-Inspiron-N5110gmail.com
State New, archived
Headers show

Commit Message

HIMANGI SARAOGI March 10, 2014, 11:58 a.m. UTC
This patch makes the function _rtl8821ae_map_hwqueue_to_fwqueue
static as it is used only in the file trx.c.

Signed-off-by: Himangi Saraogi <himangi774@gmail.com>
---
 drivers/staging/rtl8821ae/rtl8821ae/trx.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Waskiewicz Jr, Peter P March 11, 2014, 6:24 a.m. UTC | #1
On Mon, 2014-03-10 at 17:28 +0530, Himangi Saraogi wrote:
> This patch makes the function _rtl8821ae_map_hwqueue_to_fwqueue
> static as it is used only in the file trx.c.
> 
> Signed-off-by: Himangi Saraogi <himangi774@gmail.com>

Looks good, applied.

> ---
>  drivers/staging/rtl8821ae/rtl8821ae/trx.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/staging/rtl8821ae/rtl8821ae/trx.c b/drivers/staging/rtl8821ae/rtl8821ae/trx.c
> index 5f32464..dd0f6dc 100644
> --- a/drivers/staging/rtl8821ae/rtl8821ae/trx.c
> +++ b/drivers/staging/rtl8821ae/rtl8821ae/trx.c
> @@ -38,7 +38,7 @@
>  #include "led.h"
>  #include "dm.h"
>  
> -u8 _rtl8821ae_map_hwqueue_to_fwqueue(struct sk_buff *skb, u8 hw_queue)
> +static u8 _rtl8821ae_map_hwqueue_to_fwqueue(struct sk_buff *skb, u8 hw_queue)
>  {
>  	u16 fc = rtl_get_fc(skb);
>  
> -- 
> 1.7.9.5
>
diff mbox

Patch

diff --git a/drivers/staging/rtl8821ae/rtl8821ae/trx.c b/drivers/staging/rtl8821ae/rtl8821ae/trx.c
index 5f32464..dd0f6dc 100644
--- a/drivers/staging/rtl8821ae/rtl8821ae/trx.c
+++ b/drivers/staging/rtl8821ae/rtl8821ae/trx.c
@@ -38,7 +38,7 @@ 
 #include "led.h"
 #include "dm.h"
 
-u8 _rtl8821ae_map_hwqueue_to_fwqueue(struct sk_buff *skb, u8 hw_queue)
+static u8 _rtl8821ae_map_hwqueue_to_fwqueue(struct sk_buff *skb, u8 hw_queue)
 {
 	u16 fc = rtl_get_fc(skb);