Source buffers are not modified, let them be 'const'.

Signed-off-by: Yann Droneaud <[email protected]>
Link: http://mid.gmane.org/[email protected]
---
 include/rdma/ib_verbs.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/rdma/ib_verbs.h b/include/rdma/ib_verbs.h
index a84d3df..ef37c59 100644
--- a/include/rdma/ib_verbs.h
+++ b/include/rdma/ib_verbs.h
@@ -1353,12 +1353,12 @@ void *ib_get_client_data(struct ib_device *device, 
struct ib_client *client);
 void  ib_set_client_data(struct ib_device *device, struct ib_client *client,
                         void *data);
 
-static inline int ib_copy_from_udata(void *dest, struct ib_udata *udata, 
size_t len)
+static inline int ib_copy_from_udata(void *dest, const struct ib_udata *udata, 
size_t len)
 {
        return copy_from_user(dest, udata->inbuf, len) ? -EFAULT : 0;
 }
 
-static inline int ib_copy_to_udata(struct ib_udata *udata, void *src, size_t 
len)
+static inline int ib_copy_to_udata(struct ib_udata *udata, const void *src, 
size_t len)
 {
        return copy_to_user(udata->outbuf, src, len) ? -EFAULT : 0;
 }
-- 
1.8.3.1

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to