linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Michael S. Tsirkin" <mst@redhat.com>
To: Dongsu Park <advance38@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: tools/virtio: Compile errors
Date: Wed, 8 Feb 2012 18:47:36 +0200	[thread overview]
Message-ID: <20120208164736.GA31066@redhat.com> (raw)
In-Reply-To: <20120208160405.GA1587@gmail.com>

On Wed, Feb 08, 2012 at 05:04:05PM +0100, Dongsu Park wrote:
> Hi,
> 
> there are compile problems under tools/virtio.
> If I simply run make,
> 
> ~/linuxsrc/linux-3.2/tools/virtio $ make
> gcc -g -O2 -Wall -I. -I ../../usr/include/ -Wno-pointer-sign
> -fno-strict-overflow  -MMD   -c -o virtio_ring.o
> ../../drivers/virtio/virtio_ring.c
> ../../drivers/virtio/virtio_ring.c:24:26: fatal error: linux/module.h:
> No such file or directory
> compilation terminated.
> make: *** [virtio_ring.o] Error 1


> By the way, my system is Ubuntu 11.10 with Kernel 3.2.
> 
> Cheers,
> Dongsu

This patch is missing - I'll put it upstream.

--->

tools/virtio: add module.h stub

make it build with linux 3.2

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>

diff --git a/tools/virtio/linux/module.h b/tools/virtio/linux/module.h
new file mode 100644
index 0000000..96868eb
--- /dev/null
+++ b/tools/virtio/linux/module.h
@@ -0,0 +1,3 @@
+#ifndef LINUX_MODULE_H
+#define LINUX_MODULE_H
+#endif

  parent reply	other threads:[~2012-02-08 16:47 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-08 16:04 tools/virtio: Compile errors Dongsu Park
2012-02-08 16:11 ` devendra.aaru
2012-02-08 16:38   ` Dongsu Park
2012-02-08 16:47 ` Michael S. Tsirkin [this message]
2012-04-09  6:02   ` Zhi Yong Wu
2012-04-09  7:33     ` Michael S. Tsirkin
2012-04-09  7:41       ` Zhi Yong Wu
2012-04-09  7:55         ` Michael S. Tsirkin
2012-04-09  8:49           ` Zhi Yong Wu
2012-04-09  9:00             ` Michael S. Tsirkin
2012-04-09  6:12   ` Zhi Yong Wu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120208164736.GA31066@redhat.com \
    --to=mst@redhat.com \
    --cc=advance38@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).