linux-stable/drivers/staging/media/atomisp
Nathan Chancellor a89eeb9937 media: atomisp: Do not define input_system_cfg2400_t twice
When CONFIG_VIDEO_ATOMISP_ISP2401 is disabled, clang warns:

./drivers/staging/media/atomisp//pci/isp2400_input_system_local.h:32:40:
error: redefinition of typedef 'input_system_cfg2400_t' is a C11 feature
[-Werror,-Wtypedef-redefinition]
typedef struct input_system_cfg2400_s           input_system_cfg2400_t;
                                                ^
./drivers/staging/media/atomisp//pci/input_system_local.h:22:40: note:
previous definition is here
typedef struct input_system_cfg2400_s           input_system_cfg2400_t;
                                                ^
1 error generated.

input_system_cfg2400_t's typedef was copied from
isp2400_input_system_local.h to input_system_local.h, rather than moved.
Remove the one in isp2400_input_system_local.h so that there is no more
warning, which can break the build under -Werror.

Link: https://github.com/ClangBuiltLinux/linux/issues/1557

Link: https://lore.kernel.org/linux-media/20211227164243.2329724-1-nathan@kernel.org
Fixes: 4005ecee61 ("media: atomisp: shift some structs from input_system_local")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
2022-01-10 15:54:13 +01:00
..
i2c media: atomisp-ov2680: implement enum frame intervals 2021-11-16 14:37:09 +00:00
include media: atomisp: Remove unused header 2021-02-15 20:04:46 +01:00
pci media: atomisp: Do not define input_system_cfg2400_t twice 2022-01-10 15:54:13 +01:00
Kconfig media: atomisp: auto-select VIDEO_V4L2_SUBDEV_API 2021-03-23 09:01:09 +01:00
Makefile media: atomisp: drop empty files 2021-11-17 09:29:40 +00:00
TODO media: atomisp: TODO: make it updated to the current issues 2021-11-15 08:11:44 +00:00