From: no-reply@patchew.org
To: vilanova@ac.upc.edu
Cc: famz@redhat.com, qemu-devel@nongnu.org, pbonzini@redhat.com,
crosthwaite.peter@gmail.com, rth@twiddle.net
Subject: Re: [Qemu-devel] [RFC PATCH v2 0/6] translate: [tcg] Generic translation framework
Date: Sun, 11 Sep 2016 22:05:23 -0700 (PDT) [thread overview]
Message-ID: <20160912050505.19908.14417@ex-std-node742.prod.rhcloud.com> (raw)
In-Reply-To: <147342618684.13303.1583142856242164602.stgit@fimbulvetr.bsc.es>
Hi,
Your series seems to have some coding style problems. See output below for
more information:
Type: series
Message-id: 147342618684.13303.1583142856242164602.stgit@fimbulvetr.bsc.es
Subject: [Qemu-devel] [RFC PATCH v2 0/6] translate: [tcg] Generic translation framework
=== TEST SCRIPT BEGIN ===
#!/bin/bash
BASE=base
n=1
total=$(git log --oneline $BASE.. | wc -l)
failed=0
# Useful git options
git config --local diff.renamelimit 0
git config --local diff.renames True
commits="$(git log --format=%H --reverse $BASE..)"
for c in $commits; do
echo "Checking PATCH $n/$total: $(git show --no-patch --format=%s $c)..."
if ! git show $c --format=email | ./scripts/checkpatch.pl --mailback -; then
failed=1
echo
fi
n=$((n+1))
done
exit $failed
=== TEST SCRIPT END ===
Updating 3c8cf5a9c21ff8782164d1def7f44bd888713384
Switched to a new branch 'test'
ec3c1db target: [tcg, arm] Port to generic translation framework
19005fc target: [tcg, i386] Port to generic translation framework
e068b67 target: [tcg] Redefine DISAS_* onto the generic translation framework (DJ_*)
003b3c3 target: [tcg] Add generic translation framework
8b3b57a queue: Add macro for incremental traversal
216c91c Pass generic CPUState to gen_intermediate_code()
=== OUTPUT BEGIN ===
Checking PATCH 1/6: Pass generic CPUState to gen_intermediate_code()...
ERROR: "foo * bar" should be "foo *bar"
#840: FILE: target-sh4/translate.c:1832:
+ CPUSH4State * env = cpu->env_ptr;
ERROR: "foo * bar" should be "foo *bar"
#902: FILE: target-sparc/translate.c:5569:
+ CPUSPARCState * env = cpu->env_ptr;
total: 2 errors, 0 warnings, 937 lines checked
Your patch has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
Checking PATCH 2/6: queue: Add macro for incremental traversal...
Checking PATCH 3/6: target: [tcg] Add generic translation framework...
ERROR: open brace '{' following enum go on the same line
#64: FILE: include/exec/translate-all_template.h:34:
+typedef enum BreakpointHitType
+{
ERROR: open brace '{' following enum go on the same line
#79: FILE: include/exec/translate-all_template.h:49:
+typedef enum DisasJumpType
+{
ERROR: open brace '{' following struct go on the same line
#97: FILE: include/exec/translate-all_template.h:67:
+typedef struct DisasContextBase
+{
ERROR: line over 90 characters
#116: FILE: include/qom/cpu.h:852:
+static inline CPUBreakpoint *cpu_breakpoint_get(CPUState *cpu, vaddr pc, CPUBreakpoint *bp)
ERROR: "foo * bar" should be "foo *bar"
#170: FILE: translate-all_template.h:26:
+ DisasContext * restrict dc, CPUArchState * restrict env);
ERROR: "foo * bar" should be "foo *bar"
#173: FILE: translate-all_template.h:29:
+ DisasContext * restrict dc, CPUArchState * restrict env);
ERROR: "foo * bar" should be "foo *bar"
#176: FILE: translate-all_template.h:32:
+ DisasContext * restrict dc, CPUArchState * restrict env);
ERROR: "foo * bar" should be "foo *bar"
#179: FILE: translate-all_template.h:35:
+ DisasContext * restrict dc, CPUArchState * restrict env);
ERROR: "foo * bar" should be "foo *bar"
#182: FILE: translate-all_template.h:38:
+ DisasContext * restrict dc, CPUArchState * restrict env,
ERROR: "foo * bar" should be "foo *bar"
#183: FILE: translate-all_template.h:39:
+ const CPUBreakpoint * restrict bp);
ERROR: "foo * bar" should be "foo *bar"
#186: FILE: translate-all_template.h:42:
+ DisasContext * restrict dc, CPUArchState * restrict env);
ERROR: "foo * bar" should be "foo *bar"
#189: FILE: translate-all_template.h:45:
+ DisasContext * restrict dc, CPUArchState * restrict env);
ERROR: "foo * bar" should be "foo *bar"
#192: FILE: translate-all_template.h:48:
+ DisasContext * restrict dc, CPUArchState * restrict env);
ERROR: line over 90 characters
#257: FILE: translate-all_template.h:113:
+ BreakpointHitType bh = gen_intermediate_code_target_breakpoint_hit(dc, env, bp);
WARNING: line over 80 characters
#334: FILE: translate-all_template.h:190:
+ log_target_disas(cpu, dc->base.pc_first, dc->base.pc_next - dc->base.pc_first,
total: 14 errors, 1 warnings, 311 lines checked
Your patch has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
Checking PATCH 4/6: target: [tcg] Redefine DISAS_* onto the generic translation framework (DJ_*)...
ERROR: spaces required around that '+' (ctx:VxV)
#31: FILE: include/exec/exec-all.h:42:
+#define DISAS_JUMP (DJ_TARGET+0) /* only pc was modified dynamically */
^
ERROR: spaces required around that '+' (ctx:VxV)
#32: FILE: include/exec/exec-all.h:43:
+#define DISAS_UPDATE (DJ_TARGET+1) /* cpu state was modified dynamically */
^
ERROR: spaces required around that '+' (ctx:VxV)
#33: FILE: include/exec/exec-all.h:44:
+#define DISAS_TB_JUMP (DJ_TARGET+2) /* only pc was modified statically */
^
ERROR: spaces required around that '+' (ctx:VxV)
#34: FILE: include/exec/exec-all.h:45:
+#define DISAS_TARGET (DJ_TARGET+3) /* base for target-specific values */
^
ERROR: Macros with complex values should be enclosed in parenthesis
#53: FILE: target-arm/translate.h:115:
+#define DISAS_WFI DISAS_TARGET + 0
ERROR: Macros with complex values should be enclosed in parenthesis
#54: FILE: target-arm/translate.h:116:
+#define DISAS_SWI DISAS_TARGET + 1
ERROR: Macros with complex values should be enclosed in parenthesis
#59: FILE: target-arm/translate.h:120:
+#define DISAS_EXC DISAS_TARGET + 2
ERROR: Macros with complex values should be enclosed in parenthesis
#65: FILE: target-arm/translate.h:122:
+#define DISAS_WFE DISAS_TARGET + 3
ERROR: Macros with complex values should be enclosed in parenthesis
#66: FILE: target-arm/translate.h:123:
+#define DISAS_HVC DISAS_TARGET + 4
ERROR: Macros with complex values should be enclosed in parenthesis
#67: FILE: target-arm/translate.h:124:
+#define DISAS_SMC DISAS_TARGET + 5
ERROR: Macros with complex values should be enclosed in parenthesis
#68: FILE: target-arm/translate.h:125:
+#define DISAS_YIELD DISAS_TARGET + 6
ERROR: Macros with complex values should be enclosed in parenthesis
#82: FILE: target-cris/translate.c:54:
+#define DISAS_SWI DISAS_TARGET + 0
ERROR: Macros with complex values should be enclosed in parenthesis
#96: FILE: target-m68k/translate.c:145:
+#define DISAS_JUMP_NEXT DISAS_TARGET + 0
ERROR: Macros with complex values should be enclosed in parenthesis
#110: FILE: target-s390x/translate.c:78:
+#define DISAS_EXCP DISAS_TARGET + 0
ERROR: Macros with complex values should be enclosed in parenthesis
#126: FILE: target-unicore32/translate.c:51:
+#define DISAS_SYSCALL DISAS_TARGET + 0
total: 15 errors, 0 warnings, 84 lines checked
Your patch has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
Checking PATCH 5/6: target: [tcg, i386] Port to generic translation framework...
ERROR: spaces required around that '+' (ctx:VxV)
#21: FILE: target-i386/translate.c:73:
+#define DJ_JUMP (DJ_TARGET+0) /* end of block due to call/jump */
^
ERROR: spaces required around that '+' (ctx:VxV)
#22: FILE: target-i386/translate.c:74:
+#define DJ_MISC (DJ_TARGET+1) /* some other reason */
^
ERROR: open brace '{' following struct go on the same line
#34: FILE: target-i386/translate.c:103:
+typedef struct DisasContext
+{
ERROR: "foo * bar" should be "foo *bar"
#214: FILE: target-i386/translate.c:4345:
+ DisasContext * restrict s, CPUX86State * restrict env)
ERROR: "foo * bar" should be "foo *bar"
#432: FILE: target-i386/translate.c:8210:
+ DisasContext * restrict dc, CPUX86State * restrict env)
ERROR: "foo * bar" should be "foo *bar"
#482: FILE: target-i386/translate.c:8266:
+ DisasContext * restrict dc, CPUX86State * restrict env)
ERROR: "foo * bar" should be "foo *bar"
#504: FILE: target-i386/translate.c:8283:
+ DisasContext * restrict dc, CPUX86State * restrict env)
ERROR: "foo * bar" should be "foo *bar"
#529: FILE: target-i386/translate.c:8288:
+ DisasContext * restrict dc, CPUX86State * restrict env)
ERROR: "foo * bar" should be "foo *bar"
#577: FILE: target-i386/translate.c:8294:
+ DisasContext * restrict dc, CPUX86State * restrict env,
ERROR: "foo * bar" should be "foo *bar"
#578: FILE: target-i386/translate.c:8295:
+ const CPUBreakpoint * restrict bp)
ERROR: "foo * bar" should be "foo *bar"
#615: FILE: target-i386/translate.c:8313:
+ DisasContext * restrict dc, CPUX86State * restrict env)
WARNING: line over 80 characters
#630: FILE: target-i386/translate.c:8328:
+ != ((dc->base.pc_next + TARGET_MAX_INSN_SIZE - 1) & TARGET_PAGE_MASK)) {
ERROR: "foo * bar" should be "foo *bar"
#643: FILE: target-i386/translate.c:8338:
+ DisasContext * restrict dc, CPUX86State * restrict env)
total: 12 errors, 1 warnings, 616 lines checked
Your patch has style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
Checking PATCH 6/6: target: [tcg, arm] Port to generic translation framework...
WARNING: line over 80 characters
#52: FILE: target-arm/translate-a64.c:274:
+ if (s->base.singlestep_enabled || s->ss_active || (s->base.tb->cflags & CF_LAST_IO)) {
WARNING: line over 80 characters
#94: FILE: target-arm/translate-a64.c:337:
+ __FILE__, __LINE__, insn, s->base.pc_next - 4); \
ERROR: externs should be avoided in .c files
#316: FILE: target-arm/translate-a64.c:11079:
+void disas_a64_insn(CPUARMState *env, DisasContext *s);
ERROR: "foo * bar" should be "foo *bar"
#355: FILE: target-arm/translate-a64.c:11131:
+ DisasContext * restrict dc, CPUArchState * restrict env)
ERROR: "foo * bar" should be "foo *bar"
#442: FILE: target-arm/translate-a64.c:11184:
+ DisasContext * restrict dc, CPUArchState * restrict env)
ERROR: "foo * bar" should be "foo *bar"
#450: FILE: target-arm/translate-a64.c:11189:
+ DisasContext * restrict dc, CPUArchState * restrict env)
ERROR: "foo * bar" should be "foo *bar"
#472: FILE: target-arm/translate-a64.c:11194:
+ DisasContext * restrict dc, CPUArchState * restrict env)
ERROR: "foo * bar" should be "foo *bar"
#479: FILE: target-arm/translate-a64.c:11201:
+ DisasContext * restrict dc, CPUArchState * restrict env,
ERROR: "foo * bar" should be "foo *bar"
#480: FILE: target-arm/translate-a64.c:11202:
+ const CPUBreakpoint * restrict bp)
ERROR: "foo * bar" should be "foo *bar"
#501: FILE: target-arm/translate-a64.c:11223:
+ DisasContext * restrict dc, CPUArchState * restrict env)
ERROR: "foo * bar" should be "foo *bar"
#544: FILE: target-arm/translate-a64.c:11247:
+ DisasContext * restrict dc, CPUArchState * restrict env)
ERROR: "foo * bar" should be "foo *bar"
#561: FILE: target-arm/translate-a64.c:11262:
+ DisasContext * restrict dc, CPUArchState * restrict env)
WARNING: line over 80 characters
#807: FILE: target-arm/translate.c:4058:
+ ((s->base.pc_next - 1) & TARGET_PAGE_MASK) == (dest & TARGET_PAGE_MASK);
ERROR: spaces required around that '=' (ctx:VxV)
#1292: FILE: target-arm/translate.c:11645:
+ for(i=0;i<16;i++) {
^
ERROR: space required after that ';' (ctx:VxV)
#1292: FILE: target-arm/translate.c:11645:
+ for(i=0;i<16;i++) {
^
ERROR: spaces required around that '<' (ctx:VxV)
#1292: FILE: target-arm/translate.c:11645:
+ for(i=0;i<16;i++) {
^
ERROR: space required after that ';' (ctx:VxV)
#1292: FILE: target-arm/translate.c:11645:
+ for(i=0;i<16;i++) {
^
ERROR: space required before the open parenthesis '('
#1292: FILE: target-arm/translate.c:11645:
+ for(i=0;i<16;i++) {
ERROR: braces {} are necessary for all arms of this statement
#1294: FILE: target-arm/translate.c:11647:
+ if ((i % 4) == 3)
[...]
+ else
[...]
ERROR: "foo * bar" should be "foo *bar"
#1376: FILE: target-arm/translate.c:11725:
+ DisasContext * restrict dc, CPUARMState * restrict env)
ERROR: "foo * bar" should be "foo *bar"
#1436: FILE: target-arm/translate.c:11779:
+ DisasContext * restrict dc, CPUARMState * restrict env)
ERROR: "foo * bar" should be "foo *bar"
#1461: FILE: target-arm/translate.c:11792:
+ DisasContext * restrict dc, CPUARMState * restrict env)
ERROR: "foo * bar" should be "foo *bar"
#1492: FILE: target-arm/translate.c:11836:
+ DisasContext * restrict dc, CPUARMState * restrict env)
ERROR: "foo * bar" should be "foo *bar"
#1580: FILE: target-arm/translate.c:11862:
+ DisasContext * restrict dc, CPUARMState * restrict env,
ERROR: "foo * bar" should be "foo *bar"
#1581: FILE: target-arm/translate.c:11863:
+ const CPUBreakpoint * restrict bp)
ERROR: "foo * bar" should be "foo *bar"
#1605: FILE: target-arm/translate.c:11887:
+ DisasContext * restrict dc, CPUArchState * restrict env)
ERROR: "foo * bar" should be "foo *bar"
#1675: FILE: target-arm/translate.c:11932:
+ DisasContext * restrict dc, CPUARMState * restrict env)
ERROR: "foo * bar" should be "foo *bar"
#1712: FILE: target-arm/translate.c:11963:
+ DisasContext * restrict dc, CPUARMState * restrict env)
ERROR: space required before the open parenthesis '('
#1744: FILE: target-arm/translate.c:11985:
+ switch(jt) {
ERROR: spaces required around that '+' (ctx:VxV)
#1988: FILE: target-arm/translate.h:113:
+#define DJ_JUMP (DJ_TARGET+0)
^
ERROR: spaces required around that '+' (ctx:VxV)
#1989: FILE: target-arm/translate.h:114:
+#define DJ_UPDATE (DJ_TARGET+1)
^
ERROR: spaces required around that '+' (ctx:VxV)
#1990: FILE: target-arm/translate.h:115:
+#define DJ_TB_JUMP (DJ_TARGET+2)
^
ERROR: spaces required around that '+' (ctx:VxV)
#1997: FILE: target-arm/translate.h:120:
+#define DJ_WFI (DJ_TARGET+3)
^
ERROR: spaces required around that '+' (ctx:VxV)
#1998: FILE: target-arm/translate.h:121:
+#define DJ_SWI (DJ_TARGET+4)
^
ERROR: spaces required around that '+' (ctx:VxV)
#2003: FILE: target-arm/translate.h:125:
+#define DJ_EXC (DJ_TARGET+5)
^
ERROR: spaces required around that '+' (ctx:VxV)
#2009: FILE: target-arm/translate.h:127:
+#define DJ_WFE (DJ_TARGET+6)
^
ERROR: spaces required around that '+' (ctx:VxV)
#2010: FILE: target-arm/translate.h:128:
+#define DJ_HVC (DJ_TARGET+7)
^
ERROR: spaces required around that '+' (ctx:VxV)
#2011: FILE: target-arm/translate.h:129:
+#define DJ_SMC (DJ_TARGET+8)
^
ERROR: spaces required around that '+' (ctx:VxV)
#2012: FILE: target-arm/translate.h:130:
+#define DJ_YIELD (DJ_TARGET+9)
^
ERROR: spaces required around that '+' (ctx:VxV)
#2013: FILE: target-arm/translate.h:131:
+#define DJ_SS (DJ_TARGET+10)
^
ERROR: spaces required around that '+' (ctx:VxV)
#2014: FILE: target-arm/translate.h:132:
+#define DJ_PAGE_CROSS (DJ_TARGET+11)
^
ERROR: spaces required around that '+' (ctx:VxV)
#2015: FILE: target-arm/translate.h:133:
+#define DJ_SKIP (DJ_TARGET+12)
^
total: 39 errors, 3 warnings, 1920 lines checked
Your patch 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
---
Email generated automatically by Patchew [http://patchew.org/].
Please send your feedback to patchew-devel@freelists.org
next prev parent reply other threads:[~2016-09-12 5:05 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-09 13:03 [Qemu-devel] [RFC PATCH v2 0/6] translate: [tcg] Generic translation framework Lluís Vilanova
2016-09-09 13:03 ` [Qemu-devel] [PATCH v2 1/6] Pass generic CPUState to gen_intermediate_code() Lluís Vilanova
2016-09-16 23:01 ` Richard Henderson
2016-09-19 12:14 ` Lluís Vilanova
2016-09-09 13:03 ` [Qemu-devel] [PATCH v2 2/6] queue: Add macro for incremental traversal Lluís Vilanova
2016-09-09 13:03 ` [Qemu-devel] [PATCH v2 3/6] target: [tcg] Add generic translation framework Lluís Vilanova
2016-09-09 13:03 ` [Qemu-devel] [PATCH v2 4/6] target: [tcg] Redefine DISAS_* onto the generic translation framework (DJ_*) Lluís Vilanova
2016-09-09 13:03 ` [Qemu-devel] [PATCH v2 5/6] target: [tcg, i386] Port to generic translation framework Lluís Vilanova
2016-09-09 13:03 ` [Qemu-devel] [PATCH v2 6/6] target: [tcg, arm] " Lluís Vilanova
2016-09-12 3:56 ` [Qemu-devel] [RFC PATCH v2 0/6] translate: [tcg] Generic " no-reply
2016-09-12 5:05 ` no-reply [this message]
2016-09-13 16:09 ` Lluís Vilanova
2016-09-26 16:23 ` Lluís Vilanova
2017-01-27 17:12 ` Alex Bennée
2017-01-29 12:27 ` Lluís Vilanova
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160912050505.19908.14417@ex-std-node742.prod.rhcloud.com \
--to=no-reply@patchew.org \
--cc=crosthwaite.peter@gmail.com \
--cc=famz@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=rth@twiddle.net \
--cc=vilanova@ac.upc.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).