[Devel] [PATCH RH7 1/9] x86/asm: remove the unused get_limit() method

Pavel Tikhomirov ptikhomirov at virtuozzo.com
Sat Sep 21 11:32:19 MSK 2019


https://jira.sw.ru/browse/PSBM-96243

(inspired by commit 72d64cc76941cde45e65e2a5b9fb81d527963645)
To fix compilation of ("blk-wbt: add general throttling mechanism")
Signed-off-by: Pavel Tikhomirov <ptikhomirov at virtuozzo.com>
---
 arch/x86/include/asm/segment.h | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/arch/x86/include/asm/segment.h b/arch/x86/include/asm/segment.h
index 1919a722f011..99413282b67d 100644
--- a/arch/x86/include/asm/segment.h
+++ b/arch/x86/include/asm/segment.h
@@ -274,13 +274,6 @@ do {									\
 #endif	/* X86_32_LAZY_GS */
 #endif	/* X86_32 */
 
-static inline unsigned long get_limit(unsigned long segment)
-{
-	unsigned long __limit;
-	asm("lsll %1,%0" : "=r" (__limit) : "r" (segment));
-	return __limit + 1;
-}
-
 #endif /* !__ASSEMBLY__ */
 #endif /* __KERNEL__ */
 
-- 
2.21.0



More information about the Devel mailing list