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.
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