From: Nick Alcock Date: Mon, 15 Dec 2014 14:27:12 +0000 (+0000) Subject: Remove BUILD_BUG_ON for epitem size code to compile. X-Git-Tag: v4.1.12-92~313^2~24 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=6447d0200cfab699ccbdaa44d63481622748604a;p=users%2Fjedix%2Flinux-maple.git Remove BUILD_BUG_ON for epitem size code to compile. The changes to the epitem struct to support waitfd() / poll_wait_fixed() cause it to be larger than the limit enforced by the BUILD_BUG_ON. The dropping of this build assertion is in line with the suggestion by Andrew Morton in https://lkml.org/lkml/2013/3/8/467. Orabug: 20456825 Signed-off-by: Nick Alcock Acked-by: Santosh Shilimkar Acked-by: Guru Anbalagane --- diff --git a/fs/eventpoll.c b/fs/eventpoll.c index d90b3cc5ffcf..ba26758270c5 100644 --- a/fs/eventpoll.c +++ b/fs/eventpoll.c @@ -2135,7 +2135,6 @@ static int __init eventpoll_init(void) * We can have many thousands of epitems, so prevent this from * using an extra cache line on 64-bit (and smaller) CPUs */ - BUILD_BUG_ON(sizeof(void *) <= 8 && sizeof(struct epitem) > 128); /* Allocates slab cache used to allocate "struct epitem" items */ epi_cache = kmem_cache_create("eventpoll_epi", sizeof(struct epitem),