mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
[PATCH] More slab.h cleanups
More cleanups for slab.h 1. Remove tabs from weird locations as suggested by Pekka 2. Drop the check for NUMA and SLAB_DEBUG from the fallback section as suggested by Pekka. 3. Uses static inline for the fallback defs as also suggested by Pekka. 4. Make kmem_ptr_valid take a const * argument. 5. Separate the NUMA fallback definitions from the kmalloc_track fallback definitions. Signed-off-by: Christoph Lameter <[email protected]> Cc: Pekka Enberg <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
2e892f43cc
commit
55935a34a4
3 changed files with 26 additions and 22 deletions
|
|
@ -3541,7 +3541,7 @@ EXPORT_SYMBOL(kmem_cache_zalloc);
|
|||
*
|
||||
* Currently only used for dentry validation.
|
||||
*/
|
||||
int fastcall kmem_ptr_validate(struct kmem_cache *cachep, void *ptr)
|
||||
int fastcall kmem_ptr_validate(struct kmem_cache *cachep, const void *ptr)
|
||||
{
|
||||
unsigned long addr = (unsigned long)ptr;
|
||||
unsigned long min_addr = PAGE_OFFSET;
|
||||
|
|
|
|||
|
|
@ -334,7 +334,7 @@ int kmem_cache_shrink(struct kmem_cache *d)
|
|||
}
|
||||
EXPORT_SYMBOL(kmem_cache_shrink);
|
||||
|
||||
int kmem_ptr_validate(struct kmem_cache *a, void *b)
|
||||
int kmem_ptr_validate(struct kmem_cache *a, const void *b)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue