kernel-fxtec-pro1x/include
H. Peter Anvin 6e16d89bcd Sanitize the type of struct user.u_ar0
struct user.u_ar0 is defined to contain a pointer offset on all
architectures in which it is defined (all architectures which define an
a.out format except SPARC.) However, it has a pointer type in the headers,
which is pointless -- <asm/user.h> is not exported to userspace, and it
just makes the code messy.

Redefine the field as "unsigned long" (which is the same size as a pointer
on all Linux architectures) and change the setting code to user offsetof()
instead of hand-coded arithmetic.

Cc: Linux Arch Mailing List <linux-arch@vger.kernel.org>
Cc: Bryan Wu <bryan.wu@analog.com>
Cc: Roman Zippel <zippel@linux-m68k.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Richard Henderson <rth@twiddle.net>
Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Cc: Russell King <rmk@arm.linux.org.uk>
Cc: Lennert Buytenhek <kernel@wantstofly.org>
Cc: Håvard Skinnemoen <hskinnemoen@atmel.com>
Cc: Mikael Starvik <starvik@axis.com>
Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
Cc: Tony Luck <tony.luck@intel.com>
Cc: Hirokazu Takata <takata@linux-m32r.org>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-02-07 08:42:30 -08:00
..
acpi include/acpi/: Spelling fixes 2008-02-03 17:07:16 +02:00
asm-alpha Sanitize the type of struct user.u_ar0 2008-02-07 08:42:30 -08:00
asm-arm Sanitize the type of struct user.u_ar0 2008-02-07 08:42:30 -08:00
asm-avr32 Sanitize the type of struct user.u_ar0 2008-02-07 08:42:30 -08:00
asm-blackfin Sanitize the type of struct user.u_ar0 2008-02-07 08:42:30 -08:00
asm-cris Sanitize the type of struct user.u_ar0 2008-02-07 08:42:30 -08:00
asm-frv Unexport asm/page.h 2008-02-07 08:42:30 -08:00
asm-generic Unexport asm/page.h 2008-02-07 08:42:30 -08:00
asm-h8300 Sanitize the type of struct user.u_ar0 2008-02-07 08:42:30 -08:00
asm-ia64 Sanitize the type of struct user.u_ar0 2008-02-07 08:42:30 -08:00
asm-m32r Sanitize the type of struct user.u_ar0 2008-02-07 08:42:30 -08:00
asm-m68k Sanitize the type of struct user.u_ar0 2008-02-07 08:42:30 -08:00
asm-m68knommu Cleanup asm/{elf,page,user}.h: #ifdef __KERNEL__ is no longer needed 2008-02-07 08:42:30 -08:00
asm-mips Sanitize the type of struct user.u_ar0 2008-02-07 08:42:30 -08:00
asm-parisc Cleanup asm/{elf,page,user}.h: #ifdef __KERNEL__ is no longer needed 2008-02-07 08:42:30 -08:00
asm-powerpc Sanitize the type of struct user.u_ar0 2008-02-07 08:42:30 -08:00
asm-ppc add mm argument to pte/pmd/pud/pgd_free 2008-02-05 09:44:18 -08:00
asm-s390 Sanitize the type of struct user.u_ar0 2008-02-07 08:42:30 -08:00
asm-sh Sanitize the type of struct user.u_ar0 2008-02-07 08:42:30 -08:00
asm-sparc Cleanup asm/{elf,page,user}.h: #ifdef __KERNEL__ is no longer needed 2008-02-07 08:42:30 -08:00
asm-sparc64 Cleanup asm/{elf,page,user}.h: #ifdef __KERNEL__ is no longer needed 2008-02-07 08:42:30 -08:00
asm-um uml: LDT mutex conversion 2008-02-05 09:44:31 -08:00
asm-v850 Sanitize the type of struct user.u_ar0 2008-02-07 08:42:30 -08:00
asm-x86 Sanitize the type of struct user.u_ar0 2008-02-07 08:42:30 -08:00
asm-xtensa Cleanup asm/{elf,page,user}.h: #ifdef __KERNEL__ is no longer needed 2008-02-07 08:42:30 -08:00
crypto
keys
linux Unexport asm/page.h 2008-02-07 08:42:30 -08:00
math-emu
media include/media/: Spelling fixes 2008-02-03 17:19:47 +02:00
mtd
net 9p: add support for sticky bit 2008-02-06 19:25:06 -06:00
pcmcia pcmcia: replace kio_addr_t with unsigned int everywhere 2008-02-05 09:44:08 -08:00
rdma
rxrpc
scsi include/scsi/: Spelling fixes 2008-02-03 17:47:00 +02:00
sound [ALSA] version 1.0.16rc2 2008-01-31 17:40:18 +01:00
video atmel_lcdfb: backlight control 2008-02-06 10:41:16 -08:00
xen
Kbuild