mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-10-31 18:09:19 +00:00
Merge "mm: slub: share object_err function"
This commit is contained in:
commit
ba0a1d1d30
2 changed files with 4 additions and 1 deletions
|
@ -224,4 +224,7 @@ static inline void *virt_to_obj(struct kmem_cache *s,
|
|||
return (void *)x - ((x - slab_page) % s->size);
|
||||
}
|
||||
|
||||
void object_err(struct kmem_cache *s, struct page *page,
|
||||
u8 *object, char *reason);
|
||||
|
||||
#endif /* _LINUX_SLUB_DEF_H */
|
||||
|
|
|
@ -622,7 +622,7 @@ static void slab_panic(const char *cause)
|
|||
static inline void slab_panic(const char *cause) {}
|
||||
#endif
|
||||
|
||||
static void object_err(struct kmem_cache *s, struct page *page,
|
||||
void object_err(struct kmem_cache *s, struct page *page,
|
||||
u8 *object, char *reason)
|
||||
{
|
||||
slab_bug(s, "%s", reason);
|
||||
|
|
Loading…
Reference in a new issue