Skip to contentSkip to conversation

slub: Drop bogus inline for fixup_red_left()

PATCH Applied Geert Uytterhoeven 2 participants 2 messages Aug 3, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 slub: Drop bogus inline for fixup_red_left()

With m68k-linux-gnu-gcc-4.1:

include/linux/slub_def.h:126: warning: a??fixup_red_lefta?? declared inline after being called include/linux/slub_def.h:126: warning: previous declaration of a??fixup_red_lefta?? 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()")
---
 mm/slub.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/slub.c +1 -1
index 26eb6a99540e8530..850737bdfbd82410 100644
@@ -124,7 +124,7 @@ static inline int kmem_cache_debug(struct kmem_cache *s)
 #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;
Signature · 7 lines
1.9.1

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
reviewer Acked-by on v1 1/1
#1 lore raw
Quoted 11 lines · Geert Uytterhoeven

With m68k-linux-gnu-gcc-4.1:

include/linux/slub_def.h:126: warning: a??fixup_red_lefta?? declared inline after being called include/linux/slub_def.h:126: warning: previous declaration of a??fixup_red_lefta?? 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()")