Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[media] samples: v4l: from Documentation to samples directory

With the new autoksyms support, we can run into a situation where
the v4l pci skeleton module is the only one using some exported
symbols that get dropped because they are never referenced by
the kernel otherwise, causing a build problem:

ERROR: "vb2_dma_contig_memops" [Documentation/video4linux/v4l2-pci-skeleton.ko] undefined!
ERROR: "vb2_dma_contig_init_ctx_attrs" [Documentation/video4linux/v4l2-pci-skeleton.ko] undefined!
ERROR: "v4l2_match_dv_timings" [Documentation/video4linux/v4l2-pci-skeleton.ko] undefined!
ERROR: "v4l2_find_dv_timings_cap" [Documentation/video4linux/v4l2-pci-skeleton.ko] undefined!
ERROR: "v4l2_valid_dv_timings" [Documentation/video4linux/v4l2-pci-skeleton.ko] undefined!
ERROR: "v4l2_enum_dv_timings_cap" [Documentation/video4linux/v4l2-pci-skeleton.ko] undefined!
ERROR: "vb2_dma_contig_cleanup_ctx" [Documentation/video4linux/v4l2-pci-skeleton.ko] undefined!

Specifically, we do look in the samples directory for users of
symbols, but not the Documentation directory.

This solves the build problem by moving the connector sample into
the same directory as the other samples.

Fixes: 23121ca2b56b ("kbuild: create/adjust generated/autoksyms.h")

Signed-off-by: Arnd Bergmann <arnd@arndb.de>

authored by

Arnd Bergmann and committed by
Mauro Carvalho Chehab
0185f850 ec788795

+3 -4
+1 -2
Documentation/Makefile
··· 1 1 subdir-y := accounting auxdisplay blackfin connector \ 2 2 filesystems filesystems ia64 laptops mic misc-devices \ 3 - networking pcmcia prctl ptp timers vDSO video4linux \ 4 - watchdog 3 + networking pcmcia prctl ptp timers vDSO watchdog
Documentation/video4linux/Makefile samples/v4l/Makefile
+1 -1
Documentation/video4linux/v4l2-framework.txt
··· 35 35 common code into utility functions shared by all drivers. 36 36 37 37 A good example to look at as a reference is the v4l2-pci-skeleton.c 38 - source that is available in this directory. It is a skeleton driver for 38 + source that is available in samples/v4l/. It is a skeleton driver for 39 39 a PCI capture card, and demonstrates how to use the V4L2 driver 40 40 framework. It can be used as a template for real PCI video capture driver. 41 41
Documentation/video4linux/v4l2-pci-skeleton.c samples/v4l/v4l2-pci-skeleton.c
+1 -1
samples/Makefile
··· 2 2 3 3 obj-$(CONFIG_SAMPLES) += kobject/ kprobes/ trace_events/ livepatch/ \ 4 4 hw_breakpoint/ kfifo/ kdb/ hidraw/ rpmsg/ seccomp/ \ 5 - configfs/ 5 + configfs/ v4l/