错误提示:
drivers/message/fusion/mptsas.c: In function `mptsas_port_delete':
drivers/message/fusion/mptsas.c:105: sorry, unimplemented: inlining failed in call to 'mptsas_set_rphy': function body not available
drivers/message/fusion/mptsas.c:467: sorry, unimplemented: called from here
原因:
mptsas_port_delete中引用了mptsas_set_rphy,但mptsas_set_rphy的定义却在mptsas_port_delete之后。
解决:
vi /usr/src/linux/drivers/message/fusion/mptsas.c,将mptsas_set_rphy的定义(第483行起)移动到mptsas_port_delete的定义(第446行)前面即可。
错误提示:
insmod:error inserting 'hello.ko': -1 Invalid module format
原因:
查看日志文件tail /var/log/messages 文件,若是提醒 "no symbol version for module_layout" 错误
解决:
引用make -C /lib/modules/`uname -r`/build M=`pwd` modules
而不是直接在 -C 参数后填上 /usr/src/linux-.2.6.xxx 这样的路径直接指向内核源码树,因为按照错误提醒,应该是找不到 modules.symbols 文件所致。