Commit:     b889d531b635da66ce2704a47febfed68173d9db
Parent:     840c2835a1c867281d27158378a9d34f593a7664
Author:     Malahal Naineni <[EMAIL PROTECTED]>
AuthorDate: Mon Mar 12 10:41:26 2007 -0700
Committer:  James Bottomley <[EMAIL PROTECTED]>
CommitDate: Tue Mar 20 10:49:40 2007 -0500

    [SCSI] qla2xxx: fix RSCN handling on big-endian systems
    qla2xxx driver fails to handle RSCN events affecting area or domain due
    to an endian issue on big endian systems.  This fixes the port_id_t
    structure on big endian systems.
    Signed-off-by: Malahal Naineni <[EMAIL PROTECTED]>
    Acked-by: Seokmann Ju <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Vasquez <[EMAIL PROTECTED]>
    Signed-off-by: James Bottomley <[EMAIL PROTECTED]>
 drivers/scsi/qla2xxx/qla_def.h |   13 ++++++++-----
 1 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/drivers/scsi/qla2xxx/qla_def.h b/drivers/scsi/qla2xxx/qla_def.h
index 05f4f2a..e8948b6 100644
--- a/drivers/scsi/qla2xxx/qla_def.h
+++ b/drivers/scsi/qla2xxx/qla_def.h
@@ -1478,14 +1478,17 @@ typedef union {
        uint32_t b24 : 24;
        struct {
-               uint8_t d_id[3];
-               uint8_t rsvd_1;
-       } r;
-       struct {
+#ifdef __BIG_ENDIAN
+               uint8_t domain;
+               uint8_t area;
+               uint8_t al_pa;
                uint8_t al_pa;
                uint8_t area;
                uint8_t domain;
+#error "__BIG_ENDIAN or __LITTLE_ENDIAN must be defined!"
                uint8_t rsvd_1;
        } b;
 } port_id_t;
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to