From: Andrew Morton Date: Tue, 26 Jul 2005 21:11:28 +0000 (-0700) Subject: [PATCH] qla: remove anonymous union X-Git-Tag: submit/tizen/20141203.153721~44536 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9a168bddc2f13686336a86f8235b84347edac13a;p=platform%2Fkernel%2Flinux-arm64.git [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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/scsi/qla2xxx/qla_def.h b/drivers/scsi/qla2xxx/qla_def.h index acf40dcbfb3..1c6d366f4fa 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) \