usba parsing code should take const data pointers
The USBA framework has a large amount of code that deals with parsing descriptors that is anchored in the function usb_parse_data(9F). This currently doesn't take a const data pointer; however, it could and should. Enabling this to be const allows us to enforce constness further throughout the stack.
Fortunately, anything that was being passed as a char * can be taken as a const char * so we shouldn't have to worry about API or ABI compatability.
Updated by Electric Monk about 1 year ago
- Status changed from New to Closed
commit 0d2006e4703eda0f88de2e571bf9fb317552faa2 Author: Robert Mustacchi <firstname.lastname@example.org> Date: 2019-06-14T22:23:14.000Z 11177 usba should read the device binary object store 11178 USB topology could know about supported, minimum speeds 11179 usba parsing code should take const data pointers 11176 usba kernel module should be CERRWARN and smatch clean Reviewed by: John Levon <email@example.com> Reviewed by: Rob Johnston <firstname.lastname@example.org> Approved by: Gordon Ross <email@example.com>