summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2005-07-26 14:11:28 -0700
committerLinus Torvalds <torvalds@g5.osdl.org>2005-07-26 14:34:18 -0700
commit9a168bddc2f13686336a86f8235b84347edac13a (patch)
tree4197716545fb2756c0326157719f9d5c6317f15a /drivers
parent89373de7dd010832d8b68cb37dabb33ff5a688bb (diff)
downloadlinux-9a168bddc2f13686336a86f8235b84347edac13a.tar.bz2
[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')
-rw-r--r--drivers/scsi/qla2xxx/qla_def.h4
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 {
} u_end;
};
-typedef struct {
- union {
+typedef union {
struct device_reg_2xxx isp;
struct device_reg_24xx isp24;
- };
} device_reg_t;
#define ISP_REQ_Q_IN(ha, reg) \