simply compile the module by typing
cc scanmod.c -c
and then load with

 insmod scanmod.o

and remove with

 rmmod scanmod
