HV:vcpu fix "Pointer param should be declared pointer to const"

Fix violations whose parameter can be read-only.
This patch only fix the parameter whose name is vcpu.

Tracked-On: #861
Signed-off-by: Huihuang Shi <huihuang.shi@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com>
This commit is contained in:
Huihuang Shi
2018-10-23 13:36:25 +08:00
committed by wenlingz
parent ea32c34ae1
commit 46d198244f
15 changed files with 31 additions and 31 deletions

View File

@@ -96,7 +96,7 @@ static struct vcpu *select_next_vcpu(uint16_t pcpu_id)
return vcpu;
}
void make_reschedule_request(struct vcpu *vcpu)
void make_reschedule_request(const struct vcpu *vcpu)
{
struct sched_context *ctx = &per_cpu(sched_ctx, vcpu->pcpu_id);