TBS6909 Centos 7 Driver Problem
Posted: Wed Dec 19, 2018 5:52 pm
Hi,
can someone help me?
------------------------------
/root/media_build/v4l/stid135_drv.c: At top level:
cc1: warning: unrecognized command line option "-Wno-format-truncation" [enabled by default]
CC [M] /root/media_build/v4l/media-entity.o
CC [M] /root/media_build/v4l/v4l2-fwnode.o
CC [M] /root/media_build/v4l/v4l2-dev.o
CC [M] /root/media_build/v4l/v4l2-ioctl.o
CC [M] /root/media_build/v4l/v4l2-device.o
CC [M] /root/media_build/v4l/v4l2-fh.o
CC [M] /root/media_build/v4l/v4l2-event.o
CC [M] /root/media_build/v4l/v4l2-ctrls.o
CC [M] /root/media_build/v4l/v4l2-subdev.o
CC [M] /root/media_build/v4l/v4l2-clk.o
CC [M] /root/media_build/v4l/v4l2-async.o
CC [M] /root/media_build/v4l/v4l2-compat-ioctl32.o
CC [M] /root/media_build/v4l/v4l2-trace.o
CC [M] /root/media_build/v4l/v4l2-mc.o
CC [M] /root/media_build/v4l/v4l2-common.o
CC [M] /root/media_build/v4l/v4l2-dv-timings.o
CC [M] /root/media_build/v4l/tuner-core.o
CC [M] /root/media_build/v4l/v4l2-mem2mem.o
CC [M] /root/media_build/v4l/videobuf-core.o
CC [M] /root/media_build/v4l/videobuf-dma-sg.o
CC [M] /root/media_build/v4l/videobuf-dma-contig.o
CC [M] /root/media_build/v4l/videobuf-vmalloc.o
/root/media_build/v4l/videobuf-dma-sg.c: In function 'videobuf_dma_init_user_locked':
/root/media_build/v4l/videobuf-dma-sg.c:188:9: warning: passing argument 6 of 'get_user_pages' makes pointer from integer without a cast [enabled by default]
dma->pages, NULL);
^
In file included from include/linux/scatterlist.h:7:0,
from include/linux/dma-mapping.h:10,
from include/linux/skbuff.h:34,
from include/linux/if_ether.h:23,
from /root/media_build/v4l/compat.h:1732,
from <command-line>:0:
include/linux/mm.h:1200:6: note: expected 'struct page **' but argument is of type 'int'
long get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
^
/root/media_build/v4l/videobuf-dma-sg.c:188:9: warning: passing argument 7 of 'get_user_pages' from incompatible pointer type [enabled by default]
dma->pages, NULL);
^
In file included from include/linux/scatterlist.h:7:0,
from include/linux/dma-mapping.h:10,
from include/linux/skbuff.h:34,
from include/linux/if_ether.h:23,
from /root/media_build/v4l/compat.h:1732,
from <command-line>:0:
include/linux/mm.h:1200: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,
^
/root/media_build/v4l/videobuf-dma-sg.c:188:9: error: too many arguments to function 'get_user_pages'
dma->pages, NULL);
^
In file included from include/linux/scatterlist.h:7:0,
from include/linux/dma-mapping.h:10,
from include/linux/skbuff.h:34,
from include/linux/if_ether.h:23,
from /root/media_build/v4l/compat.h:1732,
from <command-line>:0:
include/linux/mm.h:1200:6: note: declared here
long get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
^
/root/media_build/v4l/videobuf-dma-sg.c: At top level:
cc1: warning: unrecognized command line option "-Wno-format-truncation" [enabled by default]
make[3]: *** [/root/media_build/v4l/videobuf-dma-sg.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [_module_/root/media_build/v4l] Error 2
make[2]: Leaving directory `/usr/src/kernels/4.4.168-1.el7.elrepo.x86_64'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/root/media_build/v4l'
make: *** [all] Error 2
[root@stream media_build]#
can someone help me?
------------------------------
/root/media_build/v4l/stid135_drv.c: At top level:
cc1: warning: unrecognized command line option "-Wno-format-truncation" [enabled by default]
CC [M] /root/media_build/v4l/media-entity.o
CC [M] /root/media_build/v4l/v4l2-fwnode.o
CC [M] /root/media_build/v4l/v4l2-dev.o
CC [M] /root/media_build/v4l/v4l2-ioctl.o
CC [M] /root/media_build/v4l/v4l2-device.o
CC [M] /root/media_build/v4l/v4l2-fh.o
CC [M] /root/media_build/v4l/v4l2-event.o
CC [M] /root/media_build/v4l/v4l2-ctrls.o
CC [M] /root/media_build/v4l/v4l2-subdev.o
CC [M] /root/media_build/v4l/v4l2-clk.o
CC [M] /root/media_build/v4l/v4l2-async.o
CC [M] /root/media_build/v4l/v4l2-compat-ioctl32.o
CC [M] /root/media_build/v4l/v4l2-trace.o
CC [M] /root/media_build/v4l/v4l2-mc.o
CC [M] /root/media_build/v4l/v4l2-common.o
CC [M] /root/media_build/v4l/v4l2-dv-timings.o
CC [M] /root/media_build/v4l/tuner-core.o
CC [M] /root/media_build/v4l/v4l2-mem2mem.o
CC [M] /root/media_build/v4l/videobuf-core.o
CC [M] /root/media_build/v4l/videobuf-dma-sg.o
CC [M] /root/media_build/v4l/videobuf-dma-contig.o
CC [M] /root/media_build/v4l/videobuf-vmalloc.o
/root/media_build/v4l/videobuf-dma-sg.c: In function 'videobuf_dma_init_user_locked':
/root/media_build/v4l/videobuf-dma-sg.c:188:9: warning: passing argument 6 of 'get_user_pages' makes pointer from integer without a cast [enabled by default]
dma->pages, NULL);
^
In file included from include/linux/scatterlist.h:7:0,
from include/linux/dma-mapping.h:10,
from include/linux/skbuff.h:34,
from include/linux/if_ether.h:23,
from /root/media_build/v4l/compat.h:1732,
from <command-line>:0:
include/linux/mm.h:1200:6: note: expected 'struct page **' but argument is of type 'int'
long get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
^
/root/media_build/v4l/videobuf-dma-sg.c:188:9: warning: passing argument 7 of 'get_user_pages' from incompatible pointer type [enabled by default]
dma->pages, NULL);
^
In file included from include/linux/scatterlist.h:7:0,
from include/linux/dma-mapping.h:10,
from include/linux/skbuff.h:34,
from include/linux/if_ether.h:23,
from /root/media_build/v4l/compat.h:1732,
from <command-line>:0:
include/linux/mm.h:1200: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,
^
/root/media_build/v4l/videobuf-dma-sg.c:188:9: error: too many arguments to function 'get_user_pages'
dma->pages, NULL);
^
In file included from include/linux/scatterlist.h:7:0,
from include/linux/dma-mapping.h:10,
from include/linux/skbuff.h:34,
from include/linux/if_ether.h:23,
from /root/media_build/v4l/compat.h:1732,
from <command-line>:0:
include/linux/mm.h:1200:6: note: declared here
long get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
^
/root/media_build/v4l/videobuf-dma-sg.c: At top level:
cc1: warning: unrecognized command line option "-Wno-format-truncation" [enabled by default]
make[3]: *** [/root/media_build/v4l/videobuf-dma-sg.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [_module_/root/media_build/v4l] Error 2
make[2]: Leaving directory `/usr/src/kernels/4.4.168-1.el7.elrepo.x86_64'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/root/media_build/v4l'
make: *** [all] Error 2
[root@stream media_build]#