Skip to content

Commit

Permalink
[PATCH] qla: remove anonymous union
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andrew Morton authored and Linus Torvalds committed Jul 26, 2005
1 parent 89373de commit 9a168bd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/scsi/qla2xxx/qla_def.h
Original file line number Diff line number Diff line change
Expand Up @@ -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) \
Expand Down

0 comments on commit 9a168bd

Please sign in to comment.