diff options
author | Andrew Morton <akpm@osdl.org> | 2005-07-26 17:11:28 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-07-26 17:34:18 -0400 |
commit | 9a168bddc2f13686336a86f8235b84347edac13a (patch) | |
tree | 4197716545fb2756c0326157719f9d5c6317f15a /drivers/scsi/qla2xxx | |
parent | 89373de7dd010832d8b68cb37dabb33ff5a688bb (diff) |
[PATCH] qla: remove anonymous union
Older gcc's dont support anonymous unions, so this driver gets hundreds of
error.
Fortunately the fix is easy...
Cc: James Bottomley <James.Bottomley@steeleye.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/scsi/qla2xxx')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_def.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/scsi/qla2xxx/qla_def.h b/drivers/scsi/qla2xxx/qla_def.h index acf40dcbfb30..1c6d366f4fad 100644 --- a/drivers/scsi/qla2xxx/qla_def.h +++ b/drivers/scsi/qla2xxx/qla_def.h | |||
@@ -451,11 +451,9 @@ struct device_reg_2xxx { | |||
451 | } u_end; | 451 | } u_end; |
452 | }; | 452 | }; |
453 | 453 | ||
454 | typedef struct { | 454 | typedef union { |
455 | union { | ||
456 | struct device_reg_2xxx isp; | 455 | struct device_reg_2xxx isp; |
457 | struct device_reg_24xx isp24; | 456 | struct device_reg_24xx isp24; |
458 | }; | ||
459 | } device_reg_t; | 457 | } device_reg_t; |
460 | 458 | ||
461 | #define ISP_REQ_Q_IN(ha, reg) \ | 459 | #define ISP_REQ_Q_IN(ha, reg) \ |