Hi TK, this is log when i compile module kernel
vu@VuHoangAnh:~/Desktop/1.IMX6ULL/build/04-Source/MYiR-iMX-Linux$ make modules
CHK include/config/kernel.release
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
make[1]: 'include/generated/mach-types.h' is up to date.
CHK include/generated/bounds.h
CHK include/generated/asm-offsets.h
CALL scripts/checksyscalls.sh
CC [M] drivers/media/platform/mxc/subdev/656.o
drivers/media/platform/mxc/subdev/656.c:296:27: error: field 'vb' has incomplete type
struct vb2_v4l2_buffer vb;
^
drivers/media/platform/mxc/subdev/656.c: In function 'mx6s_videobuf_queue':
drivers/media/platform/mxc/subdev/656.c:743:33: error: implicit declaration of function 'to_vb2_v4l2_buffer' [-Werror=implicit-function-declaration]
struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
^
drivers/media/platform/mxc/subdev/656.c:743:33: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
In file included from include/asm-generic/bug.h:13:0,
from ./arch/arm/include/asm/bug.h:61,
from include/linux/bug.h:4,
from include/linux/thread_info.h:11,
from include/asm-generic/current.h:4,
from arch/arm/include/generated/asm/current.h:1,
from include/linux/mutex.h:13,
from include/linux/notifier.h:13,
from include/linux/busfreq-imx.h:12,
from drivers/media/platform/mxc/subdev/656.c:24:
include/linux/kernel.h:812:48: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
const typeof( ((type *)0)->member ) *__mptr = (ptr); \
^
drivers/media/platform/mxc/subdev/656.c:745:28: note: in expansion of macro 'container_of'
struct mx6s_buffer *buf = container_of(vbuf, struct mx6s_buffer, vb);
^
include/linux/kernel.h:812:48: note: (near initialization for 'buf')
const typeof( ((type *)0)->member ) *__mptr = (ptr); \
^
drivers/media/platform/mxc/subdev/656.c:745:28: note: in expansion of macro 'container_of'
struct mx6s_buffer *buf = container_of(vbuf, struct mx6s_buffer, vb);
^
drivers/media/platform/mxc/subdev/656.c: At top level:
drivers/media/platform/mxc/subdev/656.c:1050:21: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
.queue_setup = mx6s_videobuf_setup,
^
drivers/media/platform/mxc/subdev/656.c:1050:21: note: (near initialization for 'mx6s_videobuf_ops.queue_setup')
drivers/media/platform/mxc/subdev/656.c: In function 'mx6s_csi_frame_done':
drivers/media/platform/mxc/subdev/656.c:1097:5: error: 'struct vb2_buffer' has no member named 'timestamp'
vb->timestamp =ktime_get_ns();
^
drivers/media/platform/mxc/subdev/656.c:1098:25: error: invalid type argument of '->' (have 'int')
to_vb2_v4l2_buffer(vb)->sequence = csi_dev->frame_count;
^
cc1: some warnings being treated as errors
scripts/Makefile.build:264: recipe for target 'drivers/media/platform/mxc/subdev/656.o' failed
make[4]: *** [drivers/media/platform/mxc/subdev/656.o] Error 1
scripts/Makefile.build:403: recipe for target 'drivers/media/platform/mxc/subdev' failed
make[3]: *** [drivers/media/platform/mxc/subdev] Error 2
scripts/Makefile.build:403: recipe for target 'drivers/media/platform' failed
make[2]: *** [drivers/media/platform] Error 2
scripts/Makefile.build:403: recipe for target 'drivers/media' failed
make[1]: *** [drivers/media] Error 2
Makefile:947: recipe for target 'drivers' failed
make: *** [drivers] Error 2
Thanks for your help!