mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-18 10:13:57 +08:00
[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:
parent
42ed458aa5
commit
e2764a1e30
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user