tree:
git://linuxtv.org/media_tree.git master
head: 93c16fabdb74a9c1a427402fc1fe588a45130c5b
commit: 72a9ff3bf7fbd7e887d4e6bbc1c04817da2b9887 [271/315] media: atomisp: get rid of
-Wsuggest-attribute=format warnings
config: i386-randconfig-a002-20200909 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
git checkout 72a9ff3bf7fbd7e887d4e6bbc1c04817da2b9887
# save the attached .config to linux build tree
make W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/staging/media/atomisp/pci/atomisp_compat_css20.c: In function
'__set_css_print_env':
> drivers/staging/media/atomisp/pci/atomisp_compat_css20.c:861:50:
error: assignment to 'int (*)(const char *, char *)' from incompatible pointer
type 'int (__attribute__((regparm(0))) *)(const char *, char *)'
[-Werror=incompatible-pointer-types]
861 |
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:894:49: error: assignment to
'int (*)(const char *, char *)' from incompatible pointer type 'int
(__attribute__((regparm(0))) *)(const char *, char *)'
[-Werror=incompatible-pointer-types]
894 | isp->css_env.isp_css_env.print_env.error_print = vprintk;
| ^
In file included from drivers/staging/media/atomisp//pci/input_system_local.h:10,
from
drivers/staging/media/atomisp//pci/hive_isp_css_include/input_system.h:34,
from drivers/staging/media/atomisp//pci/sh_css_internal.h:28,
from
drivers/staging/media/atomisp//pci/runtime/debug/interface/ia_css_debug.h:29,
from drivers/staging/media/atomisp/pci/atomisp_compat_css20.c:36:
At top level:
drivers/staging/media/atomisp//pci/isp2400_input_system_local.h:393:26: warning:
'SUB_SYSTEM_OFFSET' defined but not used [-Wunused-const-variable=]
393 | static const hrt_address SUB_SYSTEM_OFFSET[N_SUB_SYSTEM_ID] = {
| ^~~~~~~~~~~~~~~~~
drivers/staging/media/atomisp//pci/isp2400_input_system_local.h:382:30: warning:
'MIPI_PORT_LANES' defined but not used [-Wunused-const-variable=]
382 | static const mipi_lane_cfg_t MIPI_PORT_LANES[N_RX_MODE][N_MIPI_PORT_ID] = {
| ^~~~~~~~~~~~~~~
drivers/staging/media/atomisp//pci/isp2400_input_system_local.h:371:19: warning:
'MIPI_PORT_ACTIVE' defined but not used [-Wunused-const-variable=]
371 | static const bool MIPI_PORT_ACTIVE[N_RX_MODE][N_MIPI_PORT_ID] = {
| ^~~~~~~~~~~~~~~~
drivers/staging/media/atomisp//pci/isp2400_input_system_local.h:365:30: warning:
'MIPI_PORT_MAXLANES' defined but not used [-Wunused-const-variable=]
365 | static const mipi_lane_cfg_t MIPI_PORT_MAXLANES[N_MIPI_PORT_ID] = {
| ^~~~~~~~~~~~~~~~~~
drivers/staging/media/atomisp//pci/isp2400_input_system_local.h:359:26: warning:
'MIPI_PORT_OFFSET' defined but not used [-Wunused-const-variable=]
359 | static const hrt_address MIPI_PORT_OFFSET[N_MIPI_PORT_ID] = {
| ^~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
git remote add linuxtv-media
git://linuxtv.org/media_tree.git
git fetch --no-tags linuxtv-media master
git checkout 72a9ff3bf7fbd7e887d4e6bbc1c04817da2b9887
vim +861 drivers/staging/media/atomisp/pci/atomisp_compat_css20.c
850
851 static inline int __set_css_print_env(struct atomisp_device *isp, int opt)
852 {
853 int ret = 0;
854
855 if (opt == 0)
856 isp->css_env.isp_css_env.print_env.debug_print = NULL;
857 else if (opt == 1)
858 isp->css_env.isp_css_env.print_env.debug_print =
859 atomisp_css2_dbg_ftrace_print;
860 else if (opt == 2)
861 isp->css_env.isp_css_env.print_env.debug_print = vprintk;
862 else
863 ret = -EINVAL;
864
865 return ret;
866 }
867
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org