Linux-Wireless Archive on lore.kernel.org
 help / Atom feed
* [PATCH] staging: wilc1000: define wilc_get_stats_async as static
@ 2019-01-03 16:18 Juan Manuel Torres Palma
  2019-01-04  8:32 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Juan Manuel Torres Palma @ 2019-01-03 16:18 UTC (permalink / raw)
  To: linux-kernel
  Cc: linux-wireless, devel, gregkh, ajay.kathat, adham.abozaeid,
	j.m.torrespalma

Declare wilc_get_stats_async as static since it's only
used within the definition file scope.

Signed-off-by: Juan Manuel Torres Palma <j.m.torrespalma@gmail.com>
---
 drivers/staging/wilc1000/host_interface.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c
index 70c854d939ce..5dae6e7155d3 100644
--- a/drivers/staging/wilc1000/host_interface.c
+++ b/drivers/staging/wilc1000/host_interface.c
@@ -1992,7 +1992,7 @@ int wilc_get_rssi(struct wilc_vif *vif, s8 *rssi_level)
 	return result;
 }
 
-int wilc_get_stats_async(struct wilc_vif *vif, struct rf_info *stats)
+static int wilc_get_stats_async(struct wilc_vif *vif, struct rf_info *stats)
 {
 	int result;
 	struct host_if_msg *msg;
-- 
2.20.1


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

* Re: [PATCH] staging: wilc1000: define wilc_get_stats_async as static
  2019-01-03 16:18 [PATCH] staging: wilc1000: define wilc_get_stats_async as static Juan Manuel Torres Palma
@ 2019-01-04  8:32 ` Greg KH
  0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2019-01-04  8:32 UTC (permalink / raw)
  To: Juan Manuel Torres Palma
  Cc: linux-kernel, devel, ajay.kathat, linux-wireless, adham.abozaeid

On Thu, Jan 03, 2019 at 05:18:05PM +0100, Juan Manuel Torres Palma wrote:
> Declare wilc_get_stats_async as static since it's only
> used within the definition file scope.
> 
> Signed-off-by: Juan Manuel Torres Palma <j.m.torrespalma@gmail.com>
> ---
>  drivers/staging/wilc1000/host_interface.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c
> index 70c854d939ce..5dae6e7155d3 100644
> --- a/drivers/staging/wilc1000/host_interface.c
> +++ b/drivers/staging/wilc1000/host_interface.c
> @@ -1992,7 +1992,7 @@ int wilc_get_rssi(struct wilc_vif *vif, s8 *rssi_level)
>  	return result;
>  }
>  
> -int wilc_get_stats_async(struct wilc_vif *vif, struct rf_info *stats)
> +static int wilc_get_stats_async(struct wilc_vif *vif, struct rf_info *stats)

Someone else sent this same patch a few days before you did, sorry.

greg k-h

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

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-03 16:18 [PATCH] staging: wilc1000: define wilc_get_stats_async as static Juan Manuel Torres Palma
2019-01-04  8:32 ` Greg KH

Linux-Wireless Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-wireless/0 linux-wireless/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-wireless linux-wireless/ https://lore.kernel.org/linux-wireless \
		linux-wireless@vger.kernel.org linux-wireless@archiver.kernel.org
	public-inbox-index linux-wireless


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-wireless


AGPL code for this site: git clone https://public-inbox.org/ public-inbox