On Mon, 12 Oct 2020 16:27:10 +0530 Srujana Challa wrote: > +union otx2_cptx_lf_misc_int { > + u64 u; > + struct otx2_cptx_lf_misc_int_s { > + u64 reserved_0:1; > + u64 nqerr:1; > + u64 irde:1; > + u64 nwrp:1; > + u64 reserved_4:1; > + u64 hwerr:1; > + u64 fault:1; > + u64 reserved_7_63:57; > + } s; > +};
AFAIK bitfields don't jive with endianness, please don't use them. The Linux kernel is supposed to work regardless of host CPU endian.