From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42234) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIbhO-0000Xi-Iq for qemu-devel@nongnu.org; Thu, 30 Jun 2016 09:08:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bIbhI-00034g-IL for qemu-devel@nongnu.org; Thu, 30 Jun 2016 09:08:05 -0400 Received: from 4.mo178.mail-out.ovh.net ([46.105.49.171]:34595) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bIbhI-00034U-BJ for qemu-devel@nongnu.org; Thu, 30 Jun 2016 09:08:00 -0400 Received: from player791.ha.ovh.net (b9.ovh.net [213.186.33.59]) by mo178.mail-out.ovh.net (Postfix) with ESMTP id 928C610107DD for ; Thu, 30 Jun 2016 15:07:59 +0200 (CEST) Date: Thu, 30 Jun 2016 15:07:54 +0200 From: Greg Kurz Message-ID: <20160630150754.7abd9e83@bahia.lan> In-Reply-To: <871t3e96ll.fsf@dusky.pond.sub.org> References: <20160413131513.31708.89296.stgit@bahia.huguette.org> <20160413131520.31708.12050.stgit@bahia.huguette.org> <871t3e96ll.fsf@dusky.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH for-2.7 1/2] 9p: don't include List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Markus Armbruster Cc: Michael Fritscher , "Aneesh Kumar K.V" , qemu-devel@nongnu.org On Thu, 30 Jun 2016 14:57:58 +0200 Markus Armbruster wrote: > Greg Kurz writes: > > > The system header doesn't exist on all host platforms. Code should > > include "qemu/osdep.h" instead to avoid build breaks on plafforms that don't > > define CONFIG_IOVEC (like win32, if it is to support 9p one day). > > > > Signed-off-by: Greg Kurz > > --- > > fsdev/9p-iov-marshal.c | 1 - > > fsdev/9p-marshal.c | 1 - > > fsdev/file-op-9p.h | 2 +- > > 3 files changed, 1 insertion(+), 3 deletions(-) > > > > diff --git a/fsdev/9p-iov-marshal.c b/fsdev/9p-iov-marshal.c > > index fb40bdf0d5f6..a564637b73c1 100644 > > --- a/fsdev/9p-iov-marshal.c > > +++ b/fsdev/9p-iov-marshal.c > > @@ -15,7 +15,6 @@ > > #include > > #include > > #include > > -#include > > > > #include "9p-iov-marshal.h" > > #include "qemu/bswap.h" > > diff --git a/fsdev/9p-marshal.c b/fsdev/9p-marshal.c > > index 183d3667c681..df9d4f8e23c9 100644 > > --- a/fsdev/9p-marshal.c > > +++ b/fsdev/9p-marshal.c > > @@ -16,7 +16,6 @@ > > #include > > #include > > #include > > -#include > > > > #include "9p-marshal.h" > > > > diff --git a/fsdev/file-op-9p.h b/fsdev/file-op-9p.h > > index b8c26024a955..8736d1fa6d52 100644 > > --- a/fsdev/file-op-9p.h > > +++ b/fsdev/file-op-9p.h > > @@ -12,9 +12,9 @@ > > */ > > #ifndef _FILEOP_H > > #define _FILEOP_H > > +#include "qemu/osdep.h" > > Every .c file must include qemu/osdep.h first. You can and should rely > on that in headers. Please drop this include. > Yeah I discovered that recently... I'll drop this include a fix .c files that need it. Thanks ! -- Greg > > #include > > #include > > -#include > > #include > > > > #define SM_LOCAL_MODE_BITS 0600 >