error at 'make M=drivers/media/usb/smi2021 modules'

87 views
Skip to first unread message

Anthony Griffiths

unread,
Jun 16, 2014, 11:58:27 AM6/16/14
to easycap-so...@googlegroups.com
I'm following the instructions here: http://roger.venning.net/wp/building-easycap-somagic-linux-on-fedora-core-19/ and all goes ok until I get to: make M=drivers/media/usb/smi2021 modules where it stops with the following errors. 

# make M=drivers/media/usb/smi2021 modules
  WARNING: Symbol version dump /root/rpmbuild/BUILD/kernel-3.12.fc19/linux-3.12.9-201.fc19.x86_64/Module.symvers
           is missing; modules will have no dependencies and modversions.
  CC [M]  drivers/media/usb/smi2021/smi2021_main.o
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]
  } *transfer_buf = kzalloc(sizeof(*transfer_buf), GFP_KERNEL);
  ^
drivers/media/usb/smi2021/smi2021_main.c:47:20: warning: initialization makes pointer from integer without a cast [enabled by default]
  } *transfer_buf = kzalloc(sizeof(*transfer_buf), GFP_KERNEL);
                    ^
drivers/media/usb/smi2021/smi2021_main.c:60:2: error: implicit declaration of function ‘kfree’ [-Werror=implicit-function-declaration]
  kfree(transfer_buf);
  ^
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]
  transfer_buf = kzalloc(sizeof(*transfer_buf), GFP_KERNEL);
               ^
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]
  transfer_buf = kzalloc(sizeof(*transfer_buf), GFP_KERNEL);
               ^
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]
  ip->transfer_buffer = kzalloc(SMI2021_ISOC_PACKETS * size, GFP_KERNEL);
                      ^
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]
  smi2021 = kzalloc(sizeof(struct smi2021), GFP_KERNEL);
          ^
cc1: some warnings being treated as errors
make[1]: *** [drivers/media/usb/smi2021/smi2021_main.o] Error 1
make: *** [_module_drivers/media/usb/smi2021] Error 2

All the steps before this seem to go ok, I don't know how to get past this error. Thanks if anyone can help.

Jon Arne Jørgensen

unread,
Jun 16, 2014, 2:09:35 PM6/16/14
to easycap-so...@googlegroups.com
Hi, I'm sorry but I haven't had time to work on the driver.

There is an easy fix for your problem,
just add

#include <linux/vmalloc.h>

to the include list in the file called "smi2021.h"
(drivers/media/usb/smi2021/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