From 48acea24673dd3e7bdc557611fe9ea84e0b98487 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Sat, 17 Jan 2004 01:40:55 -0500 Subject: [PATCH] [PATCH] fix qla2xxx build for older gcc's 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. --- drivers/scsi/qla2xxx/qla_def.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/scsi/qla2xxx/qla_def.h b/drivers/scsi/qla2xxx/qla_def.h index 7db8e7e0718e1..26f352a37dd16 100644 --- a/drivers/scsi/qla2xxx/qla_def.h +++ b/drivers/scsi/qla2xxx/qla_def.h @@ -1135,8 +1135,8 @@ typedef union { uint16_t extended; struct { uint8_t reserved; - uint8_t standard;; - }; + uint8_t standard; + } id; } target_id_t; #define SET_TARGET_ID(ha, to, from) \ @@ -1144,7 +1144,7 @@ do { \ 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) /* -- 2.53.0