Linux SCSI subsystem development
 help / color / mirror / Atom feed
From: James Bottomley <James.Bottomley@SteelEye.com>
To: "Toralf Förster" <toralf.foerster@gmx.de>
Cc: djwong@us.ibm.com, linux-scsi@vger.kernel.org
Subject: Re: build #308 failed for 2.6.23-rc1-gd941cf5 in linux/./drivers/scsi/libsas/sas_ata.c
Date: Sat, 28 Jul 2007 11:07:36 -0400	[thread overview]
Message-ID: <1185635256.11492.18.camel@localhost.localdomain> (raw)
In-Reply-To: <200707271253.27881.toralf.foerster@gmx.de>

On Fri, 2007-07-27 at 12:53 +0200, Toralf Förster wrote:
> Hello,
> 
> the build with the attached .config failed, make ends with:
> ...
>   CHK     include/linux/compile.h
>   UPD     include/linux/compile.h
>   CC      init/version.o
>   LD      init/built-in.o
>   LD      .tmp_vmlinux1
> drivers/built-in.o: In function `sas_queuecommand':
> (.text+0x932af): undefined reference to `ata_sas_queuecmd'
> drivers/built-in.o: In function `sas_slave_configure':
> (.text+0x934a4): undefined reference to `ata_sas_slave_configure'
> drivers/built-in.o: In function `sas_target_destroy':
> (.text+0x92317): undefined reference to `ata_sas_port_destroy'
> drivers/built-in.o: In function `sas_ioctl':
> (.text+0x92fa4): undefined reference to `ata_scsi_ioctl'
> drivers/built-in.o: In function `sas_slave_destroy':
> (.text+0x92fcd): undefined reference to `ata_port_disable'
> drivers/built-in.o: In function `sas_slave_alloc':
> (.text+0x9307f): undefined reference to `ata_sas_port_init'
> drivers/built-in.o: In function `sas_ata_init_host_and_port':
> (.text+0x942c6): undefined reference to `ata_host_init'
> drivers/built-in.o: In function `sas_ata_init_host_and_port':
> (.text+0x942d4): undefined reference to `ata_sas_port_alloc'
> drivers/built-in.o: In function `sas_ata_qc_issue':
> sas_ata.c:(.text+0x9445d): undefined reference to `ata_tf_to_fis'
> drivers/built-in.o: In function `sas_ata_task_done':
> sas_ata.c:(.text+0x9473c): undefined reference to `ata_tf_from_fis'
> sas_ata.c:(.text+0x9479b): undefined reference to `ata_qc_complete'
> drivers/built-in.o:(.data+0xafc0): undefined reference to `ata_port_disable'
> drivers/built-in.o:(.data+0xafe8): undefined reference to `ata_noop_dev_select'
> drivers/built-in.o:(.data+0xb008): undefined reference to `ata_noop_qc_prep'
> drivers/built-in.o:(.data+0xb044): undefined reference to `ata_sas_port_start'
> drivers/built-in.o:(.data+0xb048): undefined reference to `ata_sas_port_stop'
> make: *** [.tmp_vmlinux1] Error 1

This is a Kconfig cockup.  If you have the libsas with ATA support, it
needs libata to function.  The problem is that if you compile in libsas,
you can't build libata as a module (however, vice versa you can).

About the only way I can think to code this in current Kconfig is the
attached rather ugly code.

James

diff --git a/drivers/scsi/libsas/Kconfig b/drivers/scsi/libsas/Kconfig
index 3a3c1ac..c01a40d 100644
--- a/drivers/scsi/libsas/Kconfig
+++ b/drivers/scsi/libsas/Kconfig
@@ -32,7 +32,8 @@ config SCSI_SAS_LIBSAS
 
 config SCSI_SAS_ATA
 	bool "ATA support for libsas (requires libata)"
-	depends on SCSI_SAS_LIBSAS && ATA
+	depends on SCSI_SAS_LIBSAS
+	depends on ATA = y || ATA = SCSI_SAS_LIBSAS
 	help
 		Builds in ATA support into libsas.  Will necessitate
 		the loading of libata along with libsas.


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

  reply	other threads:[~2007-07-28 15:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-27 10:53 build #308 failed for 2.6.23-rc1-gd941cf5 in linux/./drivers/scsi/libsas/sas_ata.c Toralf Förster
2007-07-28 15:07 ` James Bottomley [this message]
2007-07-31 14:13   ` Toralf Förster

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=1185635256.11492.18.camel@localhost.localdomain \
    --to=james.bottomley@steeleye.com \
    --cc=djwong@us.ibm.com \
    --cc=linux-scsi@vger.kernel.org \
    --cc=toralf.foerster@gmx.de \
    /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