]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
media: staging: media/atomisp: don't compile unused code
authorkarthik alapati <mail@karthek.com>
Sat, 20 Feb 2021 14:16:27 +0000 (15:16 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 23 Mar 2021 15:49:25 +0000 (16:49 +0100)
currently the functions defined in ibuf_ctrl_rmgr.c file are only
used by isys_init.c when CONFIG_VIDEO_ATOMISP_ISP2401 is selected
so dont't compile it when not needed, also fixes some sparse warnings

Link: https://lore.kernel.org/linux-media/YDEZu3oniT/vUMMY@karthik-strix-linux.karthek.com
Signed-off-by: karthik alapati <mail@karthek.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/atomisp/Makefile

index 1dfad0dd02d0066e5203718190bcc94bbf2ebdf6..51498b2e85b8f950ccc9a845acc77d51991ceda2 100644 (file)
@@ -126,7 +126,6 @@ atomisp-objs += \
        pci/runtime/inputfifo/src/inputfifo.o \
        pci/runtime/isp_param/src/isp_param.o \
        pci/runtime/isys/src/csi_rx_rmgr.o \
-       pci/runtime/isys/src/ibuf_ctrl_rmgr.o \
        pci/runtime/isys/src/isys_dma_rmgr.o \
        pci/runtime/isys/src/isys_init.o \
        pci/runtime/isys/src/isys_stream2mmio_rmgr.o \
@@ -323,7 +322,9 @@ DEFINES := -DHRT_HW -DHRT_ISP_CSS_CUSTOM_HOST -DHRT_USE_VIR_ADDRS -D__HOST__
 #DEFINES += -DUSE_KMEM_CACHE
 
 ifeq ($(CONFIG_VIDEO_ATOMISP_ISP2401),y)
-atomisp-objs += $(obj-cht)
+atomisp-objs += \
+       $(obj-cht) \
+       pci/runtime/isys/src/ibuf_ctrl_rmgr.o
 DEFINES += -DISP2401 -DISP2401_NEW_INPUT_SYSTEM -DSYSTEM_hive_isp_css_2401_system
 else
 atomisp-objs += $(obj-byt)