Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Christoph Lameter and committed by
Linus Torvalds
b7f869a2 533ffc28

+1 -1
+1 -1
mm/slab.c
··· 3553 3553 * 3554 3554 * Currently only used for dentry validation. 3555 3555 */ 3556 - int fastcall kmem_ptr_validate(struct kmem_cache *cachep, const void *ptr) 3556 + int kmem_ptr_validate(struct kmem_cache *cachep, const void *ptr) 3557 3557 { 3558 3558 unsigned long addr = (unsigned long)ptr; 3559 3559 unsigned long min_addr = PAGE_OFFSET;