linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ath9k_htc: use 'struct ath_htc_rx_status *' in call to ath9k_htc_err_stat_rx
@ 2014-05-19 21:07 John W. Linville
  2014-05-19 21:28 ` [ath9k-devel] " Oleksij Rempel
  0 siblings, 1 reply; 4+ messages in thread
From: John W. Linville @ 2014-05-19 21:07 UTC (permalink / raw)
  To: linux-wireless; +Cc: QCA ath9k Development, ath9k-devel, John W. Linville

  CC [M]  drivers/net/wireless/ath/ath9k/htc_drv_txrx.o
drivers/net/wireless/ath/ath9k/htc_drv_txrx.c: In function ‘ath9k_rx_prepare’:
drivers/net/wireless/ath/ath9k/htc_drv_txrx.c:1006:2: warning: passing argument 2 of ‘ath9k_htc_err_stat_rx’ from incompatible pointer type [enabled by default]
  ath9k_htc_err_stat_rx(priv, &rx_stats);
  ^
In file included from drivers/net/wireless/ath/ath9k/htc_drv_txrx.c:17:0:
drivers/net/wireless/ath/ath9k/htc.h:380:20: note: expected ‘struct ath_htc_rx_status *’ but argument is of type ‘struct ath_rx_status *’
 static inline void ath9k_htc_err_stat_rx(struct ath9k_htc_priv *priv,

Signed-off-by: John W. Linville <linville@tuxdriver.com>
---
Compile-test only...seems reasonable?

 drivers/net/wireless/ath/ath9k/htc_drv_txrx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/wireless/ath/ath9k/htc_drv_txrx.c b/drivers/net/wireless/ath/ath9k/htc_drv_txrx.c
index bb86eb2ffc95..c1490ddc2965 100644
--- a/drivers/net/wireless/ath/ath9k/htc_drv_txrx.c
+++ b/drivers/net/wireless/ath/ath9k/htc_drv_txrx.c
@@ -1003,7 +1003,7 @@ static bool ath9k_rx_prepare(struct ath9k_htc_priv *priv,
 	/* Copy everything from ath_htc_rx_status (HTC_RX_FRAME_HEADER).
 	 * After this, we can drop this part of skb. */
 	rx_status_htc_to_ath(&rx_stats, rxstatus);
-	ath9k_htc_err_stat_rx(priv, &rx_stats);
+	ath9k_htc_err_stat_rx(priv, rxstatus);
 	rx_status->mactime = be64_to_cpu(rxstatus->rs_tstamp);
 	skb_pull(skb, HTC_RX_FRAME_HEADER_SIZE);
 
-- 
1.9.0


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

* Re: [ath9k-devel] [PATCH] ath9k_htc: use 'struct ath_htc_rx_status *' in call to ath9k_htc_err_stat_rx
  2014-05-19 21:07 [PATCH] ath9k_htc: use 'struct ath_htc_rx_status *' in call to ath9k_htc_err_stat_rx John W. Linville
@ 2014-05-19 21:28 ` Oleksij Rempel
  2014-05-19 21:41   ` John W. Linville
  0 siblings, 1 reply; 4+ messages in thread
From: Oleksij Rempel @ 2014-05-19 21:28 UTC (permalink / raw)
  To: John W. Linville, linux-wireless; +Cc: ath9k-devel, QCA ath9k Development

[-- Attachment #1: Type: text/plain, Size: 1856 bytes --]

Am 19.05.2014 23:07, schrieb John W. Linville:
>   CC [M]  drivers/net/wireless/ath/ath9k/htc_drv_txrx.o
> drivers/net/wireless/ath/ath9k/htc_drv_txrx.c: In function ‘ath9k_rx_prepare’:
> drivers/net/wireless/ath/ath9k/htc_drv_txrx.c:1006:2: warning: passing argument 2 of ‘ath9k_htc_err_stat_rx’ from incompatible pointer type [enabled by default]
>   ath9k_htc_err_stat_rx(priv, &rx_stats);
>   ^
> In file included from drivers/net/wireless/ath/ath9k/htc_drv_txrx.c:17:0:
> drivers/net/wireless/ath/ath9k/htc.h:380:20: note: expected ‘struct ath_htc_rx_status *’ but argument is of type ‘struct ath_rx_status *’
>  static inline void ath9k_htc_err_stat_rx(struct ath9k_htc_priv *priv,
> 
> Signed-off-by: John W. Linville <linville@tuxdriver.com>
> ---
> Compile-test only...seems reasonable?

Hm... that is incorrect. Some missing patch?
"[PATCH 06/10] ath9k & ath9k_htc: move ath_rx_stats to cmn" did correct
change.
your patch will brake it.




> 
>  drivers/net/wireless/ath/ath9k/htc_drv_txrx.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/net/wireless/ath/ath9k/htc_drv_txrx.c b/drivers/net/wireless/ath/ath9k/htc_drv_txrx.c
> index bb86eb2ffc95..c1490ddc2965 100644
> --- a/drivers/net/wireless/ath/ath9k/htc_drv_txrx.c
> +++ b/drivers/net/wireless/ath/ath9k/htc_drv_txrx.c
> @@ -1003,7 +1003,7 @@ static bool ath9k_rx_prepare(struct ath9k_htc_priv *priv,
>  	/* Copy everything from ath_htc_rx_status (HTC_RX_FRAME_HEADER).
>  	 * After this, we can drop this part of skb. */
>  	rx_status_htc_to_ath(&rx_stats, rxstatus);
> -	ath9k_htc_err_stat_rx(priv, &rx_stats);
> +	ath9k_htc_err_stat_rx(priv, rxstatus);
>  	rx_status->mactime = be64_to_cpu(rxstatus->rs_tstamp);
>  	skb_pull(skb, HTC_RX_FRAME_HEADER_SIZE);
>  
> 


-- 
Regards,
Oleksij


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 278 bytes --]

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

* Re: [ath9k-devel] [PATCH] ath9k_htc: use 'struct ath_htc_rx_status *' in call to ath9k_htc_err_stat_rx
  2014-05-19 21:28 ` [ath9k-devel] " Oleksij Rempel
@ 2014-05-19 21:41   ` John W. Linville
  2014-05-19 22:00     ` Oleksij Rempel
  0 siblings, 1 reply; 4+ messages in thread
From: John W. Linville @ 2014-05-19 21:41 UTC (permalink / raw)
  To: Oleksij Rempel; +Cc: linux-wireless, ath9k-devel, QCA ath9k Development

On Mon, May 19, 2014 at 11:28:42PM +0200, Oleksij Rempel wrote:
> Am 19.05.2014 23:07, schrieb John W. Linville:
> >   CC [M]  drivers/net/wireless/ath/ath9k/htc_drv_txrx.o
> > drivers/net/wireless/ath/ath9k/htc_drv_txrx.c: In function ‘ath9k_rx_prepare’:
> > drivers/net/wireless/ath/ath9k/htc_drv_txrx.c:1006:2: warning: passing argument 2 of ‘ath9k_htc_err_stat_rx’ from incompatible pointer type [enabled by default]
> >   ath9k_htc_err_stat_rx(priv, &rx_stats);
> >   ^
> > In file included from drivers/net/wireless/ath/ath9k/htc_drv_txrx.c:17:0:
> > drivers/net/wireless/ath/ath9k/htc.h:380:20: note: expected ‘struct ath_htc_rx_status *’ but argument is of type ‘struct ath_rx_status *’
> >  static inline void ath9k_htc_err_stat_rx(struct ath9k_htc_priv *priv,
> > 
> > Signed-off-by: John W. Linville <linville@tuxdriver.com>
> > ---
> > Compile-test only...seems reasonable?
> 
> Hm... that is incorrect. Some missing patch?
> "[PATCH 06/10] ath9k & ath9k_htc: move ath_rx_stats to cmn" did correct
> change.
> your patch will brake it.

The patch you mention is in wireless-next and wireless-testing.
The warning only shows-up in my wireless-testing build, although the
configs are slightly different.

Would you be interested in tracking down the problem?

John
-- 
John W. Linville		Someday the world will need a hero, and you
linville@tuxdriver.com			might be all we have.  Be ready.

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

* Re: [ath9k-devel] [PATCH] ath9k_htc: use 'struct ath_htc_rx_status *' in call to ath9k_htc_err_stat_rx
  2014-05-19 21:41   ` John W. Linville
@ 2014-05-19 22:00     ` Oleksij Rempel
  0 siblings, 0 replies; 4+ messages in thread
From: Oleksij Rempel @ 2014-05-19 22:00 UTC (permalink / raw)
  To: John W. Linville; +Cc: linux-wireless, ath9k-devel, QCA ath9k Development

[-- Attachment #1: Type: text/plain, Size: 1470 bytes --]

Am 19.05.2014 23:41, schrieb John W. Linville:
> On Mon, May 19, 2014 at 11:28:42PM +0200, Oleksij Rempel wrote:
>> Am 19.05.2014 23:07, schrieb John W. Linville:
>>>   CC [M]  drivers/net/wireless/ath/ath9k/htc_drv_txrx.o
>>> drivers/net/wireless/ath/ath9k/htc_drv_txrx.c: In function ‘ath9k_rx_prepare’:
>>> drivers/net/wireless/ath/ath9k/htc_drv_txrx.c:1006:2: warning: passing argument 2 of ‘ath9k_htc_err_stat_rx’ from incompatible pointer type [enabled by default]
>>>   ath9k_htc_err_stat_rx(priv, &rx_stats);
>>>   ^
>>> In file included from drivers/net/wireless/ath/ath9k/htc_drv_txrx.c:17:0:
>>> drivers/net/wireless/ath/ath9k/htc.h:380:20: note: expected ‘struct ath_htc_rx_status *’ but argument is of type ‘struct ath_rx_status *’
>>>  static inline void ath9k_htc_err_stat_rx(struct ath9k_htc_priv *priv,
>>>
>>> Signed-off-by: John W. Linville <linville@tuxdriver.com>
>>> ---
>>> Compile-test only...seems reasonable?
>>
>> Hm... that is incorrect. Some missing patch?
>> "[PATCH 06/10] ath9k & ath9k_htc: move ath_rx_stats to cmn" did correct
>> change.
>> your patch will brake it.
> 
> The patch you mention is in wireless-next and wireless-testing.
> The warning only shows-up in my wireless-testing build, although the
> configs are slightly different.
> 
> Would you be interested in tracking down the problem?

Ok, thank you for the tip, i found it. Will send patch ASAP.


-- 
Regards,
Oleksij


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 278 bytes --]

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

end of thread, other threads:[~2014-05-19 22:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-19 21:07 [PATCH] ath9k_htc: use 'struct ath_htc_rx_status *' in call to ath9k_htc_err_stat_rx John W. Linville
2014-05-19 21:28 ` [ath9k-devel] " Oleksij Rempel
2014-05-19 21:41   ` John W. Linville
2014-05-19 22:00     ` Oleksij Rempel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).