Re: [PATCH] lpfc: fix "integer constant too large" error on 32bit archs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux