2002-04-08 15:59:48

by Justin Cormack

[permalink] [raw]
Subject: modular ide broken in recent kernels

ide doesnt work modular in recent kernels (eg 2.4.19-pre6)

you get
depmod: *** Unresolved symbols in /lib/modules/2.4.19-pre6/kernel/drivers/ide/ide-probe-mod.o
depmod: ide_xlate_1024_hook

I cant work out what this ide_xlate_1024_hook is for, as it only appears to be
used here:

#ifdef MODULE
extern int (*ide_xlate_1024_hook)(kdev_t, int, int, const char *);

int init_module (void)
{
unsigned int index;

for (index = 0; index < MAX_HWIFS; ++index)
ide_unregister(index);
ideprobe_init();
create_proc_ide_interfaces();
ide_xlate_1024_hook = ide_xlate_1024;
return 0;
}

void cleanup_module (void)
{
ide_probe = NULL;
ide_xlate_1024_hook = 0;
}
MODULE_LICENSE("GPL");
#endif /* MODULE */


What was it for? It was added some time in later 2.4 I think.

Justin