I wrote the following code to create a kernel thread:
#include
#include
#include
#include
in the code u need not use kthread_create
api as kthread_run
does it internally..
Use either
task = kthread_create(&thread_function,(void *)data,"pradeep");
OR
task = kthread_run(&thread_function,(void *)data,"pradeep");
Also your module is not under GPL license. That could be one cause of your issues.