mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [RFC] partitions: CONFIG_BLK_DEV_MD and modular RAID support
@ 2007-04-07 22:47 John Anthony Kazos Jr.
  2007-04-08  1:39 ` Randy Dunlap
  0 siblings, 1 reply; 2+ messages in thread
From: John Anthony Kazos Jr. @ 2007-04-07 22:47 UTC (permalink / raw)
  To: aeb; +Cc: linux-kernel

(Linux v2.6.20.6.)

The function md_autodetect_dev is defined in drivers/md/md.c. Its 
declaration is on line 1443, outside of conditionals. However, both its 
use on line 1455 and its definition on line 5600 are inside "#ifndef 
MODULE" conditionals. So it seems obvious that the declaration should be 
inside conditionals as well.

However, this function is separately declared and used in 
fs/partitions/check.c but not inside the same conditional, which means if 
md.c is compiled as a module, check.c will be referencing an undefined 
symbol.

Should the conditionals around md_autodetect_dev be changed to make sure 
CONFIG_BLK_DEV_MD=y, or does the function need to be extracted from md.c 
so it can be used by check.c in any case?

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

end of thread, other threads:[~2007-04-08  1:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-07 22:47 [RFC] partitions: CONFIG_BLK_DEV_MD and modular RAID support John Anthony Kazos Jr.
2007-04-08  1:39 ` Randy Dunlap

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

all inboxes | Powered by JetHome®