Re: [PATCH] make scsi_wait_scan always modular

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi

On Sun, 11 Mar 2007, James Bottomley wrote:

> Currently scsi_wait_scan is only built modular if SCSI is modular.
> However, it's perfectly possible for a built in SCSI still to have
> modular drivers and thus need scsi_wait_scan as a module.  Therefore,
> scsi_wait_scan should always be built as a module (unless the kernel
> doesn't support modules).
> 
> James
> 
> diff --git a/drivers/scsi/Kconfig b/drivers/scsi/Kconfig
> index 4cd280e..f3bc0f4 100644
> --- a/drivers/scsi/Kconfig
> +++ b/drivers/scsi/Kconfig
> @@ -241,6 +241,12 @@ config SCSI_SCAN_ASYNC
>  	  You can override this choice by specifying "scsi_mod.scan=sync"
>  	  or async on the kernel's command line.
>  
> +config SCSI_WAIT_SCAN
> +	tristate
> +	default m
> +	depends on SCSI
> +	depends on MODULES
> +
>  menu "SCSI Transports"
>  	depends on SCSI
>  
> diff --git a/drivers/scsi/Makefile b/drivers/scsi/Makefile
> index 79ecf4e..41c7883 100644
> --- a/drivers/scsi/Makefile
> +++ b/drivers/scsi/Makefile
> @@ -145,7 +145,7 @@ obj-$(CONFIG_CHR_DEV_SCH)	+= ch.o
>  # This goes last, so that "real" scsi devices probe earlier
>  obj-$(CONFIG_SCSI_DEBUG)	+= scsi_debug.o
>  
> -obj-$(CONFIG_SCSI)		+= scsi_wait_scan.o
> +obj-$(CONFIG_SCSI_WAIT_SCAN)	+= scsi_wait_scan.o

Which means, with this change you cannot build a kernel without module 
support but with scsi_wait_scan, which was possible before. Don't know if 
anybody would ever want to do this though...

Thanks
Guennadi
---
Guennadi Liakhovetski
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux