public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] mspec driver: compile error
@ 2006-11-07  6:30 Fernando Luis Vázquez Cao
  2006-11-07 10:31 ` Jes Sorensen
  0 siblings, 1 reply; 11+ messages in thread
From: Fernando Luis Vázquez Cao @ 2006-11-07  6:30 UTC (permalink / raw)
  To: jes
  Cc: Linux Kernel Mailing List, bjorn_helgaas, Nick Piggin,
	Andrew Morton, Robin Holt, Dean Nelson, Hugh Dickins,
	Linus Torvalds

Hi Jes,

After selecting CONFIG_MSPEC as a module I stumbled onto the compile
error below.

WARNING: "bte_copy" [drivers/char/mspec.ko] undefined!
WARNING: "physical_node_map" [drivers/char/mspec.ko] undefined!
WARNING: "uncached_free_page" [drivers/char/mspec.ko] undefined!
WARNING: "per_cpu____sn_hub_info" [drivers/char/mspec.ko] undefined!
WARNING: "uncached_alloc_page" [drivers/char/mspec.ko] undefined!
make[1]: *** [__modpost] Error 1
make: *** [modules] Error 2

The problem is that the Kconfig dependencies for MSPEC are a bit too
loose. The mspec driver needs bte_copy (a sn-specific function) as well
as some functions of the uncached page allocator.

I solved the issue by making the dependencies explicit in
drivers/char/Kconfig:
--- Current Kconfig entry
config MSPEC
	tristate "Memory special operations driver"
	depends on IA64
	help
	  If you have an ia64 and you want to enable memory special
	  operations support (formerly known as fetchop), say Y here,
	  otherwise say N.
---
--- Proposed Kconfig entry
config MSPEC
        tristate "Memory special operations driver"
        depends on IA64 && (IA64_GENERIC || IA64_SGI_SN2)
        select IA64_UNCACHED_ALLOCATOR
        help
          If you have an ia64 and you want to enable memory special
          operations support (formerly known as fetchop), say Y here,
          otherwise say N.
---

I'll be replying to this message with a patch that implements this. I
would appreciate your review and comments.

Regards,

Fernando


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

end of thread, other threads:[~2006-11-09 16:11 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-07  6:30 [PATCH 0/1] mspec driver: compile error Fernando Luis Vázquez Cao
2006-11-07 10:31 ` Jes Sorensen
2006-11-07 21:35   ` Andrew Morton
2006-11-08  9:19     ` Fernando Luis Vázquez Cao
2006-11-08  9:42       ` Jes Sorensen
2006-11-08  9:45         ` Fernando Luis Vázquez Cao
2006-11-08  9:56           ` Andrew Morton
2006-11-08  9:59             ` Fernando Luis Vázquez Cao
2006-11-08 10:31             ` Jes Sorensen
2006-11-08 10:52               ` Fernando Luis Vázquez Cao
2006-11-09 16:10                 ` Jes Sorensen

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