Skip to contentSkip to conversation

warnings linking demo rtdm modules

Xenomai-help Jeff Weber 1 participant 1 message Feb 26, 2010

lore
Share & tools
lore

Jeff Weber

author
#0 lore raw

I'm writing a kernel module that uses RTDM, and have started with a Makefile based upon examples/rtdm/driver-api/Makefile.

Both the example Makefile, and therefore mine as well, emit linker warnings:

make -f /usr/src/linux-2.6.31.12-xenomai-2.5.1/scripts/Makefile.modpost
scripts/mod/modpost -i
/usr/src/linux-2.6.31.12-xenomai-2.5.1/Module.symvers -I /usr/src/xenomai-2.5.1/examples/rtdm/driver-api/Module.symvers -o /usr/src/xenomai-2.5.1/examples/rtdm/driver-api/Module.symvers -S -K /usr/src/linux-2.6.31.12-xenomai-2.5.1/Module.markers -M /usr/src/xenomai-2.5.1/examples/rtdm/driver-api/Module.markers -w -s
WARNING: "rtdm_dev_register" [/usr/src/xenomai-2.5.1/examples/rtdm/driver-api/tut02-skeleton-drv.ko] undefined!
WARNING: "rtdm_sem_init" [/usr/src/xenomai-2.5.1/examples/rtdm/driver-api/tut02-skeleton-drv.ko] undefined!
WARNING: "rtdm_sem_down" [/usr/src/xenomai-2.5.1/examples/rtdm/driver-api/tut02-skeleton-drv.ko] undefined!
...

How do I fix these warnings?

It appears modpost would be happy if given a *.symvers file for xeno_rtdem.ko. However I could not find such a file.

Both the demo and my modules do load without errors, however.

I have built the nucleus and rtdm kernel as modules, and am running xeno version 2.5.1.

thanks,
Jeff