[PLUG] kernel module compilation

Sagar Padhye sgr.m.pdy at gmail.com
Wed Mar 6 22:50:42 PST 2013

I am trying to learn linux kernel module programming using this document :

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

I have kept my code, makefile & error log at

OS : Ubuntu 10.04
Kernel : - not from ubunutu repo, compile my own (needed to
disable modversioning as asked by exercise)

Thanks and Regards,

More information about the plug-mail mailing list