drivers/scsi/qla2xxx/qla_def.h:1139: warning: unnamed struct/union that defines no instances
drivers/scsi/qla2xxx/qla_iocb.c:440: union has no member named `standard'
Older gcc's don't understand anonymous unions.
uint16_t extended;
struct {
uint8_t reserved;
- uint8_t standard;;
- };
+ uint8_t standard;
+ } id;
} target_id_t;
#define SET_TARGET_ID(ha, to, from) \
if (HAS_EXTENDED_IDS(ha)) \
to.extended = cpu_to_le16(from); \
else \
- to.standard = (uint8_t)from; \
+ to.id.standard = (uint8_t)from; \
} while (0)
/*