diff options
author | Hannes Reinecke <hare@suse.de> | 2015-01-08 01:43:48 -0500 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2015-01-09 09:44:31 -0500 |
commit | 2dd951ecd511756f405ae9324db87bb0159f6225 (patch) | |
tree | 61c8bdbc84bb31a4f1b1e39c12209778c591e655 /drivers/scsi/Makefile | |
parent | 026f8da8da4ce3423bf89e8e9091f55ae3863eda (diff) |
scsi: Conditionally compile in constants.c
Instead of having constants.c littered with ifdef statements we should
be moving dummy functions into the header and condintionally compile in
constants.c if selected. And update the Kconfig description to reflect
the actual size difference.
Suggested-by: Christoph Hellwig <hch@infradead.org>
Tested-by: Robert Elliott <elliott@hp.com>
Reviewed-by: Robert Elliott <elliott@hp.com>
Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/scsi/Makefile')
-rw-r--r-- | drivers/scsi/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/Makefile b/drivers/scsi/Makefile index 447c2d24aafa..dee160a4f163 100644 --- a/drivers/scsi/Makefile +++ b/drivers/scsi/Makefile | |||
@@ -159,9 +159,9 @@ obj-$(CONFIG_SCSI_OSD_INITIATOR) += osd/ | |||
159 | 159 | ||
160 | # This goes last, so that "real" scsi devices probe earlier | 160 | # This goes last, so that "real" scsi devices probe earlier |
161 | obj-$(CONFIG_SCSI_DEBUG) += scsi_debug.o | 161 | obj-$(CONFIG_SCSI_DEBUG) += scsi_debug.o |
162 | 162 | scsi_mod-y += scsi.o hosts.o scsi_ioctl.o \ | |
163 | scsi_mod-y += scsi.o hosts.o scsi_ioctl.o constants.o \ | ||
164 | scsicam.o scsi_error.o scsi_lib.o | 163 | scsicam.o scsi_error.o scsi_lib.o |
164 | scsi_mod-$(CONFIG_SCSI_CONSTANTS) += constants.o | ||
165 | scsi_mod-$(CONFIG_SCSI_DMA) += scsi_lib_dma.o | 165 | scsi_mod-$(CONFIG_SCSI_DMA) += scsi_lib_dma.o |
166 | scsi_mod-y += scsi_scan.o scsi_sysfs.o scsi_devinfo.o | 166 | scsi_mod-y += scsi_scan.o scsi_sysfs.o scsi_devinfo.o |
167 | scsi_mod-$(CONFIG_SCSI_NETLINK) += scsi_netlink.o | 167 | scsi_mod-$(CONFIG_SCSI_NETLINK) += scsi_netlink.o |