提交 e1271f68 编写于 作者: A Arjan van de Ven 提交者: Ingo Molnar

x86: deprecate change_page_attr() for drivers

With the introduction of the new API, no driver or non-archcore code needs
to use c-p-a anymore, so this patch also deprecates the EXPORT_SYMBOL of CPA
(it's a horrible API after all).
Signed-off-by: NArjan van de Ven <arjan@linux.intel.com>
Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
Signed-off-by: NIngo Molnar <mingo@elte.hu>
上级 6d238cc4
......@@ -284,7 +284,7 @@ int change_page_attr(struct page *page, int numpages, pgprot_t prot)
return change_page_attr_addr(addr, numpages, prot);
}
EXPORT_SYMBOL(change_page_attr);
EXPORT_UNUSED_SYMBOL(change_page_attr); /* to be removed in 2.6.27 */
/**
* change_page_attr_set - Change page table attributes in the linear mapping.
......
......@@ -25,7 +25,8 @@
memcpy(dst, src, len)
void global_flush_tlb(void);
int change_page_attr(struct page *page, int numpages, pgprot_t prot);
int __deprecated_for_modules change_page_attr(struct page *page, int numpages,
pgprot_t prot);
int change_page_attr_addr(unsigned long addr, int numpages, pgprot_t prot);
int set_pages_uc(struct page *page, int numpages);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册