[PATCH] staging: ks7010: use le16_to_cpu() to access __le16 field

2017-06-04 Thread dick
From: Richard Porter Fixes sparse warning: drivers/staging/ks7010/ks_hostif.c:959:24: warning: restricted __le16 degrades to integer Signed-off-by: Richard Porter --- Every access of struct association_request_t.req_ies_size is wrapped with le16_to_cpu(), except the

Re: [PATCH] staging: ks7010: define ether_hdr.h_proto to be big-endian

2017-06-04 Thread Dick Porter
t; --- > > drivers/staging/ks7010/eap_packet.h | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > Does not apply to my tree at all :( Looks like someone beat me to it :( - Dick ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH] staging: ks7010: define ether_hdr.h_proto to be big-endian

2017-05-30 Thread Dick Porter
ghlighted by sparse, apart from when it is copied directly into an sk_buff data buffer (ks_hostif.c line 474) at offset ETH_ALEN * 2. The sk_buff data gets cast to a struct ethhdr in eth_type_trans() (ks_hostif.c line 510), which already has the h_proto field at the same offset with type __be16. - Dick ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

[PATCH] staging: ks7010: define ether_hdr.h_proto to be big-endian

2017-05-21 Thread dick
From: Richard Porter Fixes sparse warnings: drivers/staging/ks7010/ks_hostif.c:339:21: warning: cast to restricted __be16 drivers/staging/ks7010/ks_hostif.c:430:21: warning: cast to restricted __be16 drivers/staging/ks7010/ks_hostif.c:1226:21: warning: cast to restricted __be16