mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
IB/core: const'ify inbuf in struct ib_udata
Userspace input buffer is not modified by kernel, so it can be 'const'. This is also a prerequisite to remove the implicit cast from INIT_UDATA(). Link: http://marc.info/[email protected]> Signed-off-by: Yann Droneaud <[email protected]> Signed-off-by: Roland Dreier <[email protected]>
This commit is contained in:
parent
374b105797
commit
309243ec14
2 changed files with 2 additions and 2 deletions
|
|
@ -978,7 +978,7 @@ struct ib_uobject {
|
|||
};
|
||||
|
||||
struct ib_udata {
|
||||
void __user *inbuf;
|
||||
const void __user *inbuf;
|
||||
void __user *outbuf;
|
||||
size_t inlen;
|
||||
size_t outlen;
|
||||
|
|
|
|||
Loading…
Reference in a new issue