mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 14:19:09 -04:00
staging: lustre: ptlrpc: silence a shift wrapping warning
"svcpt->scp_hist_seq" is a u64 so static checkers complain that 1U should be 1ULL. I looked at REQS_SEQ_SHIFT() a little and it seems to be capped by the number of CPUs online and the amount of memory, but I think it could go above 32 possibly. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Reviewed-by: Oleg Drokin <oleg.drokin@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
18ff854e8e
commit
565af1cda2
1 changed files with 1 additions and 1 deletions
|
|
@ -277,7 +277,7 @@ static void ptlrpc_req_add_history(struct ptlrpc_service_part *svcpt,
|
|||
* then we hope there will be less RPCs per bucket at some
|
||||
* point, and sequence will catch up again
|
||||
*/
|
||||
svcpt->scp_hist_seq += (1U << REQS_SEQ_SHIFT(svcpt));
|
||||
svcpt->scp_hist_seq += (1ULL << REQS_SEQ_SHIFT(svcpt));
|
||||
new_seq = svcpt->scp_hist_seq;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue