Skip to content

Commit

Permalink
[PATCH] uml: include stddef.h correctly
Browse files Browse the repository at this point in the history
We were not including stddef.h in files that used offsetof.

One file was also including linux/stddef.h for no perciptible reason.

Signed-off-by: Jeff Dike <jdike@addtoit.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Jeff Dike authored and Linus Torvalds committed Dec 7, 2006
1 parent 8bcbdf6 commit 54f9a39
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion arch/um/sys-i386/ldt.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
* Licensed under the GPL
*/

#include "linux/stddef.h"
#include "linux/sched.h"
#include "linux/slab.h"
#include "linux/types.h"
Expand Down
2 changes: 1 addition & 1 deletion arch/um/sys-i386/ptrace_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
*/

#include <stdio.h>
#include <stddef.h>
#include <errno.h>
#include <unistd.h>
#include <linux/stddef.h>
#include "ptrace_user.h"
/* Grr, asm/user.h includes asm/ptrace.h, so has to follow ptrace_user.h */
#include <asm/user.h>
Expand Down
2 changes: 1 addition & 1 deletion arch/um/sys-i386/user-offsets.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include <signal.h>
#include <asm/ptrace.h>
#include <asm/user.h>
#include <linux/stddef.h>
#include <stddef.h>
#include <sys/poll.h>

#define DEFINE(sym, val) \
Expand Down

0 comments on commit 54f9a39

Please sign in to comment.