source:
scripts/patches/linux-2.6.14-fix_generic_get_unaligned.patch@
763fed9
Last change on this file since 763fed9 was bfbc4f6, checked in by , 19 years ago | |
---|---|
|
|
File size: 652 bytes |
-
linux-2.6.14/include/asm-generic/unaligned.h
old new static inline void __ustw(__u16 val, __u 78 78 79 79 #define __get_unaligned(ptr, size) ({ \ 80 80 const void *__gu_p = ptr; \ 81 __typeof__(*(ptr))val; \81 unsigned long val; \ 82 82 switch (size) { \ 83 83 case 1: \ 84 84 val = *(const __u8 *)__gu_p; \ … … static inline void __ustw(__u16 val, __u 95 95 default: \ 96 96 bad_unaligned_access_length(); \ 97 97 }; \ 98 val;\98 (__typeof__(*(ptr)))val; \ 99 99 }) 100 100 101 101 #define __put_unaligned(val, ptr, size) \
Note:
See TracBrowser
for help on using the repository browser.