Received: from eggs.gnu.org ([2001:4830:134:3::10]:46012) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wsncz-0002mL-09 for qemu-devel@nongnu.org; Fri, 06 Jun 2014 02:27:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wsnct-0008VD-6a for qemu-devel@nongnu.org; Fri, 06 Jun 2014 02:27:48 -0400 Received: from oxygen.pond.sub.org ([144.76.244.19]:56020) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wsnct-0008V0-13 for qemu-devel@nongnu.org; Fri, 06 Jun 2014 02:27:43 -0400 From: Markus Armbruster References: <53913773.5040702@ozlabs.ru> Date: Fri, 06 Jun 2014 08:27:40 +0200 In-Reply-To: <53913773.5040702@ozlabs.ru> (Alexey Kardashevskiy's message of "Fri, 06 Jun 2014 13:37:23 +1000") Message-ID: <87a99qr1r7.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] checkpatch.pl question List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexey Kardashevskiy Cc: "qemu-devel@nongnu.org" Alexey Kardashevskiy writes: > Hi! > > checkpatch.pl often complains on things like this: > > === > ERROR: need consistent spacing around '*' (ctx:WxV) > #57: FILE: hw/misc/vfio.c:4323: > +int vfio_container_ioctl(AddressSpace *as, int32_t groupid, > ^ > > total: 1 errors, 0 warnings, 46 lines checked > === > > Since perl is a write-only language, I cannot understand why :) Any clue? It misinterprets the '*' as infix operator, because it doesn't recognize 'AddressSpace *as' is a declaration. Sorry, this isn't much of a clue, but you didn't provide much of a reproducer.