static int hello_init()
{
printk(KERN_EMERG "hello world!\n");
return 0;
}
内核模块里面这样写,就会报一个警告。虽然是警告,改掉也是好的。
这时要在参数里面加一个void。
static int hello_init()
{
printk(KERN_EMERG "hello world!\n");
return 0;
}
内核模块里面这样写,就会报一个警告。虽然是警告,改掉也是好的。
这时要在参数里面加一个void。