Bobby Powers
f75a8df3bd
headers_check: recursively search for linux/types.h inclusion
...
headers_check.pl currently emits some spurious warnings, especially for
the drm headers, about using __[us]{8,16,32,64} types without including
linux/types.h. Recursively search for types.h inclusion, avoiding
circular references.
Signed-off-by: Bobby Powers <bobbypowers@gmail.com >
Cc: Sam Ravnborg <sam@ravnborg.org >
Cc: Dave Airlie <airlied@linux.ie >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Michal Marek <mmarek@suse.cz >
2012-03-26 14:54:27 +02:00
Bobby Powers
10db4e1e4e
headers: include linux/types.h where appropriate
...
This addresses some header check warnings. DRM headers which include
"drm.h" have been excluded, as they indirectly include types.h.
Signed-off-by: Bobby Powers <bobbypowers@gmail.com >
Cc: Chris Ball <cjb@laptop.org >
Cc: Dave Airlie <airlied@linux.ie >
Cc: James Bottomley <James.Bottomley@HansenPartnership.com >
Cc: Takashi Iwai <tiwai@suse.de >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2012-03-23 16:58:31 -07:00
Bobby Powers
00194b2e84
x32: Only clear TIF_X32 flag once
...
Commits bb212724 and d1a797f3 both added a call to
clear_thread_flag(TIF_X32) under set_personality_64bit() - only one is
needed.
Signed-off-by: Bobby Powers <bobbypowers@gmail.com >
Link: http://lkml.kernel.org/r/1330228774-24223-1-git-send-email-bobbypowers@gmail.com
Signed-off-by: H. Peter Anvin <hpa@zytor.com >
2012-02-25 20:42:23 -08:00
Bobby Powers
ce5f7a99df
x32: Make sure TS_COMPAT is cleared for x32 tasks
...
If a process has a non-x32 ia32 personality and changes to x32, the
process would keep its TS_COMPAT flag. x32 uses the presence of the
x32 flag on a syscall to determine compat status, so make sure
TS_COMPAT is cleared.
Signed-off-by: Bobby Powers <bobbypowers@gmail.com >
Link: http://lkml.kernel.org/r/1330230338-25077-1-git-send-email-bobbypowers@gmail.com
Signed-off-by: H. Peter Anvin <hpa@zytor.com >
2012-02-25 20:42:18 -08:00
Bobby Powers
f044db4cb4
fs: Fix close_on_exec pointer in alloc_fdtable
...
alloc_fdtable allocates space for the open_fds and close_on_exec
bitfields together, as 2 * nr / BITS_PER_BYTE. close_on_exec needs to
point to open_fds + nr / BITS_PER_BYTE, not open_fds + nr /
BITS_PER_LONG, as introducted in 1fd36adc : Replace the fd_sets in
struct fdtable with an array of unsigned longs.
Signed-off-by: Bobby Powers <bobbypowers@gmail.com >
Link: http://lkml.kernel.org/r/1329888587-3087-1-git-send-email-bobbypowers@gmail.com
Acked-by: David Howells <dhowells@redhat.com >
Signed-off-by: H. Peter Anvin <hpa@zytor.com >
2012-02-23 18:28:52 -08:00