aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/mpt3sas/mpi/mpi2_raid.h
diff options
context:
space:
mode:
authorVincent Chen <[email protected]>2018-10-02 08:52:31 +0000
committerPalmer Dabbelt <[email protected]>2018-10-23 00:02:56 +0000
commit827a438156e4c423b6875a092e272933952a2910 (patch)
treeb06c4c99ec6e728b6447a5a6c6d61bac60c84e78 /drivers/scsi/mpt3sas/mpi/mpi2_raid.h
parentRISC-V: Select GENERIC_LIB_UMODDI3 on RV32 (diff)
downloadkernel-827a438156e4c423b6875a092e272933952a2910.tar.gz
kernel-827a438156e4c423b6875a092e272933952a2910.zip
RISC-V: Avoid corrupting the upper 32-bit of phys_addr_t in ioremap
For 32bit, the upper 32-bit of phys_addr_t will be flushed to zero after AND with PAGE_MASK because the data type of PAGE_MASK is unsigned long. To fix this problem, the page alignment is done by subtracting the page offset instead of AND with PAGE_MASK. Signed-off-by: Vincent Chen <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Signed-off-by: Palmer Dabbelt <[email protected]>
Diffstat (limited to 'drivers/scsi/mpt3sas/mpi/mpi2_raid.h')
0 files changed, 0 insertions, 0 deletions