Re: [linux-next:master 12891/13017] mm/slub.c:2396:1: warning: '___slab_alloc' uses dynamic stack allocation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 13 Nov 2015 16:13:46 +0100
"Andreas Krebbel1" <Andreas.Krebbel@xxxxxxxxxx> wrote:

> this appears to be the result of aligning struct page to more than 8 bytes 
> and putting it onto the stack - wich is only 8 bytes aligned.  The 
> compiler has to perform runtime alignment to achieve that. It allocates 
> memory using *alloca* and does the math with the returned pointer. Our 
> dynamic stack allocation option basically only checks if there is an 
> alloca user.

I can confirm that this is caused by the struct page alignment, if I
force HAVE_ALIGNED_STRUCT_PAGE=n the warning vanishes.

-- 
blue skies,
   Martin.

"Reality continues to ruin my life." - Calvin.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]