From caa90ab1a93635121f21c003995ec2c834fb15d9 Mon Sep 17 00:00:00 2001 From: Larry Finger Date: Sat, 26 Apr 2014 18:55:14 +0200 Subject: [PATCH] staging: r8723au: Fix endian issues with TX and RX descriptors All descriptors are __le32, not unsigned int. The following sparse warnings are fixed: drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c:2626:24: warning: invalid assignment: &= drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c:2626:24: left side has type unsigned int drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c:2626:24: right side has type restricted __le32 drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c:2632:24: warning: invalid assignment: |= drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c:2632:24: left side has type unsigned int drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c:2632:24: right side has type restricted __le32 drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c:2873:22: warning: incorrect type in assignment (different base types) drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c:2873:22: expected unsigned int [unsigned] txdw0 drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c:2873:22: got restricted __le32 [usertype] drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c:2874:22: warning: incorrect type in assignment (different base types) drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c:2874:22: expected unsigned int [unsigned] txdw1 drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c:2874:22: got restricted __le32 [usertype] drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c:2875:22: warning: incorrect type in assignment (different base types) drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c:2875:22: expected unsigned int [unsigned] txdw2 drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c:2875:22: got restricted __le32 [usertype] drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c:2876:22: warning: incorrect type in assignment (different base types) drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c:2876:22: expected unsigned int [unsigned] txdw3 drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c:2876:22: got restricted __le32 [usertype] drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c:2877:22: warning: incorrect type in assignment (different base types) drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c:2877:22: expected unsigned int [unsigned] txdw4 drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c:2877:22: got restricted __le32 [usertype] drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c:2878:22: warning: incorrect type in assignment (different base types) drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c:2878:22: expected unsigned int [unsigned] txdw5 drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c:2878:22: got restricted __le32 [usertype] drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c:2879:22: warning: incorrect type in assignment (different base types) drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c:2879:22: expected unsigned int [unsigned] txdw6 drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c:2879:22: got restricted __le32 [usertype] drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c:2880:22: warning: incorrect type in assignment (different base types) drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c:2880:22: expected unsigned int [unsigned] txdw7 drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c:2880:22: got restricted __le32 [usertype] drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c:2903:24: warning: invalid assignment: |= drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c:2903:24: left side has type unsigned int drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c:2903:24: right side has type restricted __le32 drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c:2906:24: warning: invalid assignment: |= drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c:2906:24: left side has type unsigned int drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c:2906:24: right side has type restricted __le32 drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c:2910:24: warning: invalid assignment: |= drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c:2910:24: left side has type unsigned int drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c:2910:24: right side has type restricted __le32 drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c:2914:24: warning: invalid assignment: |= drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c:2914:24: left side has type unsigned int drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c:2914:24: right side has type restricted __le32 drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c:2919:32: warning: invalid assignment: |= drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c:2919:32: left side has type unsigned int drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c:2919:32: right side has type restricted __le32 drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c:2922:32: warning: invalid assignment: |= drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c:2922:32: left side has type unsigned int drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c:2922:32: right side has type restricted __le32 drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c:2924:32: warning: invalid assignment: |= drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c:2924:32: left side has type unsigned int drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c:2924:32: right side has type restricted __le32 drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c:2928:32: warning: invalid assignment: |= drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c:2928:32: left side has type unsigned int drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c:2928:32: right side has type restricted __le32 drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c:2932:24: warning: invalid assignment: |= drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c:2932:24: left side has type unsigned int drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c:2932:24: right side has type restricted __le32 drivers/staging/rtl8723au/hal/rtl8723au_recv.c:145:24: warning: cast to restricted __le32 drivers/staging/rtl8723au/hal/rtl8723au_recv.c:146:24: warning: cast to restricted __le32 drivers/staging/rtl8723au/hal/rtl8723au_recv.c:147:24: warning: cast to restricted __le32 drivers/staging/rtl8723au/hal/rtl8723au_recv.c:148:24: warning: cast to restricted __le32 drivers/staging/rtl8723au/hal/rtl8723au_recv.c:149:24: warning: cast to restricted __le32 drivers/staging/rtl8723au/hal/rtl8723au_recv.c:150:24: warning: cast to restricted __le32 drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:77:32: warning: invalid assignment: &= drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:77:32: left side has type unsigned int drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:77:32: right side has type restricted __le32 drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:82:32: warning: invalid assignment: |= drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:82:32: left side has type unsigned int drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:82:32: right side has type restricted __le32 drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:92:40: warning: invalid assignment: |= drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:92:40: left side has type unsigned int drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:92:40: right side has type restricted __le32 drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:97:40: warning: invalid assignment: |= drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:97:40: left side has type unsigned int drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:97:40: right side has type restricted __le32 drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:100:40: warning: invalid assignment: |= drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:100:40: left side has type unsigned int drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:100:40: right side has type restricted __le32 drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:183:32: warning: invalid assignment: |= drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:183:32: left side has type unsigned int drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:183:32: right side has type restricted __le32 drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:186:32: warning: invalid assignment: |= drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:186:32: left side has type unsigned int drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:186:32: right side has type restricted __le32 drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:188:32: warning: invalid assignment: |= drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:188:32: left side has type unsigned int drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:188:32: right side has type restricted __le32 drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:193:40: warning: invalid assignment: |= drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:193:40: left side has type unsigned int drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:193:40: right side has type restricted __le32 drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:195:40: warning: invalid assignment: |= drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:195:40: left side has type unsigned int drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:195:40: right side has type restricted __le32 drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:200:32: warning: invalid assignment: |= drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:200:32: left side has type unsigned int drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:200:32: right side has type restricted __le32 drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:204:40: warning: invalid assignment: |= drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:204:40: left side has type unsigned int drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:204:40: right side has type restricted __le32 drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:214:40: warning: invalid assignment: |= drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:214:40: left side has type unsigned int drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:214:40: right side has type restricted __le32 drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:215:40: warning: invalid assignment: |= drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:215:40: left side has type unsigned int drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:215:40: right side has type restricted __le32 drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:218:40: warning: invalid assignment: |= drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:218:40: left side has type unsigned int drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:218:40: right side has type restricted __le32 drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:224:40: warning: invalid assignment: |= drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:224:40: left side has type unsigned int drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:224:40: right side has type restricted __le32 drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:226:40: warning: invalid assignment: |= drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:226:40: left side has type unsigned int drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:226:40: right side has type restricted __le32 drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:229:48: warning: invalid assignment: |= drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:229:48: left side has type unsigned int drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:229:48: right side has type restricted __le32 drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:231:40: warning: invalid assignment: |= drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:231:40: left side has type unsigned int drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:231:40: right side has type restricted __le32 drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:235:32: warning: invalid assignment: |= drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:235:32: left side has type unsigned int drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:235:32: right side has type restricted __le32 drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:238:32: warning: invalid assignment: |= drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:238:32: left side has type unsigned int drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:238:32: right side has type restricted __le32 drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:240:32: warning: invalid assignment: |= drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:240:32: left side has type unsigned int drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:240:32: right side has type restricted __le32 drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:245:40: warning: invalid assignment: |= drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:245:40: left side has type unsigned int drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:245:40: right side has type restricted __le32 drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:248:32: warning: invalid assignment: |= drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:248:32: left side has type unsigned int drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:248:32: right side has type restricted __le32 drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:251:32: warning: invalid assignment: |= drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:251:32: left side has type unsigned int drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:251:32: right side has type restricted __le32 drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:254:32: warning: invalid assignment: |= drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:254:32: left side has type unsigned int drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:254:32: right side has type restricted __le32 drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:255:32: warning: invalid assignment: |= drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:255:32: left side has type unsigned int drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:255:32: right side has type restricted __le32 drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:257:32: warning: invalid assignment: |= drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:257:32: left side has type unsigned int drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:257:32: right side has type restricted __le32 drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:264:32: warning: invalid assignment: |= drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:264:32: left side has type unsigned int drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:264:32: right side has type restricted __le32 drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:266:32: warning: invalid assignment: |= drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:266:32: left side has type unsigned int drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:266:32: right side has type restricted __le32 drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:271:32: warning: invalid assignment: |= drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:271:32: left side has type unsigned int drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:271:32: right side has type restricted __le32 drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:274:32: warning: invalid assignment: |= drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:274:32: left side has type unsigned int drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:274:32: right side has type restricted __le32 drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:277:32: warning: invalid assignment: |= drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:277:32: left side has type unsigned int drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:277:32: right side has type restricted __le32 drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:288:32: warning: invalid assignment: |= drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:288:32: left side has type unsigned int drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:288:32: right side has type restricted __le32 drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:290:32: warning: invalid assignment: |= drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:290:32: left side has type unsigned int drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:290:32: right side has type restricted __le32 drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:294:24: warning: invalid assignment: |= drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:294:24: left side has type unsigned int drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:294:24: right side has type restricted __le32 drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:295:24: warning: invalid assignment: |= drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:295:24: left side has type unsigned int drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:295:24: right side has type restricted __le32 drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:296:24: warning: invalid assignment: |= drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:296:24: left side has type unsigned int drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:296:24: right side has type restricted __le32 drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:299:32: warning: invalid assignment: |= drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:299:32: left side has type unsigned int drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:299:32: right side has type restricted __le32 drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:306:32: warning: invalid assignment: |= drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:306:32: left side has type unsigned int drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:306:32: right side has type restricted __le32 drivers/staging/rtl8723au/hal/usb_ops_linux.c:473:20: warning: cast to restricted __le32 drivers/staging/rtl8723au/hal/usb_ops_linux.c:590:36: warning: cast to restricted __le32 The following new warnings are temporarily added: drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c:2873:24: warning: cast from restricted __le32 drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c:2874:24: warning: cast from restricted __le32 drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c:2875:24: warning: cast from restricted __le32 drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c:2876:24: warning: cast from restricted __le32 drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c:2877:24: warning: cast from restricted __le32 drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c:2878:24: warning: cast from restricted __le32 drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c:2879:24: warning: cast from restricted __le32 drivers/staging/rtl8723au/hal/rtl8723a_hal_init.c:2880:24: warning: cast from restricted __le32 drivers/staging/rtl8723au/hal/rtl8723au_recv.c:145:22: warning: incorrect type in assignment (different base types) drivers/staging/rtl8723au/hal/rtl8723au_recv.c:145:22: expected restricted __le32 [usertype] rxdw0 drivers/staging/rtl8723au/hal/rtl8723au_recv.c:145:22: got unsigned int [unsigned] [usertype] drivers/staging/rtl8723au/hal/rtl8723au_recv.c:146:22: warning: incorrect type in assignment (different base types) drivers/staging/rtl8723au/hal/rtl8723au_recv.c:146:22: expected restricted __le32 [usertype] rxdw1 drivers/staging/rtl8723au/hal/rtl8723au_recv.c:146:22: got unsigned int [unsigned] [usertype] drivers/staging/rtl8723au/hal/rtl8723au_recv.c:147:22: warning: incorrect type in assignment (different base types) drivers/staging/rtl8723au/hal/rtl8723au_recv.c:147:22: expected restricted __le32 [usertype] rxdw2 drivers/staging/rtl8723au/hal/rtl8723au_recv.c:147:22: got unsigned int [unsigned] [usertype] drivers/staging/rtl8723au/hal/rtl8723au_recv.c:148:22: warning: incorrect type in assignment (different base types) drivers/staging/rtl8723au/hal/rtl8723au_recv.c:148:22: expected restricted __le32 [usertype] rxdw3 drivers/staging/rtl8723au/hal/rtl8723au_recv.c:148:22: got unsigned int [unsigned] [usertype] drivers/staging/rtl8723au/hal/rtl8723au_recv.c:149:22: warning: incorrect type in assignment (different base types) drivers/staging/rtl8723au/hal/rtl8723au_recv.c:149:22: expected restricted __le32 [usertype] rxdw4 drivers/staging/rtl8723au/hal/rtl8723au_recv.c:149:22: got unsigned int [unsigned] [usertype] drivers/staging/rtl8723au/hal/rtl8723au_recv.c:150:22: warning: incorrect type in assignment (different base types) drivers/staging/rtl8723au/hal/rtl8723au_recv.c:150:22: expected restricted __le32 [usertype] rxdw5 drivers/staging/rtl8723au/hal/rtl8723au_recv.c:150:22: got unsigned int [unsigned] [usertype] drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:211:51: warning: incorrect type in argument 2 (different base types) drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:211:51: expected unsigned int [usertype] *pdw drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:211:51: got restricted __le32 * drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:212:51: warning: incorrect type in argument 2 (different base types) drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:212:51: expected unsigned int [usertype] *pdw drivers/staging/rtl8723au/hal/rtl8723au_xmit.c:212:51: got restricted __le32 * Signed-off-by: Larry Finger Signed-off-by: Jes Sorensen Signed-off-by: Greg Kroah-Hartman --- drivers/staging/rtl8723au/include/rtw_recv.h | 12 ++++++------ drivers/staging/rtl8723au/include/rtw_xmit.h | 16 ++++++++-------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/drivers/staging/rtl8723au/include/rtw_recv.h b/drivers/staging/rtl8723au/include/rtw_recv.h index d1866a6e831f..1f18af8dcc04 100644 --- a/drivers/staging/rtl8723au/include/rtw_recv.h +++ b/drivers/staging/rtl8723au/include/rtw_recv.h @@ -152,12 +152,12 @@ struct rx_pkt_attrib { #define RXDESC_OFFSET RXDESC_SIZE struct recv_stat { - unsigned int rxdw0; - unsigned int rxdw1; - unsigned int rxdw2; - unsigned int rxdw3; - unsigned int rxdw4; - unsigned int rxdw5; + __le32 rxdw0; + __le32 rxdw1; + __le32 rxdw2; + __le32 rxdw3; + __le32 rxdw4; + __le32 rxdw5; }; /* accesser of recv_priv: rtw_recv_entry23a(dispatch / passive level); \ diff --git a/drivers/staging/rtl8723au/include/rtw_xmit.h b/drivers/staging/rtl8723au/include/rtw_xmit.h index 65a33a07c8ee..5b879764518f 100644 --- a/drivers/staging/rtl8723au/include/rtw_xmit.h +++ b/drivers/staging/rtl8723au/include/rtw_xmit.h @@ -92,14 +92,14 @@ do { \ struct tx_desc { /* DWORD 0 */ - unsigned int txdw0; - unsigned int txdw1; - unsigned int txdw2; - unsigned int txdw3; - unsigned int txdw4; - unsigned int txdw5; - unsigned int txdw6; - unsigned int txdw7; + __le32 txdw0; + __le32 txdw1; + __le32 txdw2; + __le32 txdw3; + __le32 txdw4; + __le32 txdw5; + __le32 txdw6; + __le32 txdw7; }; union txdesc { -- GitLab