Received: from eggs.gnu.org ([2001:4830:134:3::10]:53102) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eg78y-0000DN-N7 for qemu-devel@nongnu.org; Mon, 29 Jan 2018 05:58:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eg78u-0001Eh-MY for qemu-devel@nongnu.org; Mon, 29 Jan 2018 05:58:32 -0500 Received: from mx1.redhat.com ([209.132.183.28]:38082) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eg78u-0001Da-EZ for qemu-devel@nongnu.org; Mon, 29 Jan 2018 05:58:28 -0500 References: <151721435440.776.955566177382694120@5adcb62bf0d6> <0a17662c-b713-5d96-a6dd-e7b84593f98b@redhat.com> From: Thomas Huth Message-ID: <6e79281d-6f87-480e-b1ea-b628055bf8fa@redhat.com> Date: Mon, 29 Jan 2018 11:58:21 +0100 MIME-Version: 1.0 In-Reply-To: <0a17662c-b713-5d96-a6dd-e7b84593f98b@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PULL 0/6] Net patches List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jason Wang , qemu-devel@nongnu.org Cc: famz@redhat.com, peter.maydell@linaro.org On 29.01.2018 11:02, Jason Wang wrote: >=20 >=20 > On 2018=E5=B9=B401=E6=9C=8829=E6=97=A5 16:25, no-reply@patchew.org wrot= e: >> Hi, >> >> This series seems to have some coding style problems. See output below >> for >> more information: >> >> Type: series >> Message-id: 1517213825-24085-1-git-send-email-jasowang@redhat.com >> Subject: [Qemu-devel] [PULL 0/6] Net patches >> >> =3D=3D=3D TEST SCRIPT BEGIN =3D=3D=3D >> #!/bin/bash >> >> BASE=3Dbase >> n=3D1 >> total=3D$(git log --oneline $BASE.. | wc -l) >> failed=3D0 >> >> git config --local diff.renamelimit 0 >> git config --local diff.renames True >> >> commits=3D"$(git log --format=3D%H --reverse $BASE..)" >> for c in $commits; do >> =C2=A0=C2=A0=C2=A0=C2=A0 echo "Checking PATCH $n/$total: $(git log -n = 1 --format=3D%s $c)..." >> =C2=A0=C2=A0=C2=A0=C2=A0 if ! git show $c --format=3Demail | ./scripts= /checkpatch.pl >> --mailback -; then >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 failed=3D1 >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 echo >> =C2=A0=C2=A0=C2=A0=C2=A0 fi >> =C2=A0=C2=A0=C2=A0=C2=A0 n=3D$((n+1)) >> done >> >> exit $failed >> =3D=3D=3D TEST SCRIPT END =3D=3D=3D >> >> Updating 3c8cf5a9c21ff8782164d1def7f44bd888713384 >> =C2=A0From https://github.com/patchew-project/qemu >> =C2=A0 * [new tag]=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 >> patchew/1517213825-24085-1-git-send-email-jasowang@redhat.com -> >> patchew/1517213825-24085-1-git-send-email-jasowang@redhat.com >> Switched to a new branch 'test' >> f599bb830a MAINTAINERS: update Dmitry Fleytman email >> d7e337961c qemu-doc: Get rid of "vlan=3DX" example in the documentatio= n >> b7bc06c0f4 net: Allow netdevs to be used with 'hostfwd_add' and >> 'hostfwd_remove' >> 85b4cac4ac net: Allow hubports to connect to other netdevs >> b4a35413c4 colo: compare the packet based on the tcp sequence number >> f6781da302 colo: modified the payload compare function >> >> =3D=3D=3D OUTPUT BEGIN =3D=3D=3D >> Checking PATCH 1/6: colo: modified the payload compare function... >> Checking PATCH 2/6: colo: compare the packet based on the tcp sequence >> number... >> Checking PATCH 3/6: net: Allow hubports to connect to other netdevs... >> Checking PATCH 4/6: net: Allow netdevs to be used with 'hostfwd_add' >> and 'hostfwd_remove'... >> ERROR: consider using qemu_strtol in preference to strtol >> #72: FILE: net/slirp.c:414: >> +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 nc= =3D net_hub_find_client_by_name(strtol(hub_id, NULL, 0), >> name); >> >> total: 1 errors, 0 warnings, 73 lines checked >> >> Your patch has style problems, please review.=C2=A0 If any of these er= rors >> are false positives report them to the maintainer, see >> CHECKPATCH in MAINTAINERS. >> >> Checking PATCH 5/6: qemu-doc: Get rid of "vlan=3DX" example in the >> documentation... >> Checking PATCH 6/6: MAINTAINERS: update Dmitry Fleytman email... >> =3D=3D=3D OUTPUT END =3D=3D=3D >> >> Test command exited with code: 1 >=20 > Thomas, want to send a v2 for this patch? No, that strtol was already there in the code before my patch, I just changed the indentation. If we decide that we want to replace it, this should be done by a separate patch instead. Question is: Do we really want to replace it here? (the error message is saying "consider ..." - so maybe that should also rather be a warning instead of an error message= ?) Thomas