日期:2014-05-16  浏览次数:20651 次

驱动加载时出现“couldn't find the kernel version the module was compiled for”
如题,刚刚接触驱动,看了《linux设备驱动》编译了hellodriver的驱动,编译通过了,但是用insmod加载时却出现:“couldn 't   find   the   kernel   version   the   module   was   compiled   for”这样的错误。

------解决方案--------------------
在后面加上$(INCLUDEDIR)/linux/version.h)
------解决方案--------------------
只是一个warning,不碍事的