[PATCH-mm] kernel: depend on asm/byteorder.h defining the machine endianness

Previous thread: Linux 2.6.27-rc3 by Linus Torvalds on Tuesday, August 12, 2008 - 7:33 pm. (13 messages)

Next thread: Usefulness of p4-clockmod -- was --Re: cpufreq doesn't seem to work in Intel Q9300 by S K on Tuesday, August 12, 2008 - 9:53 pm. (1 message)
From: Harvey Harrison
Date: Tuesday, August 12, 2008 - 8:06 pm

Move the definition of the unaligned helpers into generic.h and test
the endianness from asm/byteorder.h, remove it from each asm/unaligned.h

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
---
Andrew, this must come after all arches have moved to the new byteorder
implementation as it depends on __LITTLE_ENDIAN/__BIG_ENDIAN
being defined in each archs' asm/byteorder.h  I'm sending it now as I
see you've staged all of the arch conversions and the removal of the
old implementation in -mm.

 arch/arm/include/asm/unaligned.h       |   11 -----------
 arch/avr32/include/asm/unaligned.h     |    3 ---
 arch/ia64/include/asm/unaligned.h      |    3 ---
 arch/m68knommu/include/asm/unaligned.h |   11 ++---------
 arch/powerpc/include/asm/unaligned.h   |    3 ---
 arch/s390/include/asm/unaligned.h      |    3 ---
 arch/sh/include/asm/unaligned.h        |   12 +++++-------
 arch/sparc/include/asm/unaligned.h     |    2 --
 include/asm-alpha/unaligned.h          |    3 ---
 include/asm-blackfin/unaligned.h       |    3 ---
 include/asm-cris/unaligned.h           |    3 ---
 include/asm-frv/unaligned.h            |    3 ---
 include/asm-h8300/unaligned.h          |    3 ---
 include/asm-m32r/unaligned.h           |   12 +++++-------
 include/asm-m68k/unaligned.h           |    3 ---
 include/asm-mips/unaligned.h           |   16 ++++++----------
 include/asm-mn10300/unaligned.h        |    3 ---
 include/asm-parisc/unaligned.h         |    2 --
 include/asm-x86/unaligned.h            |    4 ----
 include/asm-xtensa/unaligned.h         |   16 ++++++----------
 include/linux/unaligned/generic.h      |   10 ++++++++++
 21 files changed, 34 insertions(+), 95 deletions(-)

diff --git a/arch/arm/include/asm/unaligned.h b/arch/arm/include/asm/unaligned.h
index 44593a8..70088d3 100644
--- a/arch/arm/include/asm/unaligned.h
+++ b/arch/arm/include/asm/unaligned.h
@@ -5,15 +5,4 @@
 #include <linux/unaligned/be_byteshift.h>
 #include <linux/unaligned/generic.h>
 
-/*
- * Select ...
Previous thread: Linux 2.6.27-rc3 by Linus Torvalds on Tuesday, August 12, 2008 - 7:33 pm. (13 messages)

Next thread: Usefulness of p4-clockmod -- was --Re: cpufreq doesn't seem to work in Intel Q9300 by S K on Tuesday, August 12, 2008 - 9:53 pm. (1 message)