linux/include
Al Viro f8e08a8466 [PATCH] reiserfs endianness: sanitize reiserfs_key union
Since we only access reiserfs_key ->u.k_offset_v2 guts in four helper
functions, we are free to sanitize those, as long as

- layout of the structure is unchanged (it's on-disk object)

- behaviour of these helpers is same as before.

Patch kills the mess with endianness-dependent bitfields and replaces them
with a single __le64.  Helpers are switched to straightforward shift/and/or.

Benefits:

- exact same definitions for little- and big-endian architectures; no ifdefs
  in sight.

- generate the same code on little-endian and improved on big-endian.

- doesn't rely on lousy bitfields handling in gcc codegenerator.

- happens to be standard C (unsigned long long is not a valid type for a
  bitfield; it's a gccism and not well-implemented one, at that).

Signed-off-by: Al Viro <viro@parcelfarce.linux.theplanet.co.uk>
Cc: <reiserfs-dev@namesys.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-05-01 08:59:19 -07:00
..
acpi Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
asm-alpha [PATCH] consolidate SIGEV_PAD_SIZE 2005-05-01 08:59:08 -07:00
asm-arm [PATCH] move SA_xxx defines to linux/signal.h 2005-05-01 08:59:02 -07:00
asm-arm26 [PATCH] move SA_xxx defines to linux/signal.h 2005-05-01 08:59:02 -07:00
asm-cris [PATCH] move SA_xxx defines to linux/signal.h 2005-05-01 08:59:02 -07:00
asm-frv [PATCH] misc verify_area cleanups 2005-05-01 08:59:08 -07:00
asm-generic [PATCH] consolidate SIGEV_PAD_SIZE 2005-05-01 08:59:08 -07:00
asm-h8300 [PATCH] move SA_xxx defines to linux/signal.h 2005-05-01 08:59:02 -07:00
asm-i386 [PATCH] misc verify_area cleanups 2005-05-01 08:59:08 -07:00
asm-ia64 [PATCH] consolidate SIGEV_PAD_SIZE 2005-05-01 08:59:08 -07:00
asm-m32r [PATCH] move SA_xxx defines to linux/signal.h 2005-05-01 08:59:02 -07:00
asm-m68k [PATCH] move SA_xxx defines to linux/signal.h 2005-05-01 08:59:02 -07:00
asm-m68knommu [PATCH] __attribute__ placement fixes 2005-05-01 08:59:09 -07:00
asm-mips [PATCH] consolidate SIGEV_PAD_SIZE 2005-05-01 08:59:08 -07:00
asm-parisc [PATCH] misc verify_area cleanups 2005-05-01 08:59:08 -07:00
asm-ppc [PATCH] move SA_xxx defines to linux/signal.h 2005-05-01 08:59:02 -07:00
asm-ppc64 [PATCH] move SA_xxx defines to linux/signal.h 2005-05-01 08:59:02 -07:00
asm-s390 [PATCH] consolidate SIGEV_PAD_SIZE 2005-05-01 08:59:08 -07:00
asm-sh [PATCH] misc verify_area cleanups 2005-05-01 08:59:08 -07:00
asm-sh64 [PATCH] misc verify_area cleanups 2005-05-01 08:59:08 -07:00
asm-sparc [PATCH] misc verify_area cleanups 2005-05-01 08:59:08 -07:00
asm-sparc64 [PATCH] consolidate SIGEV_PAD_SIZE 2005-05-01 08:59:08 -07:00
asm-um [PATCH] uml: commentary about forking flag 2005-05-01 08:58:56 -07:00
asm-v850 [PATCH] move SA_xxx defines to linux/signal.h 2005-05-01 08:59:02 -07:00
asm-x86_64 [PATCH] consolidate sys_shmat 2005-05-01 08:59:12 -07:00
linux [PATCH] reiserfs endianness: sanitize reiserfs_key union 2005-05-01 08:59:19 -07:00
math-emu Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
media Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mtd Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
net [PKT_SCHED]: Fix range in psched_tod_diff() to 0..bound 2005-04-28 12:14:37 -07:00
pcmcia Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
rxrpc Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
scsi merge by hand (scsi_device.h) 2005-04-18 13:45:00 -05:00
sound Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
video Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00