Patchwork [1/1] Remove unused eventfd.h

login
register
mail settings
Submitter Mike McCormack
Date July 28, 2010, 10:50 p.m.
Message ID <4C50B426.50706@ring3k.org>
Download mbox | patch
Permalink /patch/60181/
State New
Headers show

Comments

Mike McCormack - July 28, 2010, 10:50 p.m.
This header is not present on my system and causes a build
failure, but is also not used in these files, so remove it.

Signed-off-by: Mike McCormack <mikem@ring3k.org>
---
 hw/vhost.c     |    1 -
 hw/vhost_net.c |    1 -
 2 files changed, 0 insertions(+), 2 deletions(-)
Stefan Hajnoczi - July 29, 2010, 9:19 a.m.
On Wed, Jul 28, 2010 at 11:50 PM, Mike McCormack <mikem@ring3k.org> wrote:
> This header is not present on my system and causes a build
> failure, but is also not used in these files, so remove it.
>
> Signed-off-by: Mike McCormack <mikem@ring3k.org>
> ---
>  hw/vhost.c     |    1 -
>  hw/vhost_net.c |    1 -
>  2 files changed, 0 insertions(+), 2 deletions(-)
>
> diff --git a/hw/vhost.c b/hw/vhost.c
> index 65709d0..34c4745 100644
> --- a/hw/vhost.c
> +++ b/hw/vhost.c
> @@ -11,7 +11,6 @@
>  */
>
>  #include <sys/ioctl.h>
> -#include <sys/eventfd.h>
>  #include "vhost.h"
>  #include "hw/hw.h"
>  /* For range_get_last */
> diff --git a/hw/vhost_net.c b/hw/vhost_net.c
> index 606aa0c..0c00de2 100644
> --- a/hw/vhost_net.c
> +++ b/hw/vhost_net.c
> @@ -20,7 +20,6 @@
>
>  #ifdef CONFIG_VHOST_NET
>  #include <linux/vhost.h>
> -#include <sys/eventfd.h>
>  #include <sys/socket.h>
>  #include <linux/kvm.h>
>  #include <fcntl.h>
> --
> 1.5.6.5

Looks good.

Stefan
Aurelien Jarno - July 30, 2010, 9:25 p.m.
On Thu, Jul 29, 2010 at 07:50:14AM +0900, Mike McCormack wrote:
> This header is not present on my system and causes a build
> failure, but is also not used in these files, so remove it.
> 
> Signed-off-by: Mike McCormack <mikem@ring3k.org>
> ---
>  hw/vhost.c     |    1 -
>  hw/vhost_net.c |    1 -
>  2 files changed, 0 insertions(+), 2 deletions(-)

Thanks, applied.

> diff --git a/hw/vhost.c b/hw/vhost.c
> index 65709d0..34c4745 100644
> --- a/hw/vhost.c
> +++ b/hw/vhost.c
> @@ -11,7 +11,6 @@
>   */
>  
>  #include <sys/ioctl.h>
> -#include <sys/eventfd.h>
>  #include "vhost.h"
>  #include "hw/hw.h"
>  /* For range_get_last */
> diff --git a/hw/vhost_net.c b/hw/vhost_net.c
> index 606aa0c..0c00de2 100644
> --- a/hw/vhost_net.c
> +++ b/hw/vhost_net.c
> @@ -20,7 +20,6 @@
>  
>  #ifdef CONFIG_VHOST_NET
>  #include <linux/vhost.h>
> -#include <sys/eventfd.h>
>  #include <sys/socket.h>
>  #include <linux/kvm.h>
>  #include <fcntl.h>
> -- 
> 1.5.6.5
> 
> 
>

Patch

diff --git a/hw/vhost.c b/hw/vhost.c
index 65709d0..34c4745 100644
--- a/hw/vhost.c
+++ b/hw/vhost.c
@@ -11,7 +11,6 @@ 
  */
 
 #include <sys/ioctl.h>
-#include <sys/eventfd.h>
 #include "vhost.h"
 #include "hw/hw.h"
 /* For range_get_last */
diff --git a/hw/vhost_net.c b/hw/vhost_net.c
index 606aa0c..0c00de2 100644
--- a/hw/vhost_net.c
+++ b/hw/vhost_net.c
@@ -20,7 +20,6 @@ 
 
 #ifdef CONFIG_VHOST_NET
 #include <linux/vhost.h>
-#include <sys/eventfd.h>
 #include <sys/socket.h>
 #include <linux/kvm.h>
 #include <fcntl.h>