Received: from eggs.gnu.org ([2001:4830:134:3::10]:60426) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cWdYX-0005NW-LM for qemu-devel@nongnu.org; Thu, 26 Jan 2017 01:29:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cWdYT-00037o-IS for qemu-devel@nongnu.org; Thu, 26 Jan 2017 01:29:13 -0500 Received: from mx1.redhat.com ([209.132.183.28]:46046) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cWdYT-00037i-CL for qemu-devel@nongnu.org; Thu, 26 Jan 2017 01:29:09 -0500 From: Markus Armbruster References: <1485365075-32702-1-git-send-email-phil@philjordan.eu> <148536527026.27.12814124354919992023@eba24e3a0d7f> <20170126012903.GA6879@lemon> Date: Thu, 26 Jan 2017 07:29:05 +0100 In-Reply-To: <20170126012903.GA6879@lemon> (Fam Zheng's message of "Thu, 26 Jan 2017 09:29:03 +0800") Message-ID: <87sho6z64u.fsf@dusky.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH v3] hw/usb/dev-hid: Improve guest compatibility of usb-tablet List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fam Zheng Cc: Phil Dennis-Jordan , "Gabriel L. Somlo" , qemu-devel@nongnu.org, Gerd Hoffmann Fam Zheng writes: > On Wed, 01/25 18:36, Phil Dennis-Jordan wrote: >> On 25 January 2017 at 18:27, wrote: >> > Your series seems to have some coding style problems. See output below for >> > more information: >> > >> > Type: series >> > Subject: [Qemu-devel] [PATCH v3] hw/usb/dev-hid: Improve guest compatibility of usb-tablet >> > Message-id: 1485365075-32702-1-git-send-email-phil@philjordan.eu >> > >> > === OUTPUT BEGIN === >> > Checking PATCH 1/1: hw/usb/dev-hid: Improve guest compatibility of usb-tablet... >> > ERROR: code indent should never use tabs >> > #43: FILE: hw/usb/dev-hid.c:490: >> > + 0x09, 0x02,^I^I/* Usage (Mouse) */$ >> >> Interestingly, the surrounding array initialisation already uses tabs, >> so replacing them with spaces on only the line I edited seems wrong as >> it'll mis-render in editors configured with a different tab width. >> Please let me know if I need to take action on this issue, and if so >> what to do. (I can add a whitespace-only patch to fix the surrounding >> area, for example. Coding guidelines suggest this might not be >> desirable though.) > > File level tab consistency should override checkpatch.pl in this case, and as > you said whitespace patches are usually not advisable. Let's just ignore the > complain. Ignoring is okay here. Expanding the tabs would also be okay, and we routinely do that when we touch lines. With QEMU sources, you can have any tab width, as long as it is eight.