[PATCH 0/2] staging: wlan-ng: remove Sparse warnings for reading __le16

2017-03-13 Thread Gioh Kim
Hi, I found that many "warning: cast to restricted __le16" in staging/wlan-ng directory. I don't know why but many structures has u16 type variable, not __le16. And they are read by le16_to_cpu macro. So I introduced a wrapper macro to read u16 type variable without Sparse warning, and convert

[PATCH 0/2] staging: wlan-ng: remove Sparse warnings for reading __le16

2017-03-13 Thread Gioh Kim
Hi, I found that many "warning: cast to restricted __le16" in staging/wlan-ng directory. I don't know why but many structures has u16 type variable, not __le16. And they are read by le16_to_cpu macro. So I introduced a wrapper macro to read u16 type variable without Sparse warning, and convert