Skip to content
Commit d592dd64 authored by James Bottomley's avatar James Bottomley Committed by Martin K. Petersen
Browse files

scsi: myrs: fix build failure on 32 bit

For 32 bit versions we have to be careful about divisions of 64 bit
quantities so use do_div() instead of a direct division.  This fixes a
warning about _uldivmod being undefined in certain configurations

Fixes: 77266186

 ("scsi: myrs: Add Mylex RAID controller")
Reported-by: default avatarkbuild test robot <lkp@intel.com>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@HansenPartnership.com>
Reviewed-by: default avatarHannes Reinecke <hare@suse.com>
Tested-by: Randy Dunlap <rdunlap@infradead.org> # build-tested
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 4d5b4ac1
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment