On Tue, 10 Nov 2020 10:13:25 +0100 Tobias Waldekranz wrote: > +/** > + * enum dsa_code - TO_CPU Code > + * > + * A 3-bit code is used to relay why a particular frame was sent to > + * the CPU. We only use this to determine if the packet was trapped or > + * mirrored, i.e. whether the packet has been forwarded by hardware or > + * not. > + */ > +enum dsa_code { > + DSA_CODE_MGMT_TRAP = 0, > + DSA_CODE_FRAME2REG = 1, > + DSA_CODE_IGMP_MLD_TRAP = 2, > + DSA_CODE_POLICY_TRAP = 3, > + DSA_CODE_ARP_MIRROR = 4, > + DSA_CODE_POLICY_MIRROR = 5, > + DSA_CODE_RESERVED_6 = 6, > + DSA_CODE_RESERVED_7 = 7 > +};
You need to describe the values, otherwise W=1 builds will generate warnings.