提交 e2764a1e 编写于 作者: A Alexey Dobriyan 提交者: Andi Kleen

[PATCH] x86-64: use BUILD_BUG_ON in FPU code

Signed-off-by: NAlexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: NAndi Kleen <ak@suse.de>
Cc: Andi Kleen <ak@suse.de>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
上级 42ed458a
...@@ -82,11 +82,8 @@ int save_i387(struct _fpstate __user *buf) ...@@ -82,11 +82,8 @@ int save_i387(struct _fpstate __user *buf)
struct task_struct *tsk = current; struct task_struct *tsk = current;
int err = 0; int err = 0;
{ BUILD_BUG_ON(sizeof(struct user_i387_struct) !=
extern void bad_user_i387_struct(void); sizeof(tsk->thread.i387.fxsave));
if (sizeof(struct user_i387_struct) != sizeof(tsk->thread.i387.fxsave))
bad_user_i387_struct();
}
if ((unsigned long)buf % 16) if ((unsigned long)buf % 16)
printk("save_i387: bad fpstate %p\n",buf); printk("save_i387: bad fpstate %p\n",buf);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册