提交 b7f869a2 编写于 作者: C Christoph Lameter 提交者: Linus Torvalds

[PATCH] slab: fix kmem_ptr_validate definition

The declaration of kmem_ptr_validate in slab.h does not match the
one in slab.c. Remove the fastcall attribute (this is the only use in
slab.c).
Signed-off-by: NChristoph Lameter <clameter@sgi.com>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 533ffc28
...@@ -3553,7 +3553,7 @@ EXPORT_SYMBOL(kmem_cache_zalloc); ...@@ -3553,7 +3553,7 @@ EXPORT_SYMBOL(kmem_cache_zalloc);
* *
* Currently only used for dentry validation. * Currently only used for dentry validation.
*/ */
int fastcall kmem_ptr_validate(struct kmem_cache *cachep, const void *ptr) int kmem_ptr_validate(struct kmem_cache *cachep, const void *ptr)
{ {
unsigned long addr = (unsigned long)ptr; unsigned long addr = (unsigned long)ptr;
unsigned long min_addr = PAGE_OFFSET; unsigned long min_addr = PAGE_OFFSET;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册