All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jes Sorensen <jes.sorensen@gmail.com>
To: Vatika Harlalka <vatikaharlalka@gmail.com>,
	 outreachy-kernel@googlegroups.com
Subject: Re: [Outreachy kernel] [PATCH 2/2] Staging: rtl8192u: Make function static
Date: Thu, 26 Mar 2015 15:06:24 -0400	[thread overview]
Message-ID: <551458B0.9040403@gmail.com> (raw)
In-Reply-To: <20150326131326.GA9213@akanksha>

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



  reply	other threads:[~2015-03-26 19:06 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-26 13:13 [PATCH 2/2] Staging: rtl8192u: Make function static Vatika Harlalka
2015-03-26 19:06 ` Jes Sorensen [this message]
2015-03-26 19:26   ` [Outreachy kernel] " Vatika Harlalka

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=551458B0.9040403@gmail.com \
    --to=jes.sorensen@gmail.com \
    --cc=outreachy-kernel@googlegroups.com \
    --cc=vatikaharlalka@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.