slub: drop bogus inline for fixup_red_left()
Subsystems (2)
[email protected]
maintainerPATCH 5/7 slub: drop bogus inline for fixup_red_left()
From: Geert Uytterhoeven <[email protected]>
Subject: slub: drop bogus inline for fixup_red_left()
With m68k-linux-gnu-gcc-4.1:
include/linux/slub_def.h:126: warning: fixup_red_left' declared inline after being called include/linux/slub_def.h:126: warning: previous declaration of fixup_red_left' was here
Commit c146a2b98eb5898e ("mm, kasan: account for object redzone in SLUB's nearest_obj()") made fixup_red_left() global, but forgot to remove the inline keyword.
Fixes c146a2b98eb5898e ("mm, kasan: account for object redzone in SLUB's nearest_obj()")
Signed-off-by Geert Uytterhoeven <[email protected]>
Cc Alexander Potapenko <[email protected]>
Acked-by David Rientjes <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
mm/slub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
mm/slub.c renamed from mm/slub.c~slub-drop-bogus-inline-for-fixup_red_left +1 -1
@@ -124,7 +124,7 @@ static inline int kmem_cache_debug(struc#endif } -inline void *fixup_red_left (struct kmem_cache *s,void *p) +void *fixup_red_left (struct kmem_cache *s,void *p) {if (kmem_cache_debug (s) && s->flags &SLAB_RED_ZONE ) p += s->red_left_pad;
_