Skip to contentSkip to conversation

CMD640 problem in 2.6.0-test8

DISCUSSION Dale Amon 2 participants 3 messages Oct 20, 2003

lore
Share & tools
lore

Dale Amon

author
#0 lore raw

I'm seeing these compile errors:

	LD      .tmp_vmlinux1
	drivers/built-in.o(.init.text+0x4e6b): In function `ide_setup':
	: undefined reference to `cmd640_vlb'
	drivers/built-in.o(.init.text+0x5361): In function `probe_for_hwifs':
	: undefined reference to `ide_probe_for_cmd640x'
	make: *** [.tmp_vmlinux1] Error 1

The .config contains:

	CONFIG_BLK_DEV_CMD640=y

but ide/pci/cmd640.c doesn't seem to get compiled. I tried doing it manually and got a screen full of errors.

#1 lore raw
Quoted 12 lines · Dale Amon

I'm seeing these compile errors:

	LD      .tmp_vmlinux1

	drivers/built-in.o(.init.text+0x4e6b): In function `ide_setup':
	: undefined reference to `cmd640_vlb'

	drivers/built-in.o(.init.text+0x5361): In function `probe_for_hwifs':
	: undefined reference to `ide_probe_for_cmd640x'

	make: *** [.tmp_vmlinux1] Error 1
Quoted 6 lines

The .config contains:

	CONFIG_BLK_DEV_CMD640=y

but ide/pci/cmd640.c doesn't seem to get compiled. I tried doing it manually and got a screen full of errors.

this patch should fix it,
--bartlomiej

[IDE] fix drivers/ide/pci/cmd640.c for CONFIG_PCI=n

CMD640 driver also supports VLB version of the chipset, therefore fix drivers/ide/Makefile to include pci/ subdir even if CONFIG_BLK_DEV_IDEPCI=n.

 drivers/ide/Makefile |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
drivers/ide/Makefile renamed from drivers/ide/Makefile~ide-cmd640-no_pci-fix +1 -1
diff -puN drivers/ide/Makefile~ide-cmd640-no_pci-fix drivers/ide/Makefile
@@ -8,7 +8,7 @@
 # In the future, some of these should be built conditionally.
 #
 # First come modules that register themselves with the core
-obj-$(CONFIG_BLK_DEV_IDEPCI)		+= pci/
+obj-$(CONFIG_BLK_DEV_IDE)		+= pci/
 
 # Core IDE code - must come before legacy
 

_

author
#2 lore raw
Quoted 2 lines · Bartlomiej Zolnierkiewicz

this patch should fix it,
--bartlomiej

I had a bit of trouble with it caused by the cut and paste and ended up just doing the edit manually. But it does the trick. Kernel compiles fine now. Thanks.

Quoted 19 lines

[IDE] fix drivers/ide/pci/cmd640.c for CONFIG_PCI=n

CMD640 driver also supports VLB version of the chipset, therefore fix drivers/ide/Makefile to include pci/ subdir even if CONFIG_BLK_DEV_IDEPCI=n.

 drivers/ide/Makefile |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -puN drivers/ide/Makefile~ide-cmd640-no_pci-fix drivers/ide/Makefile

drivers/ide/Makefile renamed from drivers/ide/Makefile~ide-cmd640-no_pci-fix +1 -1
@@ -8,7 +8,7 @@
 # In the future, some of these should be built conditionally.
 #
 # First come modules that register themselves with the core
-obj-$(CONFIG_BLK_DEV_IDEPCI)		+= pci/
+obj-$(CONFIG_BLK_DEV_IDE)		+= pci/
 
 # Core IDE code - must come before legacy