[lkml]   [1997]   [Feb]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subjectdrive_info symbol not exported when IDE as a module


From kernel version 2.1.23 I could not load the ide-probe module. The
error shown was something like: unknown symbol: drive_info.

Grepping through the patches did lead to these parts of ksyms.c from the
linux/kernel dir:

#if defined(CONFIG_BLK_DEV_IDE) || defined(CONFIG_BLK_DEV_HD)
extern struct drive_info_struct drive_info;


#if defined(CONFIG_BLK_DEV_IDE) || defined(CONFIG_BLK_DEV_HD)

The two defines are not defined if the whole ide subsystem is compiled as
a module. (I did look in my .config !!) In my .config I saw the
definition of CONFIG_BLK_DEV_IDE_MODULE. So I appended this after the #if
line: || defined(CONFIG_BLK_DEV_IDE_MODULE)
And it works. I was not to suprised as the line changed from #ifdef
__i386__ or something similar to the above mentioned.

Sorry that I don't provide something like a patch or so as I'm not at
home now writing this message.

Good luck,

Jan Kees Joosse

Ps. Otherwise 2.1.25 works like a charm for me.

 \ /
  Last update: 2005-03-22 13:38    [W:0.016 / U:1.728 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site