lkml.org 
[lkml]   [2020]   [Jun]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [RFC PATCH 4/5] scsi: ufs: L2P map management for HPB read
From
Date
On 2020-06-06 11:26, Avri Altman wrote:
>> + data_seg_len = be32_to_cpu(lrbp->ucd_rsp_ptr->header.dword_2)
>> + & MASK_RSP_UPIU_DATA_SEG_LEN;
> get_unaligned instead of be32_to_cpu ?

Since sparse checks that the argument of be32_to_cpu() has type __be32
and since no such check is performed for get_unaligned_*(), please keep
the be32_to_cpu().

Thanks,

Bart.

\
 
 \ /
  Last update: 2020-06-09 03:16    [W:0.131 / U:0.420 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site