Commit b9abc2d4 authored by Fuad Tabba's avatar Fuad Tabba
Browse files

ANDROID: KVM: arm64: Fix sparse __percpu warning



Force the cast to silence the warning.

We don't have a proper way to dynamically allocate memory at EL2,
and hence no proper way to dynamically allocate percpu fields.
Instead, we rely on memory donated from the host and index it by
hyp_smp_processor_id().

Reported-by: default avatarTodd Kjos <tkjos@google.com>
Signed-off-by: default avatarFuad Tabba <tabba@google.com>
Bug: 278749606
Change-Id: I3f7efd4a41294a6696992ce0a49270c4f9468bb5
parent 5d3f16d4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment