Hi Mauro,
FYI, the error/warning still remains.
tree:
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: b652d2a5f2a4e93d803cc33eb57fdc41ee528500
commit: 72a9ff3bf7fbd7e887d4e6bbc1c04817da2b9887 [5086/9028] media: atomisp: get rid of
-Wsuggest-attribute=format warnings
config: i386-allyesconfig (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;
| ^
cc1: some warnings being treated as errors
#
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commi...
git remote add linux-next
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next 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