On 10/10/2018 19:13, Johannes Berg wrote:
On Wed, 2018-10-10 at 10:33 -0700, Joe Perches wrote:
Specifically it doesn't like the __BF_FIELD_CHECK() in FIELD_PREP().
Any ideas on compiler trickery we could do with the FIELD_PREP()
definition to avoid this issue (i.e. enforce the check but only
On Wed, 2018-10-10 at 18:16 +0100, John Garry wrote:
> (to: get_maintainers -f include/linux/bitfield.h)
>
> Hi,
>
> I would like to use FIELD_PREP() macro for assigning a static array,
> like this:
> function()
> {
> static u32 val[2] = {FIELD_PREP(GENMASK_ULL(10, 0), 5), 0};
>
> }
>
>
(to: get_maintainers -f include/linux/bitfield.h)
Hi,
I would like to use FIELD_PREP() macro for assigning a static array,
like this:
function()
{
static u32 val[2] = {FIELD_PREP(GENMASK_ULL(10, 0), 5), 0};
}
However the compiler complains of non-const expression:
./include/linux/bit
3 matches
Mail list logo