cc1: warnings being treated as errors
drivers/scsi/lpfc/lpfc_init.c: In function 'lpfc_get_wwpn':
drivers/scsi/lpfc/lpfc_init.c:3253: error: integer constant is too large for 
'long' type

Signed-off-by: Maurizio Lombardi <mlomb...@redhat.com>
---
 drivers/scsi/lpfc/lpfc_init.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/scsi/lpfc/lpfc_init.c b/drivers/scsi/lpfc/lpfc_init.c
index 491aa95..e992dc1 100644
--- a/drivers/scsi/lpfc/lpfc_init.c
+++ b/drivers/scsi/lpfc/lpfc_init.c
@@ -3710,8 +3710,8 @@
        if (phba->sli_rev == LPFC_SLI_REV4)
                return be64_to_cpu(wwn);
        else
-               return (((wwn & 0xffffffff00000000) >> 32) |
-                       ((wwn & 0x00000000ffffffff) << 32));
+               return (((wwn & 0xffffffff00000000ULL) >> 32) |
+                       ((wwn & 0x00000000ffffffffULL) << 32));
 
 }
 
-- 
Maurizio Lombardi

Reply via email to