From: Rusty Russell Date: Wed, 2 May 2007 17:27:06 +0000 (+0200) Subject: [PATCH] x86-64: Remove unused set_seg_base X-Git-Tag: accepted/tizen/common/20141203.182822~31996^2~198 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f9d09645d6157fefa18ff75930737060c8092ddb;p=platform%2Fkernel%2Flinux-arm64.git [PATCH] x86-64: Remove unused set_seg_base The set_seg_base function isn't used anywhere (2.6.21-rc3-git1) Signed-off-by: Rusty Russell Signed-off-by: Andi Kleen --- diff --git a/include/asm-x86_64/desc.h b/include/asm-x86_64/desc.h index 913d6ac..7726e74 100644 --- a/include/asm-x86_64/desc.h +++ b/include/asm-x86_64/desc.h @@ -107,16 +107,6 @@ static inline void set_ldt_desc(unsigned cpu, void *addr, int size) DESC_LDT, size * 8 - 1); } -static inline void set_seg_base(unsigned cpu, int entry, void *base) -{ - struct desc_struct *d = &cpu_gdt(cpu)[entry]; - u32 addr = (u32)(u64)base; - BUG_ON((u64)base >> 32); - d->base0 = addr & 0xffff; - d->base1 = (addr >> 16) & 0xff; - d->base2 = (addr >> 24) & 0xff; -} - #define LDT_entry_a(info) \ ((((info)->base_addr & 0x0000ffff) << 16) | ((info)->limit & 0x0ffff)) /* Don't allow setting of the lm bit. It is useless anyways because