From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52082) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ceqIF-0005SE-7D for qemu-devel@nongnu.org; Fri, 17 Feb 2017 16:42:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ceqIE-0008LV-3W for qemu-devel@nongnu.org; Fri, 17 Feb 2017 16:42:19 -0500 Received: from mx1.redhat.com ([209.132.183.28]:55912) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ceqID-0008Kl-Tx for qemu-devel@nongnu.org; Fri, 17 Feb 2017 16:42:18 -0500 Date: Fri, 17 Feb 2017 16:42:15 -0500 From: Jeff Cody Message-ID: <20170217214215.GK19045@localhost.localdomain> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [PATCH v8 1/2] block/vxhs.c: Add support for a new block device type called "vxhs" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: ashish mittal Cc: qemu-devel , Paolo Bonzini , Kevin Wolf , Markus Armbruster , "Daniel P. Berrange" , Fam Zheng , Ashish Mittal , Stefan Hajnoczi , John Ferlan , Buddhi Madhav , Suraj Singh , Nitin Jerath , Peter Maydell , Ketan Nilangekar , Abhijit Dey , "Venkatesha M.G." , Rakesh Ranjan On Thu, Feb 16, 2017 at 02:24:19PM -0800, ashish mittal wrote: > Hi, > > I am getting the following error with checkpatch.pl > > ERROR: externs should be avoided in .c files > #78: FILE: block/vxhs.c:28: > +QemuUUID qemu_uuid __attribute__ ((weak)); > > Is there any way to get around this, or does it mean that I would have > to add a vxhs.h just for this one entry? > I remain skeptical on the use of the qemu_uuid as a way to select the TLS cert. But that aside, and looking at it strictly from a checkpatch.pl point of view, I think one could make a case that if there is no header file, the error could be ignored.