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

Submitted by Pavel Tikhomirov on Sept. 21, 2019, 8:32 a.m.

Details

Message ID 20190921083227.8990-2-ptikhomirov@virtuozzo.com
State New
Series "block: backport writeback throttling"
Headers show

Commit Message

Pavel Tikhomirov Sept. 21, 2019, 8:32 a.m.
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@virtuozzo.com>
---
 arch/x86/include/asm/segment.h | 7 -------
 1 file changed, 7 deletions(-)

Patch hide | download patch | download mbox

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__ */