12 Jun, 2009

1 commit

  • These are all kernel internal interfaces that get copied
    around a lot. In most cases, architectures can provide
    their own optimized versions, but these generic versions
    can work as well.

    I have tried to use the most common contents of each
    header to allow existing architectures to migrate easily.

    Thanks to Remis for suggesting a number of cleanups.

    Signed-off-by: Remis Lima Baima
    Signed-off-by: Arnd Bergmann

    Arnd Bergmann
     

29 Apr, 2008

1 commit

  • Unaligned access is ok for the following arches:
    cris, m68k, mn10300, powerpc, s390, x86

    Arches that use the memmove implementation for native endian, and
    the byteshifting for the opposite endianness.
    h8300, m32r, xtensa

    Packed struct for native endian, byteshifting for other endian:
    alpha, blackfin, ia64, parisc, sparc, sparc64, mips, sh

    m86knommu is generic_be for Coldfire, otherwise unaligned access is ok.

    frv, arm chooses endianness based on compiler settings, uses the byteshifting
    versions. Remove the unaligned trap handler from frv as it is now unused.

    v850 is le, uses the byteshifting versions for both be and le.

    Remove the now unused asm-generic implementation.

    Signed-off-by: Harvey Harrison
    Acked-by: David S. Miller
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Harvey Harrison
     

01 Aug, 2007

1 commit

  • Use "__val" rather than "val" in the __get_unaligned macro in
    asm-generic/unaligned.h. This way gcc wont warn if you happen to also name
    something in the same scope "val".

    Signed-off-by: Mike Frysinger
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Mike Frysinger
     

18 Jul, 2007

1 commit

  • Verify that types would match for assignment (under sizeof, so we are safe from
    side effects or any code actually getting generated), then explicitly cast
    everywhere to the fixed-sized types. Kills a bunch of bogus warnings about
    constants being truncated (gcc, sparse), finds a pile of endianness problems
    hidden by old noise (sparse).

    Signed-off-by: Al Viro
    Signed-off-by: Linus Torvalds

    Al Viro
     

09 Mar, 2006

1 commit

  • If the 'ptr' is a const, this code cause "assignment of read-only variable"
    error on gcc 4.x.

    Use __u64 instead of __typeof__(*(ptr)) for temporary variable to get
    rid of errors on gcc 4.x.

    Signed-off-by: Atsushi Nemoto
    Cc: Ralf Baechle
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Atsushi Nemoto
     

08 Sep, 2005

1 commit


25 Apr, 2005

1 commit

  • Turns __get_unaligned() and __put_unaligned into macros. That is
    definitely safe; leaving them as inlines breaks on e.g. alpha [try to
    build ncpfs there and you'll get unresolved symbols since we end up
    getting __get_unaligned() not inlined].

    Signed-off-by: Al Viro
    Signed-off-by: Linus Torvalds

    Al Viro
     

17 Apr, 2005

1 commit

  • Initial git repository build. I'm not bothering with the full history,
    even though we have it. We can create a separate "historical" git
    archive of that later if we want to, and in the meantime it's about
    3.2GB when imported into git - space that would just make the early
    git days unnecessarily complicated, when we don't have a lot of good
    infrastructure for it.

    Let it rip!

    Linus Torvalds