[PLUG] kernel module compilation
Sagar Padhye
sgr.m.pdy at gmail.com
Thu Mar 7 12:20:42 IST 2013
Hi,
I am trying to learn linux kernel module programming using this document :
http://www.tldp.org/LDP/lkmpg/2.6/html/index.html
I came upto exercise of passing command line arguments to module (2.6),
where I am getting following error when used "MODULE_PARAM_DESC" macro:
hello-5.c:47: error: expected ‘)’ before string constant
I have to admit, I am a not so good with Makefiles & C (macros), I am
C++/scons guy. So need some help to resolve this.
Note : If I remove the use of this macro, rest of the program purpose is
satisfied.
I have kept my code, makefile & error log at
http://ubuntuone.com/3rzokSrMzpOUgOIEpKOdhD
OS : Ubuntu 10.04
Kernel : 2.6.32.60 - not from ubunutu repo, compile my own (needed to
disable modversioning as asked by exercise)
Thanks and Regards,
Sagar
More information about the Plug-mail
mailing list