From: Christoph Hellwig <hch@lst.de>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH] scsi-generic: only compile if CONFIG_LINUX is set
Date: Fri, 9 Jul 2010 18:33:17 +0200 [thread overview]
Message-ID: <20100709163317.GA11922@lst.de> (raw)
Signed-off-by: Christoph Hellwig <hch@lst.de>
Index: qemu/Makefile.objs
===================================================================
--- qemu.orig/Makefile.objs 2010-07-09 09:25:52.856639729 -0700
+++ qemu/Makefile.objs 2010-07-09 09:26:15.562639727 -0700
@@ -70,7 +70,8 @@ common-obj-$(CONFIG_DS1338) += ds1338.o
common-obj-y += i2c.o smbus.o smbus_eeprom.o
common-obj-y += eeprom93xx.o
common-obj-y += scsi-disk.o cdrom.o
-common-obj-y += scsi-generic.o scsi-bus.o
+common-obj-$(CONFIG_LINUX) += scsi-generic.o
+common-obj-y += scsi-bus.o
common-obj-y += usb.o usb-hub.o usb-$(HOST_USB).o usb-hid.o usb-msd.o usb-wacom.o
common-obj-y += usb-serial.o usb-net.o usb-bus.o
common-obj-$(CONFIG_SSI) += ssi.o
Index: qemu/hw/scsi-generic.c
===================================================================
--- qemu.orig/hw/scsi-generic.c 2010-07-09 09:26:18.937639727 -0700
+++ qemu/hw/scsi-generic.c 2010-07-09 09:26:34.216639727 -0700
@@ -15,8 +15,6 @@
#include "qemu-error.h"
#include "scsi.h"
-#ifdef __linux__
-
//#define DEBUG_SCSI
#ifdef DEBUG_SCSI
@@ -544,5 +542,3 @@ static void scsi_generic_register_device
scsi_qdev_register(&scsi_generic_info);
}
device_init(scsi_generic_register_devices)
-
-#endif /* __linux__ */
reply other threads:[~2010-07-09 16:33 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20100709163317.GA11922@lst.de \
--to=hch@lst.de \
--cc=qemu-devel@nongnu.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.