]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
media: atomisp: move a static constant out of a header file
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 3 Sep 2020 13:35:19 +0000 (15:35 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 7 Sep 2020 14:04:11 +0000 (16:04 +0200)
commitb38f7aaef852c88b90caa115f1f64434bc347222
tree9da2d0fe6fcae4d352250bd604c873cf02540031
parent852a53a02cf04b17f5e1677991d439cadc77ea29
media: atomisp: move a static constant out of a header file

Gcc reports that input_formatter_alignment is not used:

In file included from ./drivers/staging/media/atomisp//pci/hive_isp_css_include/input_formatter.h:34,
                 from drivers/staging/media/atomisp//pci/runtime/debug/src/ia_css_debug.c:55:
./drivers/staging/media/atomisp//pci/hive_isp_css_common/host/input_formatter_local.h:118:27: warning: ‘input_formatter_alignment’ defined but not used [-Wunused-const-variable=]

However, it is, but only inside input_formatter.c.

So, move it out of the header file.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/atomisp/pci/hive_isp_css_common/host/input_formatter.c
drivers/staging/media/atomisp/pci/hive_isp_css_common/host/input_formatter_local.h