[SCSI] qla2xxx: Fix __LITTLE_ENDIAN definition warnings
authorDave Jones <davej@redhat.com>
Mon, 13 Jul 2009 20:27:46 +0000 (16:27 -0400)
committerJames Bottomley <James.Bottomley@suse.de>
Sat, 22 Aug 2009 22:51:55 +0000 (17:51 -0500)
On ppc64, gcc 4.4 spews lots of..

drivers/scsi/qla2xxx/qla_def.h:1485:7: warning: "__LITTLE_ENDIAN" is not defined

Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/qla2xxx/qla_def.h

index 00aa48d..9fde8bf 100644 (file)
@@ -1482,7 +1482,7 @@ typedef union {
                uint8_t domain;
                uint8_t area;
                uint8_t al_pa;
-#elif __LITTLE_ENDIAN
+#elif defined(__LITTLE_ENDIAN)
                uint8_t al_pa;
                uint8_t area;
                uint8_t domain;