Add missing const keyword to function parameter.
The umtx_key_get() function does not dereference the address off the userspace object. The pointer can safely be const.
This commit is contained in:
parent
92de34df2c
commit
52942c1eae
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=286257
@ -793,7 +793,7 @@ umtxq_sleep(struct umtx_q *uq, const char *wmesg, struct abs_timeout *abstime)
|
|||||||
* Convert userspace address into unique logical address.
|
* Convert userspace address into unique logical address.
|
||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
umtx_key_get(void *addr, int type, int share, struct umtx_key *key)
|
umtx_key_get(const void *addr, int type, int share, struct umtx_key *key)
|
||||||
{
|
{
|
||||||
struct thread *td = curthread;
|
struct thread *td = curthread;
|
||||||
vm_map_t map;
|
vm_map_t map;
|
||||||
|
@ -153,7 +153,7 @@ umtx_key_match(const struct umtx_key *k1, const struct umtx_key *k2)
|
|||||||
}
|
}
|
||||||
|
|
||||||
int umtx_copyin_timeout(const void *, struct timespec *);
|
int umtx_copyin_timeout(const void *, struct timespec *);
|
||||||
int umtx_key_get(void *, int, int, struct umtx_key *);
|
int umtx_key_get(const void *, int, int, struct umtx_key *);
|
||||||
void umtx_key_release(struct umtx_key *);
|
void umtx_key_release(struct umtx_key *);
|
||||||
struct umtx_q *umtxq_alloc(void);
|
struct umtx_q *umtxq_alloc(void);
|
||||||
void umtxq_free(struct umtx_q *);
|
void umtxq_free(struct umtx_q *);
|
||||||
|
Loading…
Reference in New Issue
Block a user