Compilation shows some warns -
In file included from /root/softlockup_test.c:3:0:
/root/softlockup_test.c: In function ‘softlockup_init’:
/root/softlockup_test.c:35:31: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
task0 = kthread_run(&task,(void *)val,"softlockup_thread");
^
include/linux/kthread.h:14:35: note: in definition of macro ‘kthread_create’
kthread_create_on_node(threadfn, data, -1, namefmt, ##arg)
^
/root/softlockup_test.c:35:13: note: in expansion of macro ‘kthread_run’
task0 = kthread_run(&task,(void *)val,"softlockup_thread");
^
Building modules, stage 2.
MODPOST 1 modules
CC /root/softlockup_test.mod.o
LD [M] /root/softlockup_test.ko
Modprobe however does not load the module -
[ 4977.483648] softlockup_test: module verification failed: signature and/or required key missing - tainting kernel
[ 4977.491311] softlockup_test: Unknown symbol init_module (err 0)
[ 4977.495267] softlockup_test: Unknown symbol cleanup_module (err 0)
Please suggest what needs to be done.
Compilation shows some warns -
In file included from /root/softlockup_test.c:3:0:
/root/softlockup_test.c: In function ‘softlockup_init’:
/root/softlockup_test.c:35:31: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
task0 = kthread_run(&task,(void *)val,"softlockup_thread");
^
include/linux/kthread.h:14:35: note: in definition of macro ‘kthread_create’
kthread_create_on_node(threadfn, data, -1, namefmt, ##arg)
^
/root/softlockup_test.c:35:13: note: in expansion of macro ‘kthread_run’
task0 = kthread_run(&task,(void *)val,"softlockup_thread");
^
Building modules, stage 2.
MODPOST 1 modules
CC /root/softlockup_test.mod.o
LD [M] /root/softlockup_test.ko
Modprobe however does not load the module -
[ 4977.483648] softlockup_test: module verification failed: signature and/or required key missing - tainting kernel
[ 4977.491311] softlockup_test: Unknown symbol init_module (err 0)
[ 4977.495267] softlockup_test: Unknown symbol cleanup_module (err 0)
Please suggest what needs to be done.