Public bug reported:
16.04 LTS Kernel 4.4.0-143
When trying to make and install 3rd party drivers from TBSDTV, I receive the
following errors during make.
CC [M] /home/user/Drivers/linux-tbs-drivers/v4l/videobuf-dma-sg.o
/home/user/Drivers/linux-tbs-drivers/v4l/videobuf-dma-sg.c: In function
'videobuf_dma_init_user_locked':
/home/user/Drivers/linux-tbs-drivers/v4l/videobuf-dma-sg.c:187:21: warning:
passing argument 6 of 'get_user_pages' makes pointer from integer without a
cast [-Wint-conversion]
rw == READ, 1, /* force */
^
In file included from include/linux/scatterlist.h:7:0,
from include/linux/dma-mapping.h:10,
from
/home/user/Drivers/linux-tbs-drivers/v4l/videobuf-dma-sg.c:28:
include/linux/mm.h:1222:6: note: expected 'struct page **' but argument is of
type 'int'
long get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
^
/home/user/Drivers/linux-tbs-drivers/v4l/videobuf-dma-sg.c:188:9: warning:
passing argument 7 of 'get_user_pages' from incompatible pointer type
[-Wincompatible-pointer-types]
dma->pages, NULL);
^
In file included from include/linux/scatterlist.h:7:0,
from include/linux/dma-mapping.h:10,
from
/home/user/Drivers/linux-tbs-drivers/v4l/videobuf-dma-sg.c:28:
include/linux/mm.h:1222:6: note: expected 'struct vm_area_struct **' but
argument is of type 'struct page **'
long get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
^
/home/user/Drivers/linux-tbs-drivers/v4l/videobuf-dma-sg.c:185:8: error: too
many arguments to function 'get_user_pages'
err = get_user_pages(current, current->mm,
^
In file included from include/linux/scatterlist.h:7:0,
from include/linux/dma-mapping.h:10,
from
/home/user/Drivers/linux-tbs-drivers/v4l/videobuf-dma-sg.c:28:
include/linux/mm.h:1222:6: note: declared here
long get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
^
scripts/Makefile.build:291: recipe for target
'/home/user/Drivers/linux-tbs-drivers/v4l/videobuf-dma-sg.o' failed
make[3]: *** [/home/user/Drivers/linux-tbs-drivers/v4l/videobuf-dma-sg.o] Error
1
Makefile:1454: recipe for target
'_module_/home/user/Drivers/linux-tbs-drivers/v4l' failed
make[2]: *** [_module_/home/user/Drivers/linux-tbs-drivers/v4l] Error 2
make[2]: Leaving directory '/usr/src/linux-headers-4.4.0-143-generic'
Makefile:51: recipe for target 'default' failed
make[1]: *** [default] Error 2
make[1]: Leaving directory '/home/user/Drivers/linux-tbs-drivers/v4l'
Makefile:26: recipe for target 'all' failed
make: *** [all] Error 2
Same drivers make and install without issue on kernel 4.4.0-142
** Affects: linux-signed (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1820454
Title:
TBS driver make fails
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-signed/+bug/1820454/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs