linux-next.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH linux-next] staging: r8192ee: Adapt flush function prototype
@ 2014-06-07 17:39 Vincent Stehlé
  2014-06-07 23:52 ` Larry Finger
  2014-06-20  0:19 ` Greg Kroah-Hartman
  0 siblings, 2 replies; 4+ messages in thread
From: Vincent Stehlé @ 2014-06-07 17:39 UTC (permalink / raw)
  To: devel, linux-kernel, linux-next
  Cc: Vincent Stehlé, Greg Kroah-Hartman, Larry Finger

Commit 77be2c54c5bd 'mac80211: add vif to flush call' modifies the flush
operation prototype. Update r8192ee function accordingly.

This fixes the following compilation warnings:

  drivers/staging/rtl8192ee/core.c: At top level:
  drivers/staging/rtl8192ee/core.c:1599:2: warning: initialization from incompatible pointer type [enabled by default]
    .flush = rtl_op_flush,
    ^
  drivers/staging/rtl8192ee/core.c:1599:2: warning: (near initialization for ‘rtl92e_ops.flush’) [enabled by default]

Signed-off-by: Vincent Stehlé <vincent.stehle@laposte.net>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Larry Finger <Larry.Finger@lwfinger.net>
---

Hi,

Linux next gives a "heads up" that the flush function of staging driver r8192ee
needs to be adapted soon.

This can be seen with e.g. linux next-20140606 and x86 allmodconfig.

Also, r8192ee would benefit from the following patch:
http://www.spinics.net/lists/linux-driver-devel/msg47690.html

Best regards,

V.

 drivers/staging/rtl8192ee/core.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/rtl8192ee/core.c b/drivers/staging/rtl8192ee/core.c
index 76ea356..7f6accd 100644
--- a/drivers/staging/rtl8192ee/core.c
+++ b/drivers/staging/rtl8192ee/core.c
@@ -322,7 +322,7 @@ static void _rtl_add_wowlan_patterns(struct ieee80211_hw *hw,
 	struct rtl_mac *mac = &(rtlpriv->mac80211);
 	struct cfg80211_pkt_pattern *patterns = wow->patterns;
 	struct rtl_wow_pattern rtl_pattern;
-	u8 *pattern_os, *mask_os;
+	const u8 *pattern_os, *mask_os;
 	u8 mask[MAX_WOL_BIT_MASK_SIZE] = {0};
 	u8 content[MAX_WOL_PATTERN_SIZE] = {0};
 	u8 broadcast_addr[6] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
@@ -1561,7 +1561,7 @@ static void rtl_op_rfkill_poll(struct ieee80211_hw *hw)
  * before switch channle or power save, or tx buffer packet
  * maybe send after offchannel or rf sleep, this may cause
  * dis-association by AP */
-static void rtl_op_flush(struct ieee80211_hw *hw,
+static void rtl_op_flush(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
 			 u32 queues, bool drop)
 {
 	struct rtl_priv *rtlpriv = rtl_priv(hw);
-- 
2.0.0.rc2

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

* Re: [PATCH linux-next] staging: r8192ee: Adapt flush function prototype
  2014-06-07 17:39 [PATCH linux-next] staging: r8192ee: Adapt flush function prototype Vincent Stehlé
@ 2014-06-07 23:52 ` Larry Finger
  2014-06-20  0:19 ` Greg Kroah-Hartman
  1 sibling, 0 replies; 4+ messages in thread
From: Larry Finger @ 2014-06-07 23:52 UTC (permalink / raw)
  To: Vincent Stehlé, devel, linux-kernel, linux-next; +Cc: Greg Kroah-Hartman

On 06/07/2014 12:39 PM, Vincent Stehlé wrote:
> Commit 77be2c54c5bd 'mac80211: add vif to flush call' modifies the flush
> operation prototype. Update r8192ee function accordingly.
>
> This fixes the following compilation warnings:
>
>    drivers/staging/rtl8192ee/core.c: At top level:
>    drivers/staging/rtl8192ee/core.c:1599:2: warning: initialization from incompatible pointer type [enabled by default]
>      .flush = rtl_op_flush,
>      ^
>    drivers/staging/rtl8192ee/core.c:1599:2: warning: (near initialization for ‘rtl92e_ops.flush’) [enabled by default]
>
> Signed-off-by: Vincent Stehlé <vincent.stehle@laposte.net>
> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
> Cc: Larry Finger <Larry.Finger@lwfinger.net>

Ah yes, all the "benefits" of adding a new driver in one tree (staging) that 
depends of changes in another (wireless). I have been maintaining this patch in 
my own source for several weeks.

Acked-by: Larry Finger <Larry.Finger@lwfinger.net>

Thanks,

Larry

> ---
>
> Hi,
>
> Linux next gives a "heads up" that the flush function of staging driver r8192ee
> needs to be adapted soon.
>
> This can be seen with e.g. linux next-20140606 and x86 allmodconfig.
>
> Also, r8192ee would benefit from the following patch:
> http://www.spinics.net/lists/linux-driver-devel/msg47690.html
>
> Best regards,
>
> V.
>
>   drivers/staging/rtl8192ee/core.c | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/staging/rtl8192ee/core.c b/drivers/staging/rtl8192ee/core.c
> index 76ea356..7f6accd 100644
> --- a/drivers/staging/rtl8192ee/core.c
> +++ b/drivers/staging/rtl8192ee/core.c
> @@ -322,7 +322,7 @@ static void _rtl_add_wowlan_patterns(struct ieee80211_hw *hw,
>   	struct rtl_mac *mac = &(rtlpriv->mac80211);
>   	struct cfg80211_pkt_pattern *patterns = wow->patterns;
>   	struct rtl_wow_pattern rtl_pattern;
> -	u8 *pattern_os, *mask_os;
> +	const u8 *pattern_os, *mask_os;
>   	u8 mask[MAX_WOL_BIT_MASK_SIZE] = {0};
>   	u8 content[MAX_WOL_PATTERN_SIZE] = {0};
>   	u8 broadcast_addr[6] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
> @@ -1561,7 +1561,7 @@ static void rtl_op_rfkill_poll(struct ieee80211_hw *hw)
>    * before switch channle or power save, or tx buffer packet
>    * maybe send after offchannel or rf sleep, this may cause
>    * dis-association by AP */
> -static void rtl_op_flush(struct ieee80211_hw *hw,
> +static void rtl_op_flush(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
>   			 u32 queues, bool drop)
>   {
>   	struct rtl_priv *rtlpriv = rtl_priv(hw);
>

_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

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

* Re: [PATCH linux-next] staging: r8192ee: Adapt flush function prototype
  2014-06-07 17:39 [PATCH linux-next] staging: r8192ee: Adapt flush function prototype Vincent Stehlé
  2014-06-07 23:52 ` Larry Finger
@ 2014-06-20  0:19 ` Greg Kroah-Hartman
  2014-06-20  7:42   ` Vincent
  1 sibling, 1 reply; 4+ messages in thread
From: Greg Kroah-Hartman @ 2014-06-20  0:19 UTC (permalink / raw)
  To: Vincent Stehlé; +Cc: devel, linux-kernel, linux-next, Larry Finger

On Sat, Jun 07, 2014 at 07:39:19PM +0200, Vincent Stehlé wrote:
> Commit 77be2c54c5bd 'mac80211: add vif to flush call' modifies the flush
> operation prototype. Update r8192ee function accordingly.
> 
> This fixes the following compilation warnings:
> 
>   drivers/staging/rtl8192ee/core.c: At top level:
>   drivers/staging/rtl8192ee/core.c:1599:2: warning: initialization from incompatible pointer type [enabled by default]
>     .flush = rtl_op_flush,
>     ^
>   drivers/staging/rtl8192ee/core.c:1599:2: warning: (near initialization for ‘rtl92e_ops.flush’) [enabled by default]
> 
> Signed-off-by: Vincent Stehlé <vincent.stehle@laposte.net>
> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
> Cc: Larry Finger <Larry.Finger@lwfinger.net>
> ---
> 
> Hi,
> 
> Linux next gives a "heads up" that the flush function of staging driver r8192ee
> needs to be adapted soon.
> 
> This can be seen with e.g. linux next-20140606 and x86 allmodconfig.
> 
> Also, r8192ee would benefit from the following patch:
> http://www.spinics.net/lists/linux-driver-devel/msg47690.html

This doesn't apply as I think it's already done part of a merge...

greg k-h

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

* Re: [PATCH linux-next] staging: r8192ee: Adapt flush function prototype
  2014-06-20  0:19 ` Greg Kroah-Hartman
@ 2014-06-20  7:42   ` Vincent
  0 siblings, 0 replies; 4+ messages in thread
From: Vincent @ 2014-06-20  7:42 UTC (permalink / raw)
  To: Greg Kroah-Hartman; +Cc: devel, linux-kernel, linux-next, Larry Finger

On 06/20/2014 02:19 AM, Greg Kroah-Hartman wrote:
(..)
> This doesn't apply as I think it's already done part of a merge...

You are right, it seems to be in f9da455b93f6.

Thanks for your concern!

Best regards,

V.

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

end of thread, other threads:[~2014-06-20  7:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-07 17:39 [PATCH linux-next] staging: r8192ee: Adapt flush function prototype Vincent Stehlé
2014-06-07 23:52 ` Larry Finger
2014-06-20  0:19 ` Greg Kroah-Hartman
2014-06-20  7:42   ` Vincent

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