From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57345) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c6DZl-00036m-Tf for qemu-devel@nongnu.org; Mon, 14 Nov 2016 04:29:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c6DZk-0002D5-S0 for qemu-devel@nongnu.org; Mon, 14 Nov 2016 04:29:17 -0500 Received: from mail-it0-x232.google.com ([2607:f8b0:4001:c0b::232]:36257) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c6DZk-0002C7-JO for qemu-devel@nongnu.org; Mon, 14 Nov 2016 04:29:16 -0500 Received: by mail-it0-x232.google.com with SMTP id q124so93679631itd.1 for ; Mon, 14 Nov 2016 01:29:16 -0800 (PST) MIME-Version: 1.0 Sender: vpalatin@google.com In-Reply-To: <479b2523-f7f7-2a65-4fda-57084714d07f@weilnetz.de> References: <147900720399.226.10800365976960745863@9040ca97f87d> <479b2523-f7f7-2a65-4fda-57084714d07f@weilnetz.de> From: Vincent Palatin Date: Mon, 14 Nov 2016 10:28:54 +0100 Message-ID: Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] [PATCH v2 0/5] [RFC] Add HAX support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Weil Cc: famz@redhat.com, qemu-devel , Paolo Bonzini On Mon, Nov 14, 2016 at 9:55 AM, Stefan Weil wrote: > On 11/14/16 09:21, Vincent Palatin wrote: >> >> On Sun, Nov 13, 2016 at 4:20 AM, wrote: >>> >>> >>> === OUTPUT BEGIN === >>> fatal: unrecognized argument: --no-patch >>> Checking PATCH 1/5: ... >>> fatal: unrecognized argument: --no-patch >>> Checking PATCH 2/5: ... >>> fatal: unrecognized argument: --no-patch >>> Checking PATCH 3/5: ... >>> fatal: unrecognized argument: --no-patch >>> Checking PATCH 4/5: ... >>> fatal: unrecognized argument: --no-patch >>> Checking PATCH 5/5: ... >>> ERROR: spaces required around that '-' (ctx:WxV) >>> #158: FILE: cpus.c:1276: >>> + if (SuspendThread(cpu->hThread) == (DWORD) -1) { >>> ^ >>> >>> ERROR: spaces required around that '-' (ctx:WxV) >>> #176: FILE: cpus.c:1294: >>> + if (ResumeThread(cpu->hThread) == (DWORD) -1) { >>> ^ >>> >> >> Apparently I missed this couple of warnings when I did my final checkpatch >> pass. >> At the same time, I have no idea how to solve this one, can anybody >> enlighten me ? >> Having a space on both sides of a unary minus doesn't seem what we want, >> so I imagine something else is wrong and confuse a bit checkpatch.pl. > > > > (DWORK)(-1) works for checkpatch.pl. Yes, thanks. This should be an acceptable workaround, I will update my next series. > > I noticed a strange behaviour of checkpatch.pl: > > If I run it on all of your five commits, it does not find any error. > If I run it only on the 5th commit, it shows the two errors like above. Interesting, that's why I missed it in first place ... I was a bit confused. -- Vincent