Andrew Morton wrote:
On Tue, 19 Jun 2007 15:38:01 -0700 (PDT) Christoph Lameter <[email protected]> wrote:Ok and BUILD_BUG_ON really works? Had some bad experiences with it.hm, I don't recall any problems, apart from its very obscure error reporting. But if it breaks, we get an opportunity to fix it ;)
It doesn't work outside function scope, which can be annoying. The workaround is to just create a dummy function and put the BUILD_BUG_ON inside that. -- SUSE Labs, Novell Inc. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- References:
- [patch 00/26] Current slab allocator / SLUB patch queue
- From: [email protected]
- [patch 10/26] SLUB: Faster more efficient slab determination for __kmalloc.
- From: [email protected]
- Re: [patch 10/26] SLUB: Faster more efficient slab determination for __kmalloc.
- From: Andrew Morton <[email protected]>
- Re: [patch 10/26] SLUB: Faster more efficient slab determination for __kmalloc.
- From: Christoph Lameter <[email protected]>
- Re: [patch 10/26] SLUB: Faster more efficient slab determination for __kmalloc.
- From: Andrew Morton <[email protected]>
- Re: [patch 10/26] SLUB: Faster more efficient slab determination for __kmalloc.
- From: Christoph Lameter <[email protected]>
- Re: [patch 10/26] SLUB: Faster more efficient slab determination for __kmalloc.
- From: Andrew Morton <[email protected]>
- [patch 00/26] Current slab allocator / SLUB patch queue
- Prev by Date: Re: [BUG] long freezes on thinkpad t60
- Next by Date: Re: [PATCH] SLOB allocator imcompatible SLAB
- Previous by thread: Re: [patch 10/26] SLUB: Faster more efficient slab determination for __kmalloc.
- Next by thread: Re: [patch 00/26] Current slab allocator / SLUB patch queue
- Index(es):