mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-05 15:45:05 +00:00
HV:treewide:fix "Attempt to change parameter passed by value"
In the function scope,the parameter should not be changed as Misra required. V1->V2 recover some violations because of ldra's false positive. V2->V3 sync local variable' type to parameter's type with the prefix of const. Signed-off-by: Huihuang Shi <huihuang.shi@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -7,11 +7,12 @@
|
||||
#include <hypervisor.h>
|
||||
|
||||
static inline struct vcpuid_entry *find_vcpuid_entry(struct vcpu *vcpu,
|
||||
uint32_t leaf, uint32_t subleaf)
|
||||
uint32_t leaf_arg, uint32_t subleaf)
|
||||
{
|
||||
uint32_t i = 0U, nr, half;
|
||||
struct vcpuid_entry *entry = NULL;
|
||||
struct vm *vm = vcpu->vm;
|
||||
uint32_t leaf = leaf_arg;
|
||||
|
||||
nr = vm->vcpuid_entry_nr;
|
||||
half = nr / 2U;
|
||||
|
||||
Reference in New Issue
Block a user