linux-stable/drivers/staging/media/atomisp
Mauro Carvalho Chehab 8e3d5d4baf media: atomisp: fix gcc warnings
Depending on the gcc version, after changeset
72a9ff3bf7 ("media: atomisp: get rid of -Wsuggest-attribute=format warnings"),
we're now getting two warnings, which are breaking the Jenkins
CI instance at https://builder.linuxtv.org:

	../drivers/staging/media/atomisp/pci/atomisp_compat_css20.c: In function ‘__set_css_print_env’:
	../drivers/staging/media/atomisp/pci/atomisp_compat_css20.c:860:50: error: assignment to ‘int (*)(const char *, char *)’ from incompatible pointer type ‘int (__attribute__((regparm(0))) *)(const char *, char *)’ [-Werror=incompatible-pointer-types]
	   isp->css_env.isp_css_env.print_env.debug_print = vprintk;
	                                                  ^
	../drivers/staging/media/atomisp/pci/atomisp_compat_css20.c: In function ‘atomisp_css_load_firmware’:
	../drivers/staging/media/atomisp/pci/atomisp_compat_css20.c:893:49: error: assignment to ‘int (*)(const char *, char *)’ from incompatible pointer type ‘int (__attribute__((regparm(0))) *)(const char *, char *)’ [-Werror=incompatible-pointer-types]
	  isp->css_env.isp_css_env.print_env.error_print = vprintk;
                                                 ^
	cc1: some warnings being treated as errors

So, we need to partially revert the patch.

Fixes: 72a9ff3bf7 ("media: atomisp: get rid of -Wsuggest-attribute=format warnings")
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
2020-09-23 09:48:20 +02:00
..
i2c media: atomisp: mt9m114: replace fixed function names 2020-09-03 11:00:44 +02:00
include media: atomisp: Replace last use of Intel MID APIs 2020-07-18 07:16:28 +02:00
pci media: atomisp: fix gcc warnings 2020-09-23 09:48:20 +02:00
Kconfig media fixes for v5.8-rc7 2020-07-22 11:56:00 -07:00
Makefile media: atomisp: don't check for ISP version for includes 2020-09-03 12:09:53 +02:00
TODO media: atomisp: improve sensor detection code to use _DSM table 2020-06-11 19:16:16 +02:00