All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2/2] Staging: rtl8192u: Make function static
@ 2015-03-26 13:13 Vatika Harlalka
  2015-03-26 19:06 ` [Outreachy kernel] " Jes Sorensen
  0 siblings, 1 reply; 3+ messages in thread
From: Vatika Harlalka @ 2015-03-26 13:13 UTC (permalink / raw)
  To: outreachy-kernel

This function is used in only one c file and so
its definition is removed from the header file
and it is declared as static.

Signed-off-by: Vatika Harlalka <vatikaharlalka@gmail.com>
---
 drivers/staging/rtl8192u/r8192U.h      | 1 -
 drivers/staging/rtl8192u/r8192U_core.c | 4 ++--
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/staging/rtl8192u/r8192U.h b/drivers/staging/rtl8192u/r8192U.h
index 6c2e438..221dbd7 100644
--- a/drivers/staging/rtl8192u/r8192U.h
+++ b/drivers/staging/rtl8192u/r8192U.h
@@ -1153,7 +1153,6 @@ typedef enum {
 
 bool init_firmware(struct net_device *dev);
 short rtl819xU_tx_cmd(struct net_device *dev, struct sk_buff *skb);
-short rtl8192_tx(struct net_device *dev, struct sk_buff *skb);
 
 u32 read_cam(struct net_device *dev, u8 addr);
 void write_cam(struct net_device *dev, u8 addr, u32 data);
diff --git a/drivers/staging/rtl8192u/r8192U_core.c b/drivers/staging/rtl8192u/r8192U_core.c
index cbcdcf2..7e3671c 100644
--- a/drivers/staging/rtl8192u/r8192U_core.c
+++ b/drivers/staging/rtl8192u/r8192U_core.c
@@ -942,7 +942,7 @@ static void rtl8192_data_hard_resume(struct net_device *dev)
 {
 	// FIXME !!
 }
-
+static short rtl8192_tx(struct net_device *dev, struct sk_buff *skb);
 /* this function TX data frames when the ieee80211 stack requires this.
  * It checks also if we need to stop the ieee tx queue, eventually do it
  */
@@ -1487,7 +1487,7 @@ static void tx_zero_isr(struct urb *tx_urb)
  * skb->cb will contain all the following information,
  * priority, morefrag, rate, &dev.
  * */
-short rtl8192_tx(struct net_device *dev, struct sk_buff *skb)
+static short rtl8192_tx(struct net_device *dev, struct sk_buff *skb)
 {
 	struct r8192_priv *priv = ieee80211_priv(dev);
 	cb_desc *tcb_desc = (cb_desc *)(skb->cb + MAX_DEV_ADDR_SIZE);
-- 
1.9.1



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

* Re: [Outreachy kernel] [PATCH 2/2] Staging: rtl8192u: Make function static
  2015-03-26 13:13 [PATCH 2/2] Staging: rtl8192u: Make function static Vatika Harlalka
@ 2015-03-26 19:06 ` Jes Sorensen
  2015-03-26 19:26   ` Vatika Harlalka
  0 siblings, 1 reply; 3+ messages in thread
From: Jes Sorensen @ 2015-03-26 19:06 UTC (permalink / raw)
  To: Vatika Harlalka, outreachy-kernel

On 03/26/15 09:13, Vatika Harlalka wrote:
> This function is used in only one c file and so
> its definition is removed from the header file
> and it is declared as static.
> 
> Signed-off-by: Vatika Harlalka <vatikaharlalka@gmail.com>
> ---
>  drivers/staging/rtl8192u/r8192U.h      | 1 -
>  drivers/staging/rtl8192u/r8192U_core.c | 4 ++--
>  2 files changed, 2 insertions(+), 3 deletions(-)

Hi,

Patches look OK, but you have to use a cover letter when you send
multi-commit patch sets.

Jes


> diff --git a/drivers/staging/rtl8192u/r8192U.h b/drivers/staging/rtl8192u/r8192U.h
> index 6c2e438..221dbd7 100644
> --- a/drivers/staging/rtl8192u/r8192U.h
> +++ b/drivers/staging/rtl8192u/r8192U.h
> @@ -1153,7 +1153,6 @@ typedef enum {
>  
>  bool init_firmware(struct net_device *dev);
>  short rtl819xU_tx_cmd(struct net_device *dev, struct sk_buff *skb);
> -short rtl8192_tx(struct net_device *dev, struct sk_buff *skb);
>  
>  u32 read_cam(struct net_device *dev, u8 addr);
>  void write_cam(struct net_device *dev, u8 addr, u32 data);
> diff --git a/drivers/staging/rtl8192u/r8192U_core.c b/drivers/staging/rtl8192u/r8192U_core.c
> index cbcdcf2..7e3671c 100644
> --- a/drivers/staging/rtl8192u/r8192U_core.c
> +++ b/drivers/staging/rtl8192u/r8192U_core.c
> @@ -942,7 +942,7 @@ static void rtl8192_data_hard_resume(struct net_device *dev)
>  {
>  	// FIXME !!
>  }
> -
> +static short rtl8192_tx(struct net_device *dev, struct sk_buff *skb);
>  /* this function TX data frames when the ieee80211 stack requires this.
>   * It checks also if we need to stop the ieee tx queue, eventually do it
>   */
> @@ -1487,7 +1487,7 @@ static void tx_zero_isr(struct urb *tx_urb)
>   * skb->cb will contain all the following information,
>   * priority, morefrag, rate, &dev.
>   * */
> -short rtl8192_tx(struct net_device *dev, struct sk_buff *skb)
> +static short rtl8192_tx(struct net_device *dev, struct sk_buff *skb)
>  {
>  	struct r8192_priv *priv = ieee80211_priv(dev);
>  	cb_desc *tcb_desc = (cb_desc *)(skb->cb + MAX_DEV_ADDR_SIZE);
> 



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

* Re: [Outreachy kernel] [PATCH 2/2] Staging: rtl8192u: Make function static
  2015-03-26 19:06 ` [Outreachy kernel] " Jes Sorensen
@ 2015-03-26 19:26   ` Vatika Harlalka
  0 siblings, 0 replies; 3+ messages in thread
From: Vatika Harlalka @ 2015-03-26 19:26 UTC (permalink / raw)
  To: Jes Sorensen; +Cc: outreachy-kernel

Hi Jes
I will send in a new patchset with a cover letter
for this.
Thanks :)


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

end of thread, other threads:[~2015-03-26 19:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-26 13:13 [PATCH 2/2] Staging: rtl8192u: Make function static Vatika Harlalka
2015-03-26 19:06 ` [Outreachy kernel] " Jes Sorensen
2015-03-26 19:26   ` Vatika Harlalka

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.