Commit 48acea24 authored by Andrew Morton's avatar Andrew Morton Committed by James Bottomley

[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.
parent 755fa12b
...@@ -1135,8 +1135,8 @@ typedef union { ...@@ -1135,8 +1135,8 @@ typedef union {
uint16_t extended; uint16_t extended;
struct { struct {
uint8_t reserved; uint8_t reserved;
uint8_t standard;; uint8_t standard;
}; } id;
} target_id_t; } target_id_t;
#define SET_TARGET_ID(ha, to, from) \ #define SET_TARGET_ID(ha, to, from) \
...@@ -1144,7 +1144,7 @@ do { \ ...@@ -1144,7 +1144,7 @@ do { \
if (HAS_EXTENDED_IDS(ha)) \ if (HAS_EXTENDED_IDS(ha)) \
to.extended = cpu_to_le16(from); \ to.extended = cpu_to_le16(from); \
else \ else \
to.standard = (uint8_t)from; \ to.id.standard = (uint8_t)from; \
} while (0) } while (0)
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment