I have never done a kernel module; but, from my experience I think the error you are getting means the function in not defined in a header file. For example:
int write_init(int option, int value);
here i am using that write_init(); guessing that while loading module kernel can find the function... because i have done EXPORT_SYMBOL_GPL(write_init);...
I hope that helps in some way/