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

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

2017-02-17 Thread maomao xu
restricted __be16 [usertype] Signed-off-by: maomao xu <albert008...@gmail.com> diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c b/drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c index d1057b1..1e81c24 100644 --- a/drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c +++ b/d

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

2017-02-17 Thread maomao xu
restricted __be16 [usertype] Signed-off-by: maomao xu diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c b/drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c index d1057b1..1e81c24 100644 --- a/drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c +++ b/drivers/staging/rtl8192u/ieee80211

[PATCH] staging: rtl8192e: Fix endianness issue

2017-02-15 Thread maomao xu
Fix endianness issue about Mk16_le function Signed-off-by: maomao xu <albert008...@gmail.com> diff --git a/drivers/staging/rtl8192e/rtllib_crypt_tkip.c b/drivers/staging/rtl8192e/rtllib_crypt_tkip.c index ae103b0..05b66d4 100644 --- a/drivers/staging/rtl8192e/rtllib_crypt_tkip.c +++ b/d

[PATCH] staging: rtl8192e: Fix endianness issue

2017-02-15 Thread maomao xu
Fix endianness issue about Mk16_le function Signed-off-by: maomao xu diff --git a/drivers/staging/rtl8192e/rtllib_crypt_tkip.c b/drivers/staging/rtl8192e/rtllib_crypt_tkip.c index ae103b0..05b66d4 100644 --- a/drivers/staging/rtl8192e/rtllib_crypt_tkip.c +++ b/drivers/staging/rtl8192e

[PATCH] staging: rtl8192u: Fix warnings about endianness

2017-02-15 Thread maomao xu
restricted __be16 [usertype] Signed-off-by: maomao xu <albert008...@gmail.com> diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c b/drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c index d1057b1..1e81c24 100644 --- a/drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c +++ b/d

[PATCH] staging: rtl8192u: Fix warnings about endianness

2017-02-15 Thread maomao xu
restricted __be16 [usertype] Signed-off-by: maomao xu diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c b/drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c index d1057b1..1e81c24 100644 --- a/drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c +++ b/drivers/staging/rtl8192u/ieee80211

[PATCH] staging: rtl8192u: Fix warnings about endianness

2017-02-15 Thread maomao xu
restricted __be16 [usertype] Signed-off-by: maomao xu <albert008...@gmail.com> diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c b/drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c index d1057b1..1e81c24 100644 --- a/drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c +++ b/d

[PATCH] staging: rtl8192u: Fix warnings about endianness

2017-02-15 Thread maomao xu
restricted __be16 [usertype] Signed-off-by: maomao xu diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c b/drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c index d1057b1..1e81c24 100644 --- a/drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c +++ b/drivers/staging/rtl8192u/ieee80211

[PATCH] staging: rtl8192u: Fix warnings about endianness

2017-02-14 Thread maomao xu
to restricted __le16 Signed-off-by: maomao xu <albert008...@gmail.com> diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c b/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c index 2453413..fb171bd 100644 --- a/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_

[PATCH] staging: rtl8192u: Fix warnings about endianness

2017-02-14 Thread maomao xu
to restricted __le16 Signed-off-by: maomao xu diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c b/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c index 2453413..fb171bd 100644 --- a/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_tkip.c +++ b/drivers/staging

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

2017-02-14 Thread maomao xu
:got restricted __be16 [usertype] Signed-off-by: maomao xu <albert008...@gmail.com> diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c b/drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c index 949c496..a1da90a 100644 --- a/drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c

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

2017-02-14 Thread maomao xu
:got restricted __be16 [usertype] Signed-off-by: maomao xu diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c b/drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c index 949c496..a1da90a 100644 --- a/drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c +++ b/drivers/staging/rtl8192u

[PATCH] staging: rtl8712: Fix sparse warnings about endianness

2017-02-14 Thread maomao xu
drivers/staging/rtl8712/rtl871x_xmit.c:350:44: warning: restricted __le32 degrades to integer Signed-off-by: maomao xu <albert008...@gmail.com> diff --git a/drivers/staging/rtl8712/rtl871x_xmit.c b/drivers/staging/rtl8712/rtl871x_xmit.c index 4ab82ba..1c2ac28 100644 --- a/drivers/s

[PATCH] staging: rtl8712: Fix sparse warnings about endianness

2017-02-14 Thread maomao xu
drivers/staging/rtl8712/rtl871x_xmit.c:350:44: warning: restricted __le32 degrades to integer Signed-off-by: maomao xu diff --git a/drivers/staging/rtl8712/rtl871x_xmit.c b/drivers/staging/rtl8712/rtl871x_xmit.c index 4ab82ba..1c2ac28 100644 --- a/drivers/staging/rtl8712/rtl871x_xmit.c +++ b

[PATCH] staging: gdm724x: Fix sparse warnings

2017-02-14 Thread maomao xu
-by: maomao xu <albert008...@gmail.com> diff --git a/drivers/staging/gdm724x/gdm_lte.c b/drivers/staging/gdm724x/gdm_lte.c index a3e046c..ddec6d0 100644 --- a/drivers/staging/gdm724x/gdm_lte.c +++ b/drivers/staging/gdm724x/gdm_lte.c @@ -308,7 +308,7 @@ static int gdm_lte_emulate_ndp(struct sk_buff *

[PATCH] staging: gdm724x: Fix sparse warnings

2017-02-14 Thread maomao xu
-by: maomao xu diff --git a/drivers/staging/gdm724x/gdm_lte.c b/drivers/staging/gdm724x/gdm_lte.c index a3e046c..ddec6d0 100644 --- a/drivers/staging/gdm724x/gdm_lte.c +++ b/drivers/staging/gdm724x/gdm_lte.c @@ -308,7 +308,7 @@ static int gdm_lte_emulate_ndp(struct sk_buff *skb_in, u32 nic_type

[PATCH]staging: fbtft: Fix sparse warnings about endianness

2017-02-14 Thread maomao xu
Fixed sparse warnings about endianness. E.g.: warning: incorrect type in assignment (different base types) Signed-off-by: maomao xu <albert008...@gmail.com> diff --git a/drivers/staging/fbtft/fbtft-io.c b/drivers/staging/fbtft/fbtft-io.c index d868405..ffb9a3b 100644 --- a/d

[PATCH]staging: fbtft: Fix sparse warnings about endianness

2017-02-14 Thread maomao xu
Fixed sparse warnings about endianness. E.g.: warning: incorrect type in assignment (different base types) Signed-off-by: maomao xu diff --git a/drivers/staging/fbtft/fbtft-io.c b/drivers/staging/fbtft/fbtft-io.c index d868405..ffb9a3b 100644 --- a/drivers/staging/fbtft/fbtft-io.c

[PATCH] Staging: vt6656: Fixed multiple commenting codig style issues.

2015-12-30 Thread maomao xu
Fixed multiple comment blocks that didn't comply with the kernels coding style. Signed-off-by: maomao xu --- drivers/staging/vt6656/main_usb.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/drivers/staging/vt6656/main_usb.c b/drivers/staging/vt6656

[PATCH] Staging: vt6656: Fixed multiple commenting codig style issues.

2015-12-30 Thread maomao xu
Fixed multiple comment blocks that didn't comply with the kernels coding style. Signed-off-by: maomao xu <albert008...@gmail.com> --- drivers/staging/vt6656/main_usb.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/drivers/staging/vt6656/main_us

[PATCH] Staging: comedi: fix block comments coding style issue in comedi.h

2015-12-21 Thread maomao xu
Fix up block comments to make a trailing */ on a separate line Signed-off-by: maomao xu --- drivers/staging/comedi/comedi.h |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/comedi/comedi.h b/drivers/staging/comedi/comedi.h index 66edda1..ec5e59c 100644

[PATCH] Staging: comedi: fix block comments coding style issue in comedi.h

2015-12-21 Thread maomao xu
Fix up block comments to make a trailing */ on a separate line Signed-off-by: maomao xu <albert008...@gmail.com> --- drivers/staging/comedi/comedi.h |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/comedi/comedi.h b/drivers/staging/comedi/comedi.h

[PATCH] Staging: comedi: fix block comments coding style issue in comedi.h

2015-12-13 Thread maomao xu
Fix up block comments to make a trailing */ on a separate line Signed-off-by: maomao xu --- drivers/staging/comedi/comedi.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/comedi/comedi.h b/drivers/staging/comedi/comedi.h index 66edda1..ec5e59c 100644

[PATCH] Staging: comedi: fix block comments coding style issue in comedi.h

2015-12-13 Thread maomao xu
Fix up block comments to make a trailing */ on a separate line Signed-off-by: maomao xu <albert008...@gmail.com> --- drivers/staging/comedi/comedi.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/comedi/comedi.h b/drivers/staging/comedi/comedi.h

[PATCH] Staging: comedi: fix block comments coding style issue in comedi.h

2015-11-18 Thread maomao xu
Fix up block comments to make a trailing */ on a separate line Signed-off-by: maomao xu --- drivers/staging/comedi/comedi.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/comedi/comedi.h b/drivers/staging/comedi/comedi.h index 66edda1..ec5e59c 100644

[PATCH] Staging: comedi: fix block comments coding style issue in comedi.h

2015-11-18 Thread maomao xu
Fix up block comments to make a trailing */ on a separate line Signed-off-by: maomao xu <albert008...@gmail.com> --- drivers/staging/comedi/comedi.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/comedi/comedi.h b/drivers/staging/comedi/comedi.h