diff options
author | Paul Mundt <lethal@linux-sh.org> | 2009-11-08 20:55:36 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-11-08 20:55:36 -0500 |
commit | 76d2318020bf0c0c497af986a25977196715a1b9 (patch) | |
tree | 25df17084b76eba7420c3fe9e6690ea5270e7dfd /arch/x86/include/asm/desc.h | |
parent | e9c4148fd4f03008ecbe3b673e25764232a15503 (diff) | |
parent | 969e46a8533a3e40ce2146f6764a963b1f5505da (diff) |
Merge branch 'sh/stable-updates'
Diffstat (limited to 'arch/x86/include/asm/desc.h')
-rw-r--r-- | arch/x86/include/asm/desc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/include/asm/desc.h b/arch/x86/include/asm/desc.h index e8de2f6f5ca5..617bd56b3070 100644 --- a/arch/x86/include/asm/desc.h +++ b/arch/x86/include/asm/desc.h | |||
@@ -288,7 +288,7 @@ static inline void load_LDT(mm_context_t *pc) | |||
288 | 288 | ||
289 | static inline unsigned long get_desc_base(const struct desc_struct *desc) | 289 | static inline unsigned long get_desc_base(const struct desc_struct *desc) |
290 | { | 290 | { |
291 | return desc->base0 | ((desc->base1) << 16) | ((desc->base2) << 24); | 291 | return (unsigned)(desc->base0 | ((desc->base1) << 16) | ((desc->base2) << 24)); |
292 | } | 292 | } |
293 | 293 | ||
294 | static inline void set_desc_base(struct desc_struct *desc, unsigned long base) | 294 | static inline void set_desc_base(struct desc_struct *desc, unsigned long base) |