[Solved] void value not ignored as it ought to be

Error “void value not ignored as it ought to be” appears in GCC,
The reason is that you are using a function whose return type is void, and you have assigned it.
Such as:
int ret;
ret=unregister_chrdev(MAJOR_NUM,”globalvar”);

Read More: