Skip to contentSkip to conversation

Error compiling tw68-v2 module (module_param / linux3.2)

DISCUSSION Teun 2 participants 2 messages May 2, 2012 – May 3, 2012 Media (V4L/DVB)

lore
Share & tools
lore

Teun

author
#0 lore raw

I'm having problems compiling the tw68-v2. I looked up the code from the error messages, but I don't know anything about making linux driver modules. I can't find a lot about the module_param function, at least, not why this would be wrong.

Can anyone give any comment on this?

Thanks in advance!

Linux tkpc 3.2.0-2-amd64 #1 SMP Sun Mar 4 22:48:17 UTC 2012 x86_64 GNU/Linux

make -C /lib/modules/3.2.0-2-amd64/build M=/mnt/nfs/black/hw/tw68-v2 modules make[1]: Entering directory `/usr/src/linux-headers-3.2.0-2-amd64'
CC [M] /mnt/nfs/black/hw/tw68-v2/tw68-video.o /mnt/nfs/black/hw/tw68-v2/tw68-video.c:42:27: error: expected ‘)’ before ‘int’ /mnt/nfs/black/hw/tw68-v2/tw68-video.c:43:31: error: expected ‘)’ before string constant /mnt/nfs/black/hw/tw68-v2/tw68-video.c:44:24: error: expected ‘)’ before ‘int’ /mnt/nfs/black/hw/tw68-v2/tw68-video.c:45:28: error: expected ‘)’ before string constant /mnt/nfs/black/hw/tw68-v2/tw68-video.c:46:29: error: expected ‘)’ before ‘int’ /mnt/nfs/black/hw/tw68-v2/tw68-video.c:47:33: error: expected ‘)’ before string constant /mnt/nfs/black/hw/tw68-v2/tw68-video.c:48:35: error: expected ‘)’ before ‘sizeof’ /mnt/nfs/black/hw/tw68-v2/tw68-video.c:49:25: error: expected ‘)’ before string constant

module_param(video_debug, int, 0644); MODULE_PARM_DESC(video_debug, "enable debug messages [video]"); module_param(gbuffers, int, 0444); MODULE_PARM_DESC(gbuffers, "number of capture buffers, range 2-32"); module_param(noninterlaced, int, 0644); MODULE_PARM_DESC(noninterlaced, "capture non interlaced video"); module_param_string(secam, secam, sizeof(secam), 0644); MODULE_PARM_DESC(secam, "force SECAM variant, either DK,L or Lc");

#1 lore raw

Hi,

Quoted 7 lines · Teun

I'm having problems compiling the tw68-v2. I looked up the code from the error messages, but I don't know anything about making linux driver modules.
I can't find a lot about the module_param function, at least, not why this would be wrong.

Can anyone give any comment on this?

yep, you are missing header linux/module.h. please pull again from gitorious.

Quoted 1 line

Thanks in advance!

no, thank you ;)

cheers,
Domenico