mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [patch] fix qla2xxx build for older gcc's
@ 2004-01-16  6:14 Andrew Morton
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Morton @ 2004-01-16  6:14 UTC (permalink / raw)
  To: James Bottomley, Andrew Vasquez; +Cc: linux-kernel



drivers/scsi/qla2xxx/qla_def.h:1139: warning: unnamed struct/union that defines no instances
drivers/scsi/qla2xxx/qla_iocb.c:440: union has no member named `standard'

Older gcc's don't understand anonymous unions.


---

 drivers/scsi/qla2xxx/qla_def.h |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff -puN drivers/scsi/qla2xxx/qla_def.h~qla2xxx-build-fix drivers/scsi/qla2xxx/qla_def.h
--- 25/drivers/scsi/qla2xxx/qla_def.h~qla2xxx-build-fix	2004-01-15 22:09:17.000000000 -0800
+++ 25-akpm/drivers/scsi/qla2xxx/qla_def.h	2004-01-15 22:10:28.000000000 -0800
@@ -1135,8 +1135,8 @@ typedef union {
 	uint16_t extended;
 	struct {
 		uint8_t reserved;
-		uint8_t standard;;
-	};
+		uint8_t standard;
+	} id;
 } target_id_t;
 
 #define SET_TARGET_ID(ha, to, from)			\
@@ -1144,7 +1144,7 @@ do {							\
 	if (HAS_EXTENDED_IDS(ha))			\
 		to.extended = cpu_to_le16(from);	\
 	else						\
-		to.standard = (uint8_t)from;		\
+		to.id.standard = (uint8_t)from;		\
 } while (0)
 
 /*

_


^ permalink raw reply	[flat|nested] 2+ messages in thread
* RE: [patch] fix qla2xxx build for older gcc's
@ 2004-01-16 23:04 Andrew Vasquez
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Vasquez @ 2004-01-16 23:04 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel

On Thursday, January 15, 2004 10:15 PM, Andrew Morton wrote:
> drivers/scsi/qla2xxx/qla_def.h:1139: warning: unnamed
> struct/union that defines no instances
> drivers/scsi/qla2xxx/qla_iocb.c:440: union has no member named
> `standard' 
> 
> Older gcc's don't understand anonymous unions.
>

Thanks.  Will add to the next drop.

Regards,
Andrew Vasquez

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-01-16 23:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-16  6:14 [patch] fix qla2xxx build for older gcc's Andrew Morton
2004-01-16 23:04 Andrew Vasquez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®