projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
liblockdep: Wrap kernel/locking/lockdep.c to allow usage from userspace
[platform/adaptation/renesas_rcar/renesas_kernel.git]
/
ipc
/
msgutil.c
diff --git
a/ipc/msgutil.c
b/ipc/msgutil.c
index
491e71f
..
7e70959
100644
(file)
--- a/
ipc/msgutil.c
+++ b/
ipc/msgutil.c
@@
-41,15
+41,15
@@
struct msg_msgseg {
/* the next part of the message follows immediately */
};
/* the next part of the message follows immediately */
};
-#define DATALEN_MSG (
int)(
PAGE_SIZE-sizeof(struct msg_msg))
-#define DATALEN_SEG (
int)(
PAGE_SIZE-sizeof(struct msg_msgseg))
+#define DATALEN_MSG (
(size_t)
PAGE_SIZE-sizeof(struct msg_msg))
+#define DATALEN_SEG (
(size_t)
PAGE_SIZE-sizeof(struct msg_msgseg))
-static struct msg_msg *alloc_msg(
in
t len)
+static struct msg_msg *alloc_msg(
size_
t len)
{
struct msg_msg *msg;
struct msg_msgseg **pseg;
{
struct msg_msg *msg;
struct msg_msgseg **pseg;
-
in
t alen;
+
size_
t alen;
alen = min(len, DATALEN_MSG);
msg = kmalloc(sizeof(*msg) + alen, GFP_KERNEL);
alen = min(len, DATALEN_MSG);
msg = kmalloc(sizeof(*msg) + alen, GFP_KERNEL);
@@
-80,12
+80,12
@@
out_err:
return NULL;
}
return NULL;
}
-struct msg_msg *load_msg(const void __user *src,
in
t len)
+struct msg_msg *load_msg(const void __user *src,
size_
t len)
{
struct msg_msg *msg;
struct msg_msgseg *seg;
int err = -EFAULT;
{
struct msg_msg *msg;
struct msg_msgseg *seg;
int err = -EFAULT;
-
in
t alen;
+
size_
t alen;
msg = alloc_msg(len);
if (msg == NULL)
msg = alloc_msg(len);
if (msg == NULL)
@@
-117,8
+117,8
@@
out_err:
struct msg_msg *copy_msg(struct msg_msg *src, struct msg_msg *dst)
{
struct msg_msgseg *dst_pseg, *src_pseg;
struct msg_msg *copy_msg(struct msg_msg *src, struct msg_msg *dst)
{
struct msg_msgseg *dst_pseg, *src_pseg;
-
in
t len = src->m_ts;
-
in
t alen;
+
size_
t len = src->m_ts;
+
size_
t alen;
BUG_ON(dst == NULL);
if (src->m_ts > dst->m_ts)
BUG_ON(dst == NULL);
if (src->m_ts > dst->m_ts)
@@
-147,9
+147,9
@@
struct msg_msg *copy_msg(struct msg_msg *src, struct msg_msg *dst)
return ERR_PTR(-ENOSYS);
}
#endif
return ERR_PTR(-ENOSYS);
}
#endif
-int store_msg(void __user *dest, struct msg_msg *msg,
in
t len)
+int store_msg(void __user *dest, struct msg_msg *msg,
size_
t len)
{
{
-
in
t alen;
+
size_
t alen;
struct msg_msgseg *seg;
alen = min(len, DATALEN_MSG);
struct msg_msgseg *seg;
alen = min(len, DATALEN_MSG);