diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2008-07-02 11:33:43 +0000 |
---|---|---|
committer | Thomas Schwinge <tschwinge@gnu.org> | 2009-06-18 00:27:15 +0200 |
commit | bfd4ea31ecb7b983c2395d1e941ee0230f226f12 (patch) | |
tree | a7a7a6236a44ae2a4ae0131233853c982106f72e /linux/dev/include | |
parent | 557a43c37f50b3e696f7276f9edc9db6f1f6ab3b (diff) |
2008-07-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
* linux/dev/include/asm/segment.h (__put_user, __get_user): Add
always_inline attribute.
Diffstat (limited to 'linux/dev/include')
-rw-r--r-- | linux/dev/include/asm-i386/segment.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linux/dev/include/asm-i386/segment.h b/linux/dev/include/asm-i386/segment.h index d3f6d27..c7b3ff5 100644 --- a/linux/dev/include/asm-i386/segment.h +++ b/linux/dev/include/asm-i386/segment.h @@ -44,7 +44,7 @@ struct __segment_dummy { unsigned long a[100]; }; #define __sd(x) ((struct __segment_dummy *) (x)) #define __const_sd(x) ((const struct __segment_dummy *) (x)) -static inline void __put_user(unsigned long x, void * y, int size) +static inline void __attribute__((always_inline)) __put_user(unsigned long x, void * y, int size) { switch (size) { case 1: @@ -67,7 +67,7 @@ static inline void __put_user(unsigned long x, void * y, int size) } } -static inline unsigned long __get_user(const void * y, int size) +static inline unsigned long __attribute__((always_inline)) __get_user(const void * y, int size) { unsigned long result; |