]> err.no Git - linux-2.6/commitdiff
[PATCH] qla: remove anonymous union
authorAndrew Morton <akpm@osdl.org>
Tue, 26 Jul 2005 21:11:28 +0000 (14:11 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 26 Jul 2005 21:34:18 +0000 (14:34 -0700)
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>
drivers/scsi/qla2xxx/qla_def.h

index acf40dcbfb308026320ada27352f9b924b2c6dfd..1c6d366f4fad8e716bd2c464bdfc197768497c3a 100644 (file)
@@ -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) \