source: scripts/patches/linux-2.6.14-fix_generic_get_unaligned.patch@ f6180d2

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since f6180d2 was bfbc4f6, checked in by Jim Gifford <clfs@…>, 19 years ago

r1048@server (orig r1046): ryan | 2006-01-12 00:57:42 -0800

r1082@rei: lfs | 2006-01-12 19:19:16 +1100
Update for kernel 2.6.14


  • Property mode set to 100644
File size: 652 bytes
  • linux-2.6.14/include/asm-generic/unaligned.h

    old new static inline void __ustw(__u16 val, __u  
    7878
    7979#define __get_unaligned(ptr, size) ({           \
    8080        const void *__gu_p = ptr;               \
    81         __typeof__(*(ptr)) val;                 \
     81        unsigned long val;                      \
    8282        switch (size) {                         \
    8383        case 1:                                 \
    8484                val = *(const __u8 *)__gu_p;    \
    static inline void __ustw(__u16 val, __u  
    9595        default:                                \
    9696                bad_unaligned_access_length();  \
    9797        };                                      \
    98         val;                                    \
     98        (__typeof__(*(ptr)))val;                \
    9999})
    100100
    101101#define __put_unaligned(val, ptr, size)         \
Note: See TracBrowser for help on using the repository browser.