OpenCloudOS-Kernel/drivers/media/platform/atmel
Eugen Hristev f1de1c7803 media: atmel: fix build when ISC=m and XISC=y
Building VIDEO_ATMEL_ISC as module and VIDEO_ATMEL_XISC as built-in
(or viceversa) causes build errors:

 or1k-linux-ld: drivers/media/platform/atmel/atmel-isc-base.o: in function `isc_async_complete':
 atmel-isc-base.c:(.text+0x40d0): undefined reference to `__this_module'
 or1k-linux-ld: atmel-isc-base.c:(.text+0x40f0): undefined reference to `__this_module'
 or1k-linux-ld: drivers/media/platform/atmel/atmel-isc-base.o:(.rodata+0x390): undefined reference to `__this_module'
 or1k-linux-ld: drivers/media/platform/atmel/atmel-isc-base.o:(__param+0x4): undefined reference to `__this_module'
 or1k-linux-ld: drivers/media/platform/atmel/atmel-isc-base.o:(__param+0x18): undefined reference to `__this_module'

This is caused by the file atmel-isc-base.c which is common code between
the two drivers.

The solution is to create another Kconfig symbol that is automatically
selected and generates the module atmel-isc-base.ko. This module can be
loaded when both drivers are modules, or built-in when at least one of them
is built-in.

Reported-by: kernel test robot <lkp@intel.com>
Fixes: c9aa973884 ("media: atmel: atmel-isc: add microchip-xisc driver")
Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
2021-07-30 13:01:52 +02:00
..
Kconfig media: atmel: fix build when ISC=m and XISC=y 2021-07-30 13:01:52 +02:00
Makefile media: atmel: fix build when ISC=m and XISC=y 2021-07-30 13:01:52 +02:00
atmel-isc-base.c media: atmel: fix build when ISC=m and XISC=y 2021-07-30 13:01:52 +02:00
atmel-isc-regs.h media: atmel: atmel-isc: add microchip-xisc driver 2021-06-08 15:46:31 +02:00
atmel-isc.h media: atmel: atmel-isc: create an adapt pipeline callback for product specific 2021-06-08 15:41:20 +02:00
atmel-isi.c media: v4l2-subdev: add subdev-wide state struct 2021-06-17 10:01:27 +02:00
atmel-isi.h media: atmel: atmel-isi: add support for mono sensors, GRAY and Y16 2019-12-16 10:16:56 +01:00
atmel-sama5d2-isc.c media: atmel: atmel-isc-sama5d2: remove duplicate define 2021-06-08 15:42:45 +02:00
atmel-sama7g5-isc.c media: atmel: atmel-isc: add microchip-xisc driver 2021-06-08 15:46:31 +02:00