mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-03-30 19:07:15 +00:00
KVM: Missing blank line after declarations in kvm_main.c
There are many Warnings like this: WARNING: Missing a blank line after declarations + struct kvm_coalesced_mmio_zone zone; + r = -EFAULT; This patch fixes these warnings to reduce noise when checking new patches in kvm_main.c. Signed-off-by: Xiubo Li <lixiubo@cmss.chinamobile.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
This commit is contained in:
parent
ee543159d5
commit
f95ef0cd02
1 changed files with 6 additions and 0 deletions
|
@ -1508,6 +1508,7 @@ void kvm_set_pfn_dirty(pfn_t pfn)
|
||||||
{
|
{
|
||||||
if (!kvm_is_reserved_pfn(pfn)) {
|
if (!kvm_is_reserved_pfn(pfn)) {
|
||||||
struct page *page = pfn_to_page(pfn);
|
struct page *page = pfn_to_page(pfn);
|
||||||
|
|
||||||
if (!PageReserved(page))
|
if (!PageReserved(page))
|
||||||
SetPageDirty(page);
|
SetPageDirty(page);
|
||||||
}
|
}
|
||||||
|
@ -1791,6 +1792,7 @@ void kvm_vcpu_block(struct kvm_vcpu *vcpu)
|
||||||
start = cur = ktime_get();
|
start = cur = ktime_get();
|
||||||
if (halt_poll_ns) {
|
if (halt_poll_ns) {
|
||||||
ktime_t stop = ktime_add_ns(ktime_get(), halt_poll_ns);
|
ktime_t stop = ktime_add_ns(ktime_get(), halt_poll_ns);
|
||||||
|
|
||||||
do {
|
do {
|
||||||
/*
|
/*
|
||||||
* This sets KVM_REQ_UNHALT if an interrupt
|
* This sets KVM_REQ_UNHALT if an interrupt
|
||||||
|
@ -2126,6 +2128,7 @@ static long kvm_vcpu_ioctl(struct file *filp,
|
||||||
/* The thread running this VCPU changed. */
|
/* The thread running this VCPU changed. */
|
||||||
struct pid *oldpid = vcpu->pid;
|
struct pid *oldpid = vcpu->pid;
|
||||||
struct pid *newpid = get_task_pid(current, PIDTYPE_PID);
|
struct pid *newpid = get_task_pid(current, PIDTYPE_PID);
|
||||||
|
|
||||||
rcu_assign_pointer(vcpu->pid, newpid);
|
rcu_assign_pointer(vcpu->pid, newpid);
|
||||||
if (oldpid)
|
if (oldpid)
|
||||||
synchronize_rcu();
|
synchronize_rcu();
|
||||||
|
@ -2533,6 +2536,7 @@ static long kvm_vm_ioctl(struct file *filp,
|
||||||
#ifdef KVM_COALESCED_MMIO_PAGE_OFFSET
|
#ifdef KVM_COALESCED_MMIO_PAGE_OFFSET
|
||||||
case KVM_REGISTER_COALESCED_MMIO: {
|
case KVM_REGISTER_COALESCED_MMIO: {
|
||||||
struct kvm_coalesced_mmio_zone zone;
|
struct kvm_coalesced_mmio_zone zone;
|
||||||
|
|
||||||
r = -EFAULT;
|
r = -EFAULT;
|
||||||
if (copy_from_user(&zone, argp, sizeof(zone)))
|
if (copy_from_user(&zone, argp, sizeof(zone)))
|
||||||
goto out;
|
goto out;
|
||||||
|
@ -2541,6 +2545,7 @@ static long kvm_vm_ioctl(struct file *filp,
|
||||||
}
|
}
|
||||||
case KVM_UNREGISTER_COALESCED_MMIO: {
|
case KVM_UNREGISTER_COALESCED_MMIO: {
|
||||||
struct kvm_coalesced_mmio_zone zone;
|
struct kvm_coalesced_mmio_zone zone;
|
||||||
|
|
||||||
r = -EFAULT;
|
r = -EFAULT;
|
||||||
if (copy_from_user(&zone, argp, sizeof(zone)))
|
if (copy_from_user(&zone, argp, sizeof(zone)))
|
||||||
goto out;
|
goto out;
|
||||||
|
@ -3259,6 +3264,7 @@ struct kvm_vcpu *preempt_notifier_to_vcpu(struct preempt_notifier *pn)
|
||||||
static void kvm_sched_in(struct preempt_notifier *pn, int cpu)
|
static void kvm_sched_in(struct preempt_notifier *pn, int cpu)
|
||||||
{
|
{
|
||||||
struct kvm_vcpu *vcpu = preempt_notifier_to_vcpu(pn);
|
struct kvm_vcpu *vcpu = preempt_notifier_to_vcpu(pn);
|
||||||
|
|
||||||
if (vcpu->preempted)
|
if (vcpu->preempted)
|
||||||
vcpu->preempted = false;
|
vcpu->preempted = false;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue