public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Maurizio Lombardi <mlombard@redhat.com>
To: "Martin K. Petersen" <martin.petersen@oracle.com>
Cc: james.smart@broadcom.com, dick.kennedy@broadcom.com,
	jejb@linux.vnet.ibm.com, linux-scsi@vger.kernel.org
Subject: Re: [PATCH] lpfc: fix "integer constant too large" error on 32bit archs
Date: Thu, 27 Jul 2017 16:50:24 +0200	[thread overview]
Message-ID: <29ddc2de-02f9-9dff-8231-52bc560de173@redhat.com> (raw)
In-Reply-To: <yq1eft2vxzk.fsf@oracle.com>



Dne 27.7.2017 v 14:57 Martin K. Petersen napsal(a):
>> 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));
> 
> rol64()?
> 

Right,

I will send a new version.
Maurizio

      reply	other threads:[~2017-07-27 14:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-27 12:33 [PATCH] lpfc: fix "integer constant too large" error on 32bit archs Maurizio Lombardi
2017-07-27 12:57 ` Martin K. Petersen
2017-07-27 14:50   ` Maurizio Lombardi [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=29ddc2de-02f9-9dff-8231-52bc560de173@redhat.com \
    --to=mlombard@redhat.com \
    --cc=dick.kennedy@broadcom.com \
    --cc=james.smart@broadcom.com \
    --cc=jejb@linux.vnet.ibm.com \
    --cc=linux-scsi@vger.kernel.org \
    --cc=martin.petersen@oracle.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox