From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53489) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WNfKs-0000mU-Tv for qemu-devel@nongnu.org; Wed, 12 Mar 2014 05:20:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WNfKn-0004gQ-2R for qemu-devel@nongnu.org; Wed, 12 Mar 2014 05:20:26 -0400 Date: Wed, 12 Mar 2014 10:20:05 +0100 From: Stefan Hajnoczi Message-ID: <20140312092005.GC18850@stefanha-thinkpad.muc.redhat.com> References: <1394054580-29120-1-git-send-email-sw@weilnetz.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1394054580-29120-1-git-send-email-sw@weilnetz.de> Subject: Re: [Qemu-devel] [PATCH] qemu-io: Fix warnings from static code analysis List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Weil Cc: qemu-trivial@nongnu.org, qemu-devel@nongnu.org On Wed, Mar 05, 2014 at 10:23:00PM +0100, Stefan Weil wrote: > Smatch complains about several global symbols which should be local. > > Add the missing 'static' attributes and move the 'extern' declaration > of variable qemuio_misalign to qemu-io.h. This variable also changes > the type from 'int' to 'bool' which better fits documents its use. > > Signed-off-by: Stefan Weil > --- > include/qemu-io.h | 2 ++ > qemu-io-cmds.c | 2 +- > qemu-io.c | 7 +++---- > 3 files changed, 6 insertions(+), 5 deletions(-) Thanks, applied to my block tree: https://github.com/stefanha/qemu/commits/block Stefan