Sunday, May 25, 2014
12:55 PM

error: function declaration isn’t a prototype [-Werror=strict-prototypes]

While compiling kernel modules, or any c program, we might at times come across the error



This error is being shown for the function declaration



Though the syntax looks fine, the compiler is expecting us to pass "void" in case we are not passing any arguments to the function. That is we need to modify the above function to

After the above change, we should not get the above error.

0 comments:

Post a Comment