Re: [Linux-am33-list] [PATCH] workqueue: Fix alignment calculation in alloc_cwqs()

From: David Howells
Date: Mon Oct 25 2010 - 17:39:25 EST


David Howells <dhowells@xxxxxxxxxx> wrote:

> + const size_t align =
> + max_t(size_t, 1 << (WORK_STRUCT_FLAG_BITS - BITS_PER_BYTE),
> + __alignof__(unsigned long long));

Actually, no, that's not right either. Need to subtract log2(BITS_PER_BYTE).

David
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/