On 2017-04-18 20:38, Greg KH wrote: > On Tue, Apr 18, 2017 at 08:24:01PM +0200, Johan Svensson wrote: >> Change capability field to __le16 in struct ap_info_t, >> struct link_ap_info_t, and struct local_ap_t. >> This fixes a sparse warning. > What warning is it fixing? And are you sure this is the correct fix? > How did you test it? > > thanks, > > greg k-h Without the patch, sparse reports: drivers/staging/ks7010/ks_wlan_net.c:1459:24: warning: cast to restricted __le16 The capability field in the structs that are changed are already being treated as little endian i.e. the patch is correct if the le16_to_cpu conversion in ks_wlan_net.c:1459 is correct. regards, Johan Svensson _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel