Skip to content

Commit

Permalink
x86/pat: Remove the unused set_pages_array_wt() function
Browse files Browse the repository at this point in the history
Commit

  623dffb ("x86/mm/pat: Add set_memory_wt() for Write-Through type")

added it but there were no users.

  [ bp: Add a commit message. ]

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lore.kernel.org/r/20220223072852.616143-1-hch@lst.de
  • Loading branch information
Christoph Hellwig authored and Borislav Petkov committed Feb 23, 2022
1 parent cfb9244 commit 4509d95
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion arch/x86/include/asm/set_memory.h
Expand Up @@ -53,7 +53,6 @@ int set_memory_global(unsigned long addr, int numpages);

int set_pages_array_uc(struct page **pages, int addrinarray);
int set_pages_array_wc(struct page **pages, int addrinarray);
int set_pages_array_wt(struct page **pages, int addrinarray);
int set_pages_array_wb(struct page **pages, int addrinarray);

/*
Expand Down
6 changes: 0 additions & 6 deletions arch/x86/mm/pat/set_memory.c
Expand Up @@ -2121,12 +2121,6 @@ int set_pages_array_wc(struct page **pages, int numpages)
}
EXPORT_SYMBOL(set_pages_array_wc);

int set_pages_array_wt(struct page **pages, int numpages)
{
return _set_pages_array(pages, numpages, _PAGE_CACHE_MODE_WT);
}
EXPORT_SYMBOL_GPL(set_pages_array_wt);

int set_pages_wb(struct page *page, int numpages)
{
unsigned long addr = (unsigned long)page_address(page);
Expand Down

0 comments on commit 4509d95

Please sign in to comment.