error: implicit declaration of function 'create_proc_read_entry' [-Werror=implicit-function-declaration]

前端 未结 3 2137
余生分开走
余生分开走 2020-12-19 03:25

I\'m trying to compile a kernel module on kernel 3.13 and I get this error:

error: implicit declaration of function \'create_proc_read_entry\' [-Werror=impli         


        
3条回答
  •  旧时难觅i
    2020-12-19 04:02

    The error is because you are not including explicitly the header that declares the function and the compiler is 'including' implicitily for you and this throws a warning. The flag '-Werror' is making the compiler treats the warning as an error. Try adding: #include

    Also: create_proc_read_entry is a deprecated function.

    Take a look at: https://lkml.org/lkml/2013/4/11/215

提交回复
热议问题