error: implicit declaration of function 'usb_buffer_free'

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

error: implicit declaration of function 'usb_buffer_free'

1,162 Views
Swamy
Contributor III
I am finding following implicit declaration issue(below) when I use linux-
2.6.35.3 header files. Please let me know how to resolve this issue.

Regards,
Swamy


$ CROSS_COMPILE=/opt/freescale/usr/local/gcc-4.4.4-glibc-
2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/arm-none-linux-
gnueabi- ARCH=arm make

make -C /home/lucid/ltib/rpm/BUILD/linux-2.6.35.3
SUBDIRS=/home/Research/Tomtom/ttviewer/uvcvideo-2.6.32
modules
make[1]: Entering directory `/home/lucid/ltib/rpm/BUILD/linux-
2.6.35.3'
CC [M] /home/Research/Tomtom/ttviewer/uvcvideo-
2.6.32/uvc_video.o
/home/Research/Tomtom/ttviewer/uvcvideo-2.6.32/uvc_video.c:
In function 'uvc_free_urb_buffers':
/home/Research/Tomtom/ttviewer/uvcvideo-
2.6.32/uvc_video.c:737: error: implicit declaration of function 'usb_buffer_free'
/home/Research/Tomtom/ttviewer/uvcvideo-2.6.32/uvc_video.c:
In function 'uvc_alloc_urb_buffers':
/home/Research/Tomtom/ttviewer/uvcvideo-
2.6.32/uvc_video.c:777: error: implicit declaration of function 'usb_buffer_alloc'
/home/Research/Tomtom/ttviewer/uvcvideo-
2.6.32/uvc_video.c:779: warning: assignment makes pointer from integer without a cast
make[2]: *** [/home/Research/Tomtom/ttviewer/uvcvideo-
2.6.32/uvc_video.o] Error 1
make[1]: ***
[_module_/home/Research/Tomtom/ttviewer/uvcvideo-2.6.32]
Error 2
make[1]: Leaving directory `/home/lucid/ltib/rpm/BUILD/linux-
2.6.35.3'
make: *** [default] Error 2
Labels (1)
0 Kudos
Reply
1 Reply

971 Views
JimDonelson
Contributor I

You have an old version of the USB Video Class driver, that does not match your kernel headersl.

There should not be any calls to  usb_buffer_free, as that call was renamed to usb_free_coherent.

0 Kudos
Reply