dect
/
linux-2.6
Archived
13
0
Fork 0

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

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andi Kleen <ak@suse.de>
Cc: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
This commit is contained in:
Alexey Dobriyan 2006-12-07 02:14:01 +01:00 committed by Andi Kleen
parent 42ed458aa5
commit e2764a1e30
1 changed files with 2 additions and 5 deletions

View File

@ -82,11 +82,8 @@ int save_i387(struct _fpstate __user *buf)
struct task_struct *tsk = current;
int err = 0;
{
extern void bad_user_i387_struct(void);
if (sizeof(struct user_i387_struct) != sizeof(tsk->thread.i387.fxsave))
bad_user_i387_struct();
}
BUILD_BUG_ON(sizeof(struct user_i387_struct) !=
sizeof(tsk->thread.i387.fxsave));
if ((unsigned long)buf % 16)
printk("save_i387: bad fpstate %p\n",buf);