Skip to content

Commit aeb415f

Browse files
Christoph HellwigIngo Molnar
authored andcommitted
x86/mm: Remove the unused set_memory_wt() function
Signed-off-by: Christoph Hellwig <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Cc: Andy Lutomirski <[email protected]> Cc: Borislav Petkov <[email protected]> Cc: Dave Hansen <[email protected]> Cc: H. Peter Anvin <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Rik van Riel <[email protected]> Cc: Thomas Gleixner <[email protected]> Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
1 parent 185be15 commit aeb415f

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

arch/x86/include/asm/set_memory.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ int _set_memory_wt(unsigned long addr, int numpages);
4040
int _set_memory_wb(unsigned long addr, int numpages);
4141
int set_memory_uc(unsigned long addr, int numpages);
4242
int set_memory_wc(unsigned long addr, int numpages);
43-
int set_memory_wt(unsigned long addr, int numpages);
4443
int set_memory_wb(unsigned long addr, int numpages);
4544
int set_memory_np(unsigned long addr, int numpages);
4645
int set_memory_4k(unsigned long addr, int numpages);

arch/x86/mm/pageattr.c

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1858,23 +1858,6 @@ int _set_memory_wt(unsigned long addr, int numpages)
18581858
cachemode2pgprot(_PAGE_CACHE_MODE_WT), 0);
18591859
}
18601860

1861-
int set_memory_wt(unsigned long addr, int numpages)
1862-
{
1863-
int ret;
1864-
1865-
ret = reserve_memtype(__pa(addr), __pa(addr) + numpages * PAGE_SIZE,
1866-
_PAGE_CACHE_MODE_WT, NULL);
1867-
if (ret)
1868-
return ret;
1869-
1870-
ret = _set_memory_wt(addr, numpages);
1871-
if (ret)
1872-
free_memtype(__pa(addr), __pa(addr) + numpages * PAGE_SIZE);
1873-
1874-
return ret;
1875-
}
1876-
EXPORT_SYMBOL_GPL(set_memory_wt);
1877-
18781861
int _set_memory_wb(unsigned long addr, int numpages)
18791862
{
18801863
/* WB cache mode is hard wired to all cache attribute bits being 0 */

0 commit comments

Comments
 (0)