Message ID | 20210212123622.15834-1-cfontana@suse.de (mailing list archive) |
---|---|
Headers | show |
Series | i386 cleanup PART 2 | expand |
Patchew URL: https://patchew.org/QEMU/20210212123622.15834-1-cfontana@suse.de/ Hi, This series seems to have some coding style problems. See output below for more information: Type: series Message-id: 20210212123622.15834-1-cfontana@suse.de Subject: [RFC v18 00/15] i386 cleanup PART 2 === 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 From https://github.com/patchew-project/qemu - [tag update] patchew/20210211232835.2608059-1-crosa@redhat.com -> patchew/20210211232835.2608059-1-crosa@redhat.com * [new tag] patchew/20210212123622.15834-1-cfontana@suse.de -> patchew/20210212123622.15834-1-cfontana@suse.de Switched to a new branch 'test' ed48894 i386: split off softmmu part of cpu.c dd2e304 i386: split seg_helper into user-only and softmmu parts 3e629d7 i386: slit svm_helper into softmmu and stub-only user cb66e6a i386: separate fpu_helper into user and softmmu parts 1f6097b i386: split misc helper into user and softmmu parts 510ce76 i386: split tcg btp_helper into softmmu and user parts a3e6766 i386: split tcg excp_helper into softmmu and user parts d4748e9 i386: split smm helper (softmmu) 9048a77 i386: split off softmmu-only functionality in tcg-cpu 5ebedb2 meson: add target_user_arch 32174a9 accel-cpu: make cpu_realizefn return a bool 4d3e346 target/i386: fix host_cpu_adjust_phys_bits error handling d14cb3c accel: introduce new accessor functions f121c98 cpu: call AccelCPUClass::cpu_realizefn in cpu_exec_realizefn c63d0f7 i386: split cpu accelerators from cpu.c, using AccelCPUClass === OUTPUT BEGIN === 1/15 Checking commit c63d0f75db32 (i386: split cpu accelerators from cpu.c, using AccelCPUClass) WARNING: line over 80 characters #1335: FILE: target/i386/tcg/tcg-cpu.c:125: + memory_region_add_subregion_overlap(cpu->cpu_as_root, 0, cpu->cpu_as_mem, 0); total: 0 errors, 1 warnings, 1256 lines checked Patch 1/15 has style problems, please review. If any of these errors are false positives report them to the maintainer, see CHECKPATCH in MAINTAINERS. 2/15 Checking commit f121c98d2a7b (cpu: call AccelCPUClass::cpu_realizefn in cpu_exec_realizefn) 3/15 Checking commit d14cb3c31355 (accel: introduce new accessor functions) 4/15 Checking commit 4d3e3462a311 (target/i386: fix host_cpu_adjust_phys_bits error handling) 5/15 Checking commit 32174a937139 (accel-cpu: make cpu_realizefn return a bool) 6/15 Checking commit 5ebedb2a2fe7 (meson: add target_user_arch) 7/15 Checking commit 9048a775db0f (i386: split off softmmu-only functionality in tcg-cpu) WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #30: new file mode 100644 WARNING: line over 80 characters #115: FILE: target/i386/tcg/softmmu/tcg-cpu.c:72: + memory_region_add_subregion_overlap(cpu->cpu_as_root, 0, cpu->cpu_as_mem, 0); total: 0 errors, 2 warnings, 212 lines checked Patch 7/15 has style problems, please review. If any of these errors are false positives report them to the maintainer, see CHECKPATCH in MAINTAINERS. 8/15 Checking commit d4748e97ef3d (i386: split smm helper (softmmu)) WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #18: target/i386/tcg/{ => softmmu}/smm_helper.c | 19 ++----------------- total: 0 errors, 1 warnings, 77 lines checked Patch 8/15 has style problems, please review. If any of these errors are false positives report them to the maintainer, see CHECKPATCH in MAINTAINERS. 9/15 Checking commit a3e67665263e (i386: split tcg excp_helper into softmmu and user parts) WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #598: new file mode 100644 WARNING: Block comments use a leading /* on a separate line #736: FILE: target/i386/tcg/softmmu/excp_helper.c:134: + /* Bits 20-13 provide bits 39-32 of the address, bit 21 is reserved. WARNING: Block comments use a leading /* on a separate line #810: FILE: target/i386/tcg/softmmu/excp_helper.c:208: +/* return value: WARNING: line over 80 characters #911: FILE: target/i386/tcg/softmmu/excp_helper.c:309: + pdpe_addr = ((pml4e & PG_ADDRESS_MASK) + (((addr >> 30) & 0x1ff) << 3)) & WARNING: Block comments use a leading /* on a separate line #1005: FILE: target/i386/tcg/softmmu/excp_helper.c:403: + /* Bits 20-13 provide bits 39-32 of the address, bit 21 is reserved. WARNING: Block comments use a leading /* on a separate line #1100: FILE: target/i386/tcg/softmmu/excp_helper.c:498: + /* only set write access if already dirty... otherwise wait WARNING: Block comments use * on subsequent lines #1101: FILE: target/i386/tcg/softmmu/excp_helper.c:499: + /* only set write access if already dirty... otherwise wait + for dirty access */ WARNING: Block comments use a trailing */ on a separate line #1101: FILE: target/i386/tcg/softmmu/excp_helper.c:499: + for dirty access */ WARNING: Block comments use a leading /* on a separate line #1114: FILE: target/i386/tcg/softmmu/excp_helper.c:512: + /* Even if 4MB pages, we map only one 4KB page in the cache to WARNING: Block comments use * on subsequent lines #1115: FILE: target/i386/tcg/softmmu/excp_helper.c:513: + /* Even if 4MB pages, we map only one 4KB page in the cache to + avoid filling it too fast */ WARNING: Block comments use a trailing */ on a separate line #1115: FILE: target/i386/tcg/softmmu/excp_helper.c:513: + avoid filling it too fast */ ERROR: braces {} are necessary for all arms of this statement #1129: FILE: target/i386/tcg/softmmu/excp_helper.c:527: + if (is_user) [...] total: 1 errors, 11 warnings, 612 lines checked Patch 9/15 has style problems, please review. If any of these errors are false positives report them to the maintainer, see CHECKPATCH in MAINTAINERS. 10/15 Checking commit 510ce76bff6f (i386: split tcg btp_helper into softmmu and user parts) WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #359: new file mode 100644 WARNING: Block comments use a leading /* on a separate line #495: FILE: target/i386/tcg/softmmu/bpt_helper.c:132: + /* If nothing is changing except the global/local enable bits, WARNING: Block comments use * on subsequent lines #496: FILE: target/i386/tcg/softmmu/bpt_helper.c:133: + /* If nothing is changing except the global/local enable bits, + then we can make the change more efficient. */ WARNING: Block comments use a trailing */ on a separate line #496: FILE: target/i386/tcg/softmmu/bpt_helper.c:133: + then we can make the change more efficient. */ WARNING: Block comments use a leading /* on a separate line #498: FILE: target/i386/tcg/softmmu/bpt_helper.c:135: + /* Fold the global and local enable bits together into the WARNING: Block comments use * on subsequent lines #499: FILE: target/i386/tcg/softmmu/bpt_helper.c:136: + /* Fold the global and local enable bits together into the + global fields, then xor to show which registers have WARNING: Block comments use a trailing */ on a separate line #500: FILE: target/i386/tcg/softmmu/bpt_helper.c:137: + changed collective enable state. */ total: 0 errors, 7 warnings, 616 lines checked Patch 10/15 has style problems, please review. If any of these errors are false positives report them to the maintainer, see CHECKPATCH in MAINTAINERS. 11/15 Checking commit 1f6097bf8134 (i386: split misc helper into user and softmmu parts) WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #526: new file mode 100644 ERROR: switch and case should be at the same indent #819: FILE: target/i386/tcg/softmmu/misc_helper.c:289: + switch ((uint32_t)env->regs[R_ECX]) { [...] + case MSR_IA32_UCODE_REV: total: 1 errors, 1 warnings, 1009 lines checked Patch 11/15 has style problems, please review. If any of these errors are false positives report them to the maintainer, see CHECKPATCH in MAINTAINERS. 12/15 Checking commit cb66e6ae7b97 (i386: separate fpu_helper into user and softmmu parts) WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #142: new file mode 100644 total: 0 errors, 1 warnings, 219 lines checked Patch 12/15 has style problems, please review. If any of these errors are false positives report them to the maintainer, see CHECKPATCH in MAINTAINERS. 13/15 Checking commit 3e629d77855d (i386: slit svm_helper into softmmu and stub-only user) WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #12: target/i386/tcg/{ => softmmu}/svm_helper.c | 62 +----------------------- total: 0 errors, 1 warnings, 169 lines checked Patch 13/15 has style problems, please review. If any of these errors are false positives report them to the maintainer, see CHECKPATCH in MAINTAINERS. 14/15 Checking commit dd2e304724ac (i386: split seg_helper into user-only and softmmu parts) WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #320: new file mode 100644 ERROR: do not use C99 // comments #347: FILE: target/i386/tcg/seg_helper.h:23: +//#define DEBUG_PCALL WARNING: Block comments use a leading /* on a separate line #620: FILE: target/i386/tcg/user/seg_helper.c:73: + /* Since we emulate only user space, we cannot do more than WARNING: Block comments use * on subsequent lines #621: FILE: target/i386/tcg/user/seg_helper.c:74: + /* Since we emulate only user space, we cannot do more than + exiting the emulation with the suitable exception and error WARNING: Block comments use a trailing */ on a separate line #622: FILE: target/i386/tcg/user/seg_helper.c:75: + code. So update EIP for INT 0x80 and EXCP_SYSCALL. */ WARNING: Block comments use a leading /* on a separate line #633: FILE: target/i386/tcg/user/seg_helper.c:86: + /* if user mode only, we simulate a fake exception WARNING: Block comments use * on subsequent lines #634: FILE: target/i386/tcg/user/seg_helper.c:87: + /* if user mode only, we simulate a fake exception + which will be handled outside the cpu execution WARNING: Block comments use a trailing */ on a separate line #635: FILE: target/i386/tcg/user/seg_helper.c:88: + loop */ total: 1 errors, 7 warnings, 595 lines checked Patch 14/15 has style problems, please review. If any of these errors are false positives report them to the maintainer, see CHECKPATCH in MAINTAINERS. 15/15 Checking commit ed4889490139 (i386: split off softmmu part of cpu.c) WARNING: added, moved or deleted file(s), does MAINTAINERS need updating? #17: new file mode 100644 WARNING: Block comments use a leading /* on a separate line #51: FILE: target/i386/cpu-internal.h:30: + /* feature flags names are taken from "Intel Processor Identification and WARNING: Block comments use a leading /* on a separate line #134: FILE: target/i386/cpu-softmmu.c:37: +/* Return a QDict containing keys for all properties that can be included WARNING: Block comments use a leading /* on a separate line #187: FILE: target/i386/cpu-softmmu.c:90: +/* Convert CPU model data from X86CPU object to a property dictionary WARNING: Block comments use a leading /* on a separate line #201: FILE: target/i386/cpu-softmmu.c:104: +/* Convert CPU model data from X86CPU object to a property dictionary WARNING: Block comments use a leading /* on a separate line #217: FILE: target/i386/cpu-softmmu.c:120: + /* "hotplugged" is the only property that is configurable WARNING: Block comments use a leading /* on a separate line #307: FILE: target/i386/cpu-softmmu.c:210: + /* As we don't return every single property, full expansion needs total: 0 errors, 7 warnings, 895 lines checked Patch 15/15 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/20210212123622.15834-1-cfontana@suse.de/testing.checkpatch/?type=message. --- Email generated automatically by Patchew [https://patchew.org/]. Please send your feedback to patchew-devel@redhat.com
Claudio Fontana <cfontana@suse.de> writes: <snip> > Looking forward to your comments on this proposal, > <snip> So I've reviewed as much as I'm comfortable with - I'm going to defer to the x86 experts on the split of stuff for x86. However from my point of view I think it's a nice step in improving modularity and reducing the maze of #ifdefs in the code.
On 2/15/21 12:37 PM, Alex Bennée wrote: > > Claudio Fontana <cfontana@suse.de> writes: > > <snip> >> Looking forward to your comments on this proposal, >> > <snip> > > So I've reviewed as much as I'm comfortable with - I'm going to defer to > the x86 experts on the split of stuff for x86. However from my point of > view I think it's a nice step in improving modularity and reducing the > maze of #ifdefs in the code. > Thanks a lot Alex for your review. If I can leverage your TCG knowledge a bit more, as I forgot a lot about it, have you noticed in "i386: split tcg btp_helper into softmmu and user parts" and "i386: split smm helper (softmmu)" those new #ifndef CONFIG_USER_ONLY? Basically we remove some preamble stuff that would end up calling empty stubs for user mode, but do you think there could be some other consequence I am not seeing? Maybe there is even more that could be removed in the code immediately preceding those CONFIG_USER_ONLY? In particular I am referring to patches: i386: split tcg btp_helper into softmmu and user parts i386: split smm helper (softmmu) I am commenting those patches now inline, so that it is easier to see what I am talking about. Again, thanks a lot! Claudio