Trouble compiling SMi2012 module

144 views
Skip to first unread message

Rodrigo Severo

unread,
May 30, 2014, 11:00:45 AM5/30/14
to easycap-so...@googlegroups.com
Hi,


I've been trying to follow the instructions on BuildingKernelModule page (https://code.google.com/p/easycap-somagic-linux/wiki/BuildingKernelModule).

Have already tried with kernel 3.12.20 and 3.14.4. On both tried I got the same error:

drivers/media/usb/smi2021/smi2021_main.c: In function ‘smi2021_set_mode’:
drivers/media/usb/smi2021/smi2021_main.c:47:2: error: implicit declaration of function ‘kzalloc’ [-Werror=implicit-function-declaration]
drivers/media/usb/smi2021/smi2021_main.c:47:20: warning: initialization makes pointer from integer without a cast [enabled by default]
drivers/media/usb/smi2021/smi2021_main.c:60:2: error: implicit declaration of function ‘kfree’ [-Werror=implicit-function-declaration]
drivers/media/usb/smi2021/smi2021_main.c: In function ‘smi2021_set_reg’:
drivers/media/usb/smi2021/smi2021_main.c:120:15: warning: assignment makes pointer from integer without a cast [enabled by default]
drivers/media/usb/smi2021/smi2021_main.c: In function ‘smi2021_get_reg’:
drivers/media/usb/smi2021/smi2021_main.c:178:15: warning: assignment makes pointer from integer without a cast [enabled by default]
drivers/media/usb/smi2021/smi2021_main.c: In function ‘smi2021_setup_iso_transfer’:
drivers/media/usb/smi2021/smi2021_main.c:602:22: warning: assignment makes pointer from integer without a cast [enabled by default]
drivers/media/usb/smi2021/smi2021_main.c: In function ‘smi2021_usb_probe’:
drivers/media/usb/smi2021/smi2021_main.c:814:10: warning: assignment makes pointer from integer without a cast [enabled by default]
cc1: some warnings being treated as errors
make[4]: *** [drivers/media/usb/smi2021/smi2021_main.o] Error 1
make[3]: *** [drivers/media/usb/smi2021] Error 2

Any ideas on how to fix it?


Regards,

Rodrigo


--

Rodrigo Severo | DIRETOR DE TECNOLOGIA
Tel. +55 61 3030-1515 
Siga a Fábrica no twitter:@empautaclipping

fabricadeideias.com
12 ANOS DE TECNOLOGIA E COMUNICAÇÃO
NUMA COMBINAÇÃO PERFEITA

Anthony Griffiths

unread,
Jun 16, 2014, 10:19:28 AM6/16/14
to easycap-so...@googlegroups.com
hi rodrigo, I'm having exactly the same problem as you with the easycap somagic. Did you ever solve this?
if so could you share how you did it? thanks.

Jon Arne Jørgensen

unread,
Jun 16, 2014, 2:11:12 PM6/16/14
to easycap-so...@googlegroups.com
As I answered in another thread here, the fix is to add the line:
#include <linux/vmalloc.h>

To the list of "#include" statements in "smi2021.h"
> --
> You received this message because you are subscribed to the Google Groups
> "easycap-somagic-linux" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to easycap-somagic-...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
Jonarne
http://jonarne.no
Reply all
Reply to author
Forward
0 new messages