Patchew URL: https://patchew.org/QEMU/20200613213629.21984-1-salil.me...@huawei.com/
Hi, This series seems to have some coding style problems. See output below for more information: Message-id: 20200613213629.21984-1-salil.me...@huawei.com Subject: [PATCH RFC 00/22] Support of Virtual CPU Hotplug for ARMv8 Arch Type: series === TEST SCRIPT BEGIN === #!/bin/bash git rev-parse base > /dev/null || exit 0 git config --local diff.renamelimit 0 git config --local diff.renames True git config --local diff.algorithm histogram ./scripts/checkpatch.pl --mailback base.. === TEST SCRIPT END === Updating 3c8cf5a9c21ff8782164d1def7f44bd888713384 Switched to a new branch 'test' dc56c53 arm/cpuhp: Add support of *unrealize* ARMCPU during vcpu hot-unplug 988141e arm/cpuhp: Changes required for reset and to support next boot d5feac6 arm/cpuhp: Update the guest(via GED) about cpu hot-(un)plug events 185a83e arm/cpuhp: Changes required to (re)init the vcpu register info 659f80f arm/cpuhp: Changes to update GIC with vcpu hot-plug notification bcfc8e7 arm/cpuhp: Changes to (un)wire GICC<->VCPU IRQs during hot-(un)plug 643af9e arm/cpuhp: Add/update basic hot-(un)plug framework 8e17131 arm/cpuhp: Update ACPI GED framework to support vcpu hotplug a8d5f8e arm/cpuhp: Release objects for *disabled* possible vcpus after init 1f520fd arm/cpuhp: Add ACPI _MAT entry for Processor object e9543c1 arm/cpuhp: MADT Tbl change to size the guest with possible vcpus a41164f arm/cpuhp: Update GED _EVT method AML with cpu scan 72b8a98 arm/cpuhp: Update CPUs AML with cpu-(ctrl)dev change 9d81444 arm/cpuhp: Init GED framework with cpu hotplug events 96ef87b arm/cpuhp: Enable ACPI support for vcpu hotplug be81157 arm/cpuhp: Init PMU at host for all possible vcpus cb588d9 arm/cpuhp: Changes to pre-size GIC with possible vcpus @machine init 75fe8dd arm/cpuhp: Pre-create disabled possible vcpus @machine init 55adeca arm/cpuhp: Machine init time change common to vcpu {cold|hot}-plug 9c53779 arm/cpuhp: Add common cpu utility for possible vcpus 36a71f4 arm/cpuhp: Add new ARMCPU core-id property ecab7ce arm/cpuhp: Add QMP vcpu params validation support === OUTPUT BEGIN === 1/22 Checking commit ecab7ce0dc60 (arm/cpuhp: Add QMP vcpu params validation support) 2/22 Checking commit 36a71f45080c (arm/cpuhp: Add new ARMCPU core-id property) 3/22 Checking commit 9c53779a7878 (arm/cpuhp: Add common cpu utility for possible vcpus) ERROR: return is not a function, parentheses are not required #51: FILE: cpus-common.c:104: + return (cpu && !cpu->disabled); total: 1 errors, 0 warnings, 65 lines checked Patch 3/22 has style problems, please review. If any of these errors are false positives report them to the maintainer, see CHECKPATCH in MAINTAINERS. 4/22 Checking commit 55adeca4f0c2 (arm/cpuhp: Machine init time change common to vcpu {cold|hot}-plug) ERROR: space prohibited between function name and open parenthesis '(' #206: FILE: hw/arm/virt.c:2143: + assert (found_cpu); ERROR: space required before the open brace '{' #341: FILE: hw/arm/virt.c:2338: + (object_dynamic_cast(OBJECT(dev), TYPE_CPU))){ total: 2 errors, 0 warnings, 375 lines checked Patch 4/22 has style problems, please review. If any of these errors are false positives report them to the maintainer, see CHECKPATCH in MAINTAINERS. 5/22 Checking commit 75fe8dd750d3 (arm/cpuhp: Pre-create disabled possible vcpus @machine init) ERROR: space required after that ',' (ctx:VxV) #93: FILE: hw/arm/virt.c:1841: + qdev_set_id(DEVICE(cpuobj),core_id); ^ ERROR: suspect code indent for conditional statements (12, 15) #109: FILE: hw/arm/virt.c:1857: + if (kvm_enabled()) { + kvm_arm_create_host_vcpu(ARM_CPU(cs)); WARNING: line over 80 characters #113: FILE: hw/arm/virt.c:1861: + * Add disabled vcpu to cpu slot during the init phase of the virt machine. WARNING: line over 80 characters #119: FILE: hw/arm/virt.c:1867: + * 2. Now, after initialization of the virt machine is complete we could use WARNING: line over 80 characters #127: FILE: hw/arm/virt.c:1875: + * We will use the (ii) approach and release the ARMCPU objects after GIC total: 2 errors, 3 warnings, 159 lines checked Patch 5/22 has style problems, please review. If any of these errors are false positives report them to the maintainer, see CHECKPATCH in MAINTAINERS. 6/22 Checking commit cb588d911d62 (arm/cpuhp: Changes to pre-size GIC with possible vcpus @machine init) ERROR: braces {} are necessary for all arms of this statement #105: FILE: hw/intc/arm_gicv3_common.c:355: + if (qemu_present_cpu(cpu)) [...] + else [...] ERROR: braces {} are necessary for all arms of this statement #121: FILE: hw/intc/arm_gicv3_cpuif.c:782: + if (!qemu_present_cpu(cs->cpu)) [...] ERROR: braces {} are necessary for all arms of this statement #161: FILE: hw/intc/arm_gicv3_kvm.c:470: + if (!qemu_present_cpu(c->cpu)) [...] ERROR: braces {} are necessary for all arms of this statement #178: FILE: hw/intc/arm_gicv3_kvm.c:699: + if (!qemu_present_cpu(c->cpu)) [...] ERROR: braces {} are necessary for all arms of this statement #184: FILE: hw/intc/arm_gicv3_kvm.c:705: + if (!qemu_present_cpu(c->cpu)) [...] ERROR: braces {} are necessary for all arms of this statement #197: FILE: hw/intc/arm_gicv3_kvm.c:815: + if (qemu_present_cpu(cs)) [...] total: 6 errors, 0 warnings, 160 lines checked Patch 6/22 has style problems, please review. If any of these errors are false positives report them to the maintainer, see CHECKPATCH in MAINTAINERS. 7/22 Checking commit be81157f5799 (arm/cpuhp: Init PMU at host for all possible vcpus) 8/22 Checking commit 96ef87bd215d (arm/cpuhp: Enable ACPI support for vcpu hotplug) ERROR: braces {} are necessary for all arms of this statement #43: FILE: hw/acpi/cpu.c:222: + if (qemu_present_cpu(cpu)) [...] + else [...] total: 1 errors, 0 warnings, 48 lines checked Patch 8/22 has style problems, please review. If any of these errors are false positives report them to the maintainer, see CHECKPATCH in MAINTAINERS. 9/22 Checking commit 9d81444f4907 (arm/cpuhp: Init GED framework with cpu hotplug events) 10/22 Checking commit 72b8a98eb62a (arm/cpuhp: Update CPUs AML with cpu-(ctrl)dev change) 11/22 Checking commit a41164f24088 (arm/cpuhp: Update GED _EVT method AML with cpu scan) 12/22 Checking commit e9543c111d5d (arm/cpuhp: MADT Tbl change to size the guest with possible vcpus) ERROR: space prohibited after that open parenthesis '(' #53: FILE: hw/arm/virt-acpi-build.c:632: + if ( i < vms->smp_cpus ) { ERROR: space prohibited before that close parenthesis ')' #53: FILE: hw/arm/virt-acpi-build.c:632: + if ( i < vms->smp_cpus ) { total: 2 errors, 0 warnings, 39 lines checked Patch 12/22 has style problems, please review. If any of these errors are false positives report them to the maintainer, see CHECKPATCH in MAINTAINERS. 13/22 Checking commit 1f520fd3c10b (arm/cpuhp: Add ACPI _MAT entry for Processor object) ERROR: space required after that ',' (ctx:VxV) #45: FILE: hw/arm/virt-acpi-build.c:600: + AcpiMadtGenericCpuInterface *gicc = acpi_data_push(entry,sizeof(*gicc)); ^ total: 1 errors, 0 warnings, 50 lines checked Patch 13/22 has style problems, please review. If any of these errors are false positives report them to the maintainer, see CHECKPATCH in MAINTAINERS. 14/22 Checking commit a8d5f8e441b4 (arm/cpuhp: Release objects for *disabled* possible vcpus after init) 15/22 Checking commit 8e171312cdaf (arm/cpuhp: Update ACPI GED framework to support vcpu hotplug) WARNING: line over 80 characters #49: FILE: hw/acpi/generic_event_device.c:213: + error_setg(errp, "virt: device unplug request for the unsupported device" total: 0 errors, 1 warnings, 75 lines checked Patch 15/22 has style problems, please review. If any of these errors are false positives report them to the maintainer, see CHECKPATCH in MAINTAINERS. 16/22 Checking commit 643af9ec7c7d (arm/cpuhp: Add/update basic hot-(un)plug framework) WARNING: line over 80 characters #69: FILE: hw/arm/virt.c:2396: + /* TODO: update acpi hotplug state and send cpu hotplug event to guest */ WARNING: line over 80 characters #70: FILE: hw/arm/virt.c:2397: + /* TODO: register this cpu for reset & update F/W info for the next boot */ ERROR: that open brace { should be on the previous line #94: FILE: hw/arm/virt.c:2421: + if (cs->cpu_index == first_cpu->cpu_index) + { WARNING: line over 80 characters #126: FILE: hw/arm/virt.c:2453: + /* TODO: unregister this cpu for reset & update F/W info for the next boot */ total: 1 errors, 3 warnings, 146 lines checked Patch 16/22 has style problems, please review. If any of these errors are false positives report them to the maintainer, see CHECKPATCH in MAINTAINERS. 17/22 Checking commit bcfc8e7af6d2 (arm/cpuhp: Changes to (un)wire GICC<->VCPU IRQs during hot-(un)plug) WARNING: Block comments use a leading /* on a separate line #33: FILE: hw/arm/virt.c:627: + /* Mapping from the output timer irq lines from the CPU to the WARNING: line over 80 characters #48: FILE: hw/arm/virt.c:642: + qdev_disconnect_gpio_out_named(cpudev, "gicv3-maintenance-interrupt", 0); ERROR: line over 90 characters #50: FILE: hw/arm/virt.c:644: + qdev_disconnect_gpio_out_named(gicdev, SYSBUS_DEVICE_GPIO_IRQ, cpu + 4 * max_cpus); WARNING: line over 80 characters #54: FILE: hw/arm/virt.c:648: + * RFC: Question: This currently does not takes care of intimating the devices WARNING: line over 80 characters #55: FILE: hw/arm/virt.c:649: + * which might be sitting on system bus. Do we need a sysbus_disconnect_irq() WARNING: Block comments use a leading /* on a separate line #81: FILE: hw/arm/virt.c:675: + /* Mapping from the output timer irq lines from the CPU to the total: 1 errors, 5 warnings, 190 lines checked Patch 17/22 has style problems, please review. If any of these errors are false positives report them to the maintainer, see CHECKPATCH in MAINTAINERS. 18/22 Checking commit 659f80fdff39 (arm/cpuhp: Changes to update GIC with vcpu hot-plug notification) ERROR: "foo * bar" should be "foo *bar" #99: FILE: hw/intc/arm_gicv3_common.c:329: +static void arm_gicv3_cpu_update_notifier(Notifier * notifier, void * data) total: 1 errors, 0 warnings, 147 lines checked Patch 18/22 has style problems, please review. If any of these errors are false positives report them to the maintainer, see CHECKPATCH in MAINTAINERS. 19/22 Checking commit 185a83e914a7 (arm/cpuhp: Changes required to (re)init the vcpu register info) WARNING: Block comments use a leading /* on a separate line #65: FILE: hw/intc/arm_gicv3_cpuif.c:2613: + /* Note that we can't just use the GICv3CPUState as an opaque pointer WARNING: Block comments use a leading /* on a separate line #83: FILE: hw/intc/arm_gicv3_cpuif.c:2631: + /* Check against architectural constraints: getting these WARNING: Block comments use a leading /* on a separate line #94: FILE: hw/intc/arm_gicv3_cpuif.c:2642: + /* Note that the AArch64 LRs are 64-bit; the AArch32 LRs total: 0 errors, 3 warnings, 211 lines checked Patch 19/22 has style problems, please review. If any of these errors are false positives report them to the maintainer, see CHECKPATCH in MAINTAINERS. 20/22 Checking commit d5feac63a862 (arm/cpuhp: Update the guest(via GED) about cpu hot-(un)plug events) ERROR: braces {} are necessary for all arms of this statement #44: FILE: hw/arm/virt.c:2469: + if (local_err) [...] ERROR: braces {} are necessary for all arms of this statement #73: FILE: hw/arm/virt.c:2509: + if (local_err) [...] ERROR: braces {} are necessary for all arms of this statement #100: FILE: hw/arm/virt.c:2537: + if (local_err) [...] total: 3 errors, 0 warnings, 84 lines checked Patch 20/22 has style problems, please review. If any of these errors are false positives report them to the maintainer, see CHECKPATCH in MAINTAINERS. 21/22 Checking commit 988141e42492 (arm/cpuhp: Changes required for reset and to support next boot) 22/22 Checking commit dc56c5324bae (arm/cpuhp: Add support of *unrealize* ARMCPU during vcpu hot-unplug) ERROR: space required before the open parenthesis '(' #50: FILE: exec.c:900: + if(cpu->cpu_ases_ref_count == 1) { ERROR: suspect code indent for conditional statements (4, 11) #217: FILE: target/arm/cpu.c:1805: + if (cpu->sau_sregion && arm_feature(env, ARM_FEATURE_M_SECURITY)) { + g_free(env->sau.rbar); ERROR: code indent should never use tabs #272: FILE: target/arm/cpu.c:2233: +^I^I^I^I &acc->parent_unrealize);$ ERROR: braces {} are necessary for all arms of this statement #394: FILE: target/arm/kvm64.c:845: + if (qemu_present_cpu(cs)) [...] total: 4 errors, 0 warnings, 316 lines checked Patch 22/22 has style problems, please review. If any of these errors are false positives report them to the maintainer, see CHECKPATCH in MAINTAINERS. === OUTPUT END === Test command exited with code: 1 The full log is available at http://patchew.org/logs/20200613213629.21984-1-salil.me...@huawei.com/testing.checkpatch/?type=message. --- Email generated automatically by Patchew [https://patchew.org/]. Please send your feedback to patchew-de...@redhat.com