public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* 2.6.17-mm2 -- drivers/built-in.o: In function `is_pci_dock_device':acpiphp_glue.c:(.text+0x12364): undefined reference to `is_dock_device'
@ 2006-06-25 19:56 Miles Lane
  2006-06-25 20:09 ` Adrian Bunk
  0 siblings, 1 reply; 14+ messages in thread
From: Miles Lane @ 2006-06-25 19:56 UTC (permalink / raw)
  To: Andrew Morton, LKML

drivers/built-in.o: In function
`is_pci_dock_device':acpiphp_glue.c:(.text+0x12364): undefined
reference to `is_dock_device'
drivers/built-in.o: In function
`cleanup_bridge':acpiphp_glue.c:(.text+0x12bc4): undefined reference
to `is_dock_device'
:acpiphp_glue.c:(.text+0x12bd3): undefined reference to
`unregister_hotplug_dock_device'
:acpiphp_glue.c:(.text+0x12bdb): undefined reference to
`unregister_dock_notifier'
drivers/built-in.o: In function
`register_slot':acpiphp_glue.c:(.text+0x13ac0): undefined reference to
`is_dock_device'
:acpiphp_glue.c:(.text+0x13cd9): undefined reference to `is_dock_device'
:acpiphp_glue.c:(.text+0x13cf0): undefined reference to
`register_hotplug_dock_device'
:acpiphp_glue.c:(.text+0x13d1d): undefined reference to `register_dock_notifier'
make: *** [.tmp_vmlinux1] Error 1

#
# PCI Hotplug Support
#
CONFIG_HOTPLUG_PCI=y
CONFIG_HOTPLUG_PCI_FAKE=y
CONFIG_HOTPLUG_PCI_COMPAQ=y
# CONFIG_HOTPLUG_PCI_COMPAQ_NVRAM is not set
CONFIG_HOTPLUG_PCI_ACPI=y
CONFIG_HOTPLUG_PCI_ACPI_IBM=y
CONFIG_HOTPLUG_PCI_CPCI=y
# CONFIG_HOTPLUG_PCI_CPCI_ZT5550 is not set
CONFIG_HOTPLUG_PCI_CPCI_GENERIC=y
CONFIG_HOTPLUG_PCI_SHPC=y
# CONFIG_HOTPLUG_PCI_SHPC_POLL_EVENT_MODE is not set

^ permalink raw reply	[flat|nested] 14+ messages in thread
* RE: 2.6.17-mm2 -- drivers/built-in.o: In function `is_pci_dock_device':acpiphp_glue.c:(.text+0x12364): undefined reference to `is_dock_device'
@ 2006-07-09 23:03 Brown, Len
  2006-07-09 23:12 ` Adrian Bunk
  0 siblings, 1 reply; 14+ messages in thread
From: Brown, Len @ 2006-07-09 23:03 UTC (permalink / raw)
  To: Adrian Bunk, Miles Lane, Accardi, Kristen C
  Cc: Dave Hansen, Andrew Morton, LKML, gregkh, linux-acpi,
	Linus Torvalds

[-- Attachment #1: Type: text/plain, Size: 1058 bytes --]


>It would be a solution to let HOTPLUG_PCI_ACPI depend on
>(ACPI_DOCK || ACPI_DOCK=n), or the #if in 
>include/acpi/acpi_drivers.h could be changed to
>#if defined(CONFIG_ACPI_DOCK) || 
>(defined(CONFIG_ACPI_DOCK_MODULE) && defined(MODULE))

CONFIG_HOTPLUG_PCI_ACPI requires CONFIG_ACPI_DOCK.
There are 9 combinations.

DOCK	HPA
n	n	ok
n	y	illegal
n	m	illegal
y	n	ok
y	y	ok
y	m	ok
m	n	ok
m	y	illegal (subject of this thread)
m	m	ok

The patch below handles all these cases:

DOCK	HPA
n	n	builds
n	y	-> y,y
n	m	-> m,m
y	n	builds
y	y	builds
y	m	builds
m	n	builds
m	y	-> m,y
m	m	builds

okay?

-Len

diff --git a/drivers/pci/hotplug/Kconfig b/drivers/pci/hotplug/Kconfig
index 222a1cc..e7c955b 100644
--- a/drivers/pci/hotplug/Kconfig
+++ b/drivers/pci/hotplug/Kconfig
@@ -78,6 +78,7 @@ config HOTPLUG_PCI_IBM
 config HOTPLUG_PCI_ACPI
 	tristate "ACPI PCI Hotplug driver"
 	depends on ACPI && HOTPLUG_PCI
+	select ACPI_DOCK
 	help
 	  Say Y here if you have a system that supports PCI Hotplug
using
 	  ACPI.

[-- Attachment #2: git.diff --]
[-- Type: application/octet-stream, Size: 409 bytes --]

diff --git a/drivers/pci/hotplug/Kconfig b/drivers/pci/hotplug/Kconfig
index 222a1cc..e7c955b 100644
--- a/drivers/pci/hotplug/Kconfig
+++ b/drivers/pci/hotplug/Kconfig
@@ -78,6 +78,7 @@ config HOTPLUG_PCI_IBM
 config HOTPLUG_PCI_ACPI
 	tristate "ACPI PCI Hotplug driver"
 	depends on ACPI && HOTPLUG_PCI
+	select ACPI_DOCK
 	help
 	  Say Y here if you have a system that supports PCI Hotplug using
 	  ACPI.

^ permalink raw reply related	[flat|nested] 14+ messages in thread
* RE: 2.6.17-mm2 -- drivers/built-in.o: In function `is_pci_dock_device':acpiphp_glue.c:(.text+0x12364): undefined reference to `is_dock_device'
@ 2006-07-09 23:06 Brown, Len
  0 siblings, 0 replies; 14+ messages in thread
From: Brown, Len @ 2006-07-09 23:06 UTC (permalink / raw)
  To: Brown, Len, Adrian Bunk, Miles Lane, Accardi, Kristen C
  Cc: Dave Hansen, Andrew Morton, LKML, gregkh, linux-acpi,
	Linus Torvalds

fixed typo -- can't cook and type at the same time...

DOCK	HPA
n	n	builds
n	y	-> y,y
n	m	-> m,m
y	n	builds
y	y	builds
y	m	builds
m	n	builds
m	y	-> y,y (previous note had typo, m,y)
m	m	builds

^ permalink raw reply	[flat|nested] 14+ messages in thread
* RE: 2.6.17-mm2 -- drivers/built-in.o: In function `is_pci_dock_device':acpiphp_glue.c:(.text+0x12364): undefined reference to `is_dock_device'
@ 2006-07-10  2:02 Brown, Len
  0 siblings, 0 replies; 14+ messages in thread
From: Brown, Len @ 2006-07-10  2:02 UTC (permalink / raw)
  To: Adrian Bunk
  Cc: Miles Lane, Accardi, Kristen C, Dave Hansen, Andrew Morton, LKML,
	gregkh, linux-acpi, Linus Torvalds

[-- Attachment #1: Type: text/plain, Size: 1664 bytes --]

>it allows the illegal configuration
>ACPI_IBM_DOCK=y, HOTPLUG_PCI_ACPI=y/m, ACPI_DOCK=y/m.

Hmm, that seems to be an additional pre-existing problem.
Since ACPI_IBM_DOCK is going away, lets put the burden
of depending on ACPI_DOCK=n on it, rather than the reverse.

Lets not use select, since it baffles...
and lets add the EXPERIMENTAL that should be here too.

This works for me:

DOCK	HPA	IBM_DOCK	DOCK,HPA,IBM_DOCK
y	y	y	=> 	y,y,n
y	m	y	=> 	y,m,n
y	n	y	=> 	y,n,n
m	y	y	=> 	m,m,n
m	m	y	=> 	m,m,n
m	n	y	=> 	m,n,n
n	y	y	=> 	n,n,y
n	m	y	=> 	n,n,y
n	n	y	=> 	n,n,y

thanks,
-Len


diff --git a/drivers/acpi/Kconfig b/drivers/acpi/Kconfig
index fef7bab..82289f1 100644
--- a/drivers/acpi/Kconfig
+++ b/drivers/acpi/Kconfig
@@ -135,8 +135,7 @@ config ACPI_FAN
 
 config ACPI_DOCK
 	tristate "Dock"
-	depends on !ACPI_IBM_DOCK
-	default y
+	depends on EXPERIMENTAL
 	help
 	  This driver adds support for ACPI controlled docking stations
 
@@ -214,6 +213,7 @@ config ACPI_IBM
 config ACPI_IBM_DOCK
 	bool "Legacy Docking Station Support"
 	depends on ACPI_IBM
+	depends on ACPI_DOCK=n
 	default n
 	---help---
 	  Allows the ibm_acpi driver to handle docking station events.
diff --git a/drivers/pci/hotplug/Kconfig b/drivers/pci/hotplug/Kconfig
index 222a1cc..d305d21 100644
--- a/drivers/pci/hotplug/Kconfig
+++ b/drivers/pci/hotplug/Kconfig
@@ -77,7 +77,7 @@ config HOTPLUG_PCI_IBM
 
 config HOTPLUG_PCI_ACPI
 	tristate "ACPI PCI Hotplug driver"
-	depends on ACPI && HOTPLUG_PCI
+	depends on ACPI_DOCK && HOTPLUG_PCI
 	help
 	  Say Y here if you have a system that supports PCI Hotplug
using
 	  ACPI.

[-- Attachment #2: git.diff --]
[-- Type: application/octet-stream, Size: 1021 bytes --]

diff --git a/drivers/acpi/Kconfig b/drivers/acpi/Kconfig
index fef7bab..82289f1 100644
--- a/drivers/acpi/Kconfig
+++ b/drivers/acpi/Kconfig
@@ -135,8 +135,7 @@ config ACPI_FAN
 
 config ACPI_DOCK
 	tristate "Dock"
-	depends on !ACPI_IBM_DOCK
-	default y
+	depends on EXPERIMENTAL
 	help
 	  This driver adds support for ACPI controlled docking stations
 
@@ -214,6 +213,7 @@ config ACPI_IBM
 config ACPI_IBM_DOCK
 	bool "Legacy Docking Station Support"
 	depends on ACPI_IBM
+	depends on ACPI_DOCK=n
 	default n
 	---help---
 	  Allows the ibm_acpi driver to handle docking station events.
diff --git a/drivers/pci/hotplug/Kconfig b/drivers/pci/hotplug/Kconfig
index 222a1cc..d305d21 100644
--- a/drivers/pci/hotplug/Kconfig
+++ b/drivers/pci/hotplug/Kconfig
@@ -77,7 +77,7 @@ config HOTPLUG_PCI_IBM
 
 config HOTPLUG_PCI_ACPI
 	tristate "ACPI PCI Hotplug driver"
-	depends on ACPI && HOTPLUG_PCI
+	depends on ACPI_DOCK && HOTPLUG_PCI
 	help
 	  Say Y here if you have a system that supports PCI Hotplug using
 	  ACPI.

^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2006-07-10  2:02 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-25 19:56 2.6.17-mm2 -- drivers/built-in.o: In function `is_pci_dock_device':acpiphp_glue.c:(.text+0x12364): undefined reference to `is_dock_device' Miles Lane
2006-06-25 20:09 ` Adrian Bunk
2006-06-25 20:13   ` Miles Lane
2006-06-25 20:40     ` Adrian Bunk
2006-07-09  0:06       ` ACPI_DOCK bug: noone cares Adrian Bunk
2006-07-09 16:01         ` Linus Torvalds
2006-06-26  5:56     ` 2.6.17-mm2 -- drivers/built-in.o: In function `is_pci_dock_device':acpiphp_glue.c:(.text+0x12364): undefined reference to `is_dock_device' Keith Owens
2006-06-26  6:22       ` Keith Owens
2006-06-26 22:15         ` Roman Zippel
  -- strict thread matches above, loose matches on Subject: below --
2006-07-09 23:03 Brown, Len
2006-07-09 23:12 ` Adrian Bunk
2006-07-10  1:46   ` Linus Torvalds
2006-07-09 23:06 Brown, Len
2006-07-10  2:02 Brown, Len

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox