Re: [PATCH] staging: rtl8192u: Fix warnings about endianness

2017-02-17 Thread maomao
On February 16, 2017 4:31:16 AM GMT+08:00, Dan Carpenter wrote: >On Wed, Feb 15, 2017 at 09:33:15AM +0100, Arnd Bergmann wrote: >> I see the same warning was addressed very differently in 99277c1f9962 >> ("Staging: rtl8192e: Fix Sparse warning of cast to restricted

Re: [PATCH] staging: rtl8192u: Fix warnings about endianness

2017-02-17 Thread maomao
On February 16, 2017 4:31:16 AM GMT+08:00, Dan Carpenter wrote: >On Wed, Feb 15, 2017 at 09:33:15AM +0100, Arnd Bergmann wrote: >> I see the same warning was addressed very differently in 99277c1f9962 >> ("Staging: rtl8192e: Fix Sparse warning of cast to restricted __le16 >in >>

Re: [PATCH] staging: rtl8192u: Fix warnings about endianness

2017-02-16 Thread Greg KH
On Wed, Feb 15, 2017 at 05:06:27PM +0800, maomao xu wrote: > drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c:564:37: warning: incorrect > type in assignment (different base types) > drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c:564:37:expected > unsigned short [unsigned] [usertype] len

Re: [PATCH] staging: rtl8192u: Fix warnings about endianness

2017-02-16 Thread Greg KH
On Wed, Feb 15, 2017 at 05:06:27PM +0800, maomao xu wrote: > drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c:564:37: warning: incorrect > type in assignment (different base types) > drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c:564:37:expected > unsigned short [unsigned] [usertype] len

Re: [PATCH] staging: rtl8192u: Fix warnings about endianness

2017-02-15 Thread Dan Carpenter
On Wed, Feb 15, 2017 at 09:33:15AM +0100, Arnd Bergmann wrote: > I see the same warning was addressed very differently in 99277c1f9962 > ("Staging: rtl8192e: Fix Sparse warning of cast to restricted __le16 in > rtllib_crypt_tkip.c"), which was for a close relative of that driver. > > Only one of

Re: [PATCH] staging: rtl8192u: Fix warnings about endianness

2017-02-15 Thread Dan Carpenter
On Wed, Feb 15, 2017 at 09:33:15AM +0100, Arnd Bergmann wrote: > I see the same warning was addressed very differently in 99277c1f9962 > ("Staging: rtl8192e: Fix Sparse warning of cast to restricted __le16 in > rtllib_crypt_tkip.c"), which was for a close relative of that driver. > > Only one of

[PATCH] staging: rtl8192u: Fix warnings about endianness

2017-02-15 Thread maomao xu
drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c:564:37: warning: incorrect type in assignment (different base types) drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c:564:37:expected unsigned short [unsigned] [usertype] len drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c:564:37:got

[PATCH] staging: rtl8192u: Fix warnings about endianness

2017-02-15 Thread maomao xu
drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c:564:37: warning: incorrect type in assignment (different base types) drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c:564:37:expected unsigned short [unsigned] [usertype] len drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c:564:37:got

Re: [PATCH] staging: rtl8192u: Fix warnings about endianness

2017-02-15 Thread kbuild test robot
Hi maomao, [auto build test ERROR on staging/staging-testing] [also build test ERROR on v4.10-rc8 next-20170215] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

Re: [PATCH] staging: rtl8192u: Fix warnings about endianness

2017-02-15 Thread kbuild test robot
Hi maomao, [auto build test ERROR on staging/staging-testing] [also build test ERROR on v4.10-rc8 next-20170215] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

[PATCH] staging: rtl8192u: Fix warnings about endianness

2017-02-15 Thread maomao xu
drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c:564:37: warning: incorrect type in assignment (different base types) drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c:564:37:expected unsigned short [unsigned] [usertype] len drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c:564:37:got

[PATCH] staging: rtl8192u: Fix warnings about endianness

2017-02-15 Thread maomao xu
drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c:564:37: warning: incorrect type in assignment (different base types) drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c:564:37:expected unsigned short [unsigned] [usertype] len drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c:564:37:got

Re: [PATCH] staging: rtl8192u: Fix warnings about endianness

2017-02-15 Thread Arnd Bergmann
On Wed, Feb 15, 2017 at 8:54 AM, maomao xu wrote: > drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c:177:16: warning: > cast to restricted __le16 > drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c:177:16: warning: > cast to restricted __le16 >

Re: [PATCH] staging: rtl8192u: Fix warnings about endianness

2017-02-15 Thread Arnd Bergmann
On Wed, Feb 15, 2017 at 8:54 AM, maomao xu wrote: > drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c:177:16: warning: > cast to restricted __le16 > drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c:177:16: warning: > cast to restricted __le16 >

[PATCH] staging: rtl8192u: Fix warnings about endianness

2017-02-14 Thread maomao xu
drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c:177:16: warning: cast to restricted __le16 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c:177:16: warning: cast to restricted __le16 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c:177:16: warning: cast to restricted

[PATCH] staging: rtl8192u: Fix warnings about endianness

2017-02-14 Thread maomao xu
drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c:177:16: warning: cast to restricted __le16 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c:177:16: warning: cast to restricted __le16 drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c:177:16: warning: cast to restricted