The macro FIELD_GET is already defined in linux/bitfield.h, that is somehow included when compiling the onic driver on linux 6.4. This causes the following error:
Unfortunately, the FIELD_GET macro that is already defined in linux/bitfield.h is using the typeof operator, and the typeof operator cannot be applied to bit-field members:
The macro
FIELD_GET
is already defined inlinux/bitfield.h
, that is somehow included when compiling the onic driver on linux 6.4. This causes the following error:Unfortunately, the
FIELD_GET
macro that is already defined inlinux/bitfield.h
is using thetypeof
operator, and thetypeof
operator cannot be applied to bit-field members:The onic driver is making heavy use of bit-fields, thus, we cannot use the already defined
FIELD_GET
macro without a heavy code refactoring.This commit simply renames the
FIELD_GET
macro defined in the onic driver toBITFIELD_GET
to avoid the macro redefinition error.