diff options
| author | Fuad Tabba <tabba@google.com> | 2026-05-01 14:21:46 +0300 |
|---|---|---|
| committer | Marc Zyngier <maz@kernel.org> | 2026-05-07 16:12:41 +0300 |
| commit | d4d215e5b81ba5acb17752cab12c514a8062bada (patch) | |
| tree | 78d53865a562f4afd9ae2517da04ea06c49b3967 /tools/lib/python | |
| parent | 300fac4cc266b7782d88602b6b6a7faf31ce6405 (diff) | |
| download | linux-d4d215e5b81ba5acb17752cab12c514a8062bada.tar.xz | |
KVM: arm64: Fix __deactivate_fgt macro parameter typo
__deactivate_fgt() declares its first parameter as "htcxt" but the body
references "hctxt". The parameter is unused; the macro silently captures
"hctxt" from the enclosing scope. Both existing callers
(__deactivate_traps_hfgxtr() and __deactivate_traps_ich_hfgxtr()) happen
to define a local "struct kvm_cpu_context *hctxt", so the macro works
by coincidence.
A future caller without an "hctxt" local in scope, or naming it
differently, would compile but bind to the wrong context. Align the
parameter name with the sibling __activate_fgt() macro.
The "vcpu" parameter remains unused in the body, kept for API symmetry
with __activate_fgt() (which uses it).
Fixes: f5a5a406b4b8 ("KVM: arm64: Propagate and handle Fine-Grained UNDEF bits")
Assisted-by: Gemini:gemini-3.1-pro review-prompts
Signed-off-by: Fuad Tabba <tabba@google.com>
Link: https://patch.msgid.link/20260501112149.2824881-4-tabba@google.com
Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
