提交 b4a08a10 编写于 作者: A Al Viro 提交者: Linus Torvalds

misc uml annotation and section fixes

Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 27bb628a
...@@ -165,7 +165,7 @@ static void __init kmap_init(void) ...@@ -165,7 +165,7 @@ static void __init kmap_init(void)
kmap_prot = PAGE_KERNEL; kmap_prot = PAGE_KERNEL;
} }
static void init_highmem(void) static void __init init_highmem(void)
{ {
pgd_t *pgd; pgd_t *pgd;
pud_t *pud; pud_t *pud;
......
...@@ -155,7 +155,7 @@ int get_fpregs(struct user_i387_struct __user *buf, struct task_struct *child) ...@@ -155,7 +155,7 @@ int get_fpregs(struct user_i387_struct __user *buf, struct task_struct *child)
if (err) if (err)
return err; return err;
n = copy_to_user((void *) buf, fpregs, sizeof(fpregs)); n = copy_to_user(buf, fpregs, sizeof(fpregs));
if(n > 0) if(n > 0)
return -EFAULT; return -EFAULT;
...@@ -168,7 +168,7 @@ int set_fpregs(struct user_i387_struct __user *buf, struct task_struct *child) ...@@ -168,7 +168,7 @@ int set_fpregs(struct user_i387_struct __user *buf, struct task_struct *child)
long fpregs[HOST_FP_SIZE]; long fpregs[HOST_FP_SIZE];
BUG_ON(sizeof(*buf) != sizeof(fpregs)); BUG_ON(sizeof(*buf) != sizeof(fpregs));
n = copy_from_user(fpregs, (void *) buf, sizeof(fpregs)); n = copy_from_user(fpregs, buf, sizeof(fpregs));
if (n > 0) if (n > 0)
return -EFAULT; return -EFAULT;
...@@ -185,7 +185,7 @@ int get_fpxregs(struct user_fxsr_struct __user *buf, struct task_struct *child) ...@@ -185,7 +185,7 @@ int get_fpxregs(struct user_fxsr_struct __user *buf, struct task_struct *child)
if (err) if (err)
return err; return err;
n = copy_to_user((void *) buf, fpregs, sizeof(fpregs)); n = copy_to_user(buf, fpregs, sizeof(fpregs));
if(n > 0) if(n > 0)
return -EFAULT; return -EFAULT;
...@@ -198,7 +198,7 @@ int set_fpxregs(struct user_fxsr_struct __user *buf, struct task_struct *child) ...@@ -198,7 +198,7 @@ int set_fpxregs(struct user_fxsr_struct __user *buf, struct task_struct *child)
long fpregs[HOST_XFP_SIZE]; long fpregs[HOST_XFP_SIZE];
BUG_ON(sizeof(*buf) != sizeof(fpregs)); BUG_ON(sizeof(*buf) != sizeof(fpregs));
n = copy_from_user(fpregs, (void *) buf, sizeof(fpregs)); n = copy_from_user(fpregs, buf, sizeof(fpregs));
if (n > 0) if (n > 0)
return -EFAULT; return -EFAULT;
......
...@@ -154,7 +154,7 @@ int get_fpregs(struct user_i387_struct __user *buf, struct task_struct *child) ...@@ -154,7 +154,7 @@ int get_fpregs(struct user_i387_struct __user *buf, struct task_struct *child)
if (err) if (err)
return err; return err;
n = copy_to_user((void *) buf, fpregs, sizeof(fpregs)); n = copy_to_user(buf, fpregs, sizeof(fpregs));
if(n > 0) if(n > 0)
return -EFAULT; return -EFAULT;
...@@ -167,7 +167,7 @@ int set_fpregs(struct user_i387_struct __user *buf, struct task_struct *child) ...@@ -167,7 +167,7 @@ int set_fpregs(struct user_i387_struct __user *buf, struct task_struct *child)
long fpregs[HOST_FP_SIZE]; long fpregs[HOST_FP_SIZE];
BUG_ON(sizeof(*buf) != sizeof(fpregs)); BUG_ON(sizeof(*buf) != sizeof(fpregs));
n = copy_from_user(fpregs, (void *) buf, sizeof(fpregs)); n = copy_from_user(fpregs, buf, sizeof(fpregs));
if (n > 0) if (n > 0)
return -EFAULT; return -EFAULT;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册