I try to compile the kernel module in kernel 3.13 and I get this error:
error: implicit declaration of function 'create_proc_read_entry' [-Werror=implicit-function-declaration]
I google and did not find the answer. Here is the piece of code that relates to this error:
#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24)) proc = proc_net_create(KAODV_QUEUE_PROC_FS_NAME, 0, kaodv_queue_get_info); #else proc = create_proc_read_entry(KAODV_QUEUE_PROC_FS_NAME, 0, init_net.proc_net, kaodv_queue_get_info, NULL); #endif if (!proc) { printk(KERN_ERR "kaodv_queue: failed to create proc entry\n"); return -1; }
Can i get help? I really don't know what is wrong. This may be the 3.13 kernel that needs the patch. I read somewhere (on KERNEL 3.10) that the kernel needs a patch. Can someone show me where I can get the kernel 3.13 patch to ultimately solve the problem. Thanks
c linux linux-kernel kernel-module
scof007
source share