All of lore.kernel.org
 help / color / mirror / Atom feed
* [freescale-fslc:6.6-1.0.x-imx 5784/11728] drivers/media/platform/mxc/capture/ov5647_mipi.c:319:12: error: incompatible function pointer types initializing 'int (*)(struct i2c_client *)' with an expression of type 'int (struct i2c_client *, const struct i2c_device_id *)'
@ 2024-04-28 16:07 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-04-28 16:07 UTC (permalink / raw)
  To: Otavio Salvador; +Cc: oe-kbuild-all

tree:   https://github.com/Freescale/linux-fslc 6.6-1.0.x-imx
head:   37770f55ac9c4f6cd958eb5544939207eed8478f
commit: a5b79f65b3e476d02b1684409304720f7b0a0ebc [5784/11728] Merge remote-tracking branch 'origin/capture/ov5640' into capture/next
config: hexagon-allmodconfig (https://download.01.org/0day-ci/archive/20240429/202404290000.noKkpD4R-lkp@intel.com/config)
compiler: clang version 19.0.0git (https://github.com/llvm/llvm-project 5ef5eb66fb428aaf61fb51b709f065c069c11242)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240429/202404290000.noKkpD4R-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202404290000.noKkpD4R-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from drivers/media/platform/mxc/capture/ov5647_mipi.c:15:
   In file included from include/linux/i2c.h:19:
   In file included from include/linux/regulator/consumer.h:35:
   In file included from include/linux/suspend.h:5:
   In file included from include/linux/swap.h:9:
   In file included from include/linux/memcontrol.h:13:
   In file included from include/linux/cgroup.h:26:
   In file included from include/linux/kernel_stat.h:9:
   In file included from include/linux/interrupt.h:11:
   In file included from include/linux/hardirq.h:11:
   In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1:
   In file included from include/asm-generic/hardirq.h:17:
   In file included from include/linux/irq.h:20:
   In file included from include/linux/io.h:13:
   In file included from arch/hexagon/include/asm/io.h:337:
   include/asm-generic/io.h:547:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
     547 |         val = __raw_readb(PCI_IOBASE + addr);
         |                           ~~~~~~~~~~ ^
   include/asm-generic/io.h:560:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
     560 |         val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr));
         |                                                         ~~~~~~~~~~ ^
   include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu'
      37 | #define __le16_to_cpu(x) ((__force __u16)(__le16)(x))
         |                                                   ^
   In file included from drivers/media/platform/mxc/capture/ov5647_mipi.c:15:
   In file included from include/linux/i2c.h:19:
   In file included from include/linux/regulator/consumer.h:35:
   In file included from include/linux/suspend.h:5:
   In file included from include/linux/swap.h:9:
   In file included from include/linux/memcontrol.h:13:
   In file included from include/linux/cgroup.h:26:
   In file included from include/linux/kernel_stat.h:9:
   In file included from include/linux/interrupt.h:11:
   In file included from include/linux/hardirq.h:11:
   In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1:
   In file included from include/asm-generic/hardirq.h:17:
   In file included from include/linux/irq.h:20:
   In file included from include/linux/io.h:13:
   In file included from arch/hexagon/include/asm/io.h:337:
   include/asm-generic/io.h:573:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
     573 |         val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr));
         |                                                         ~~~~~~~~~~ ^
   include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu'
      35 | #define __le32_to_cpu(x) ((__force __u32)(__le32)(x))
         |                                                   ^
   In file included from drivers/media/platform/mxc/capture/ov5647_mipi.c:15:
   In file included from include/linux/i2c.h:19:
   In file included from include/linux/regulator/consumer.h:35:
   In file included from include/linux/suspend.h:5:
   In file included from include/linux/swap.h:9:
   In file included from include/linux/memcontrol.h:13:
   In file included from include/linux/cgroup.h:26:
   In file included from include/linux/kernel_stat.h:9:
   In file included from include/linux/interrupt.h:11:
   In file included from include/linux/hardirq.h:11:
   In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1:
   In file included from include/asm-generic/hardirq.h:17:
   In file included from include/linux/irq.h:20:
   In file included from include/linux/io.h:13:
   In file included from arch/hexagon/include/asm/io.h:337:
   include/asm-generic/io.h:584:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
     584 |         __raw_writeb(value, PCI_IOBASE + addr);
         |                             ~~~~~~~~~~ ^
   include/asm-generic/io.h:594:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
     594 |         __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr);
         |                                                       ~~~~~~~~~~ ^
   include/asm-generic/io.h:604:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
     604 |         __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr);
         |                                                       ~~~~~~~~~~ ^
   In file included from drivers/media/platform/mxc/capture/ov5647_mipi.c:15:
   In file included from include/linux/i2c.h:19:
   In file included from include/linux/regulator/consumer.h:35:
   In file included from include/linux/suspend.h:5:
   In file included from include/linux/swap.h:9:
   In file included from include/linux/memcontrol.h:20:
   In file included from include/linux/mm.h:2168:
   include/linux/vmstat.h:522:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
     522 |         return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
         |                               ~~~~~~~~~~~ ^ ~~~
>> drivers/media/platform/mxc/capture/ov5647_mipi.c:319:12: error: incompatible function pointer types initializing 'int (*)(struct i2c_client *)' with an expression of type 'int (struct i2c_client *, const struct i2c_device_id *)' [-Wincompatible-function-pointer-types]
     319 |         .probe  = ov5647_probe,
         |                   ^~~~~~~~~~~~
   drivers/media/platform/mxc/capture/ov5647_mipi.c:320:12: error: incompatible function pointer types initializing 'void (*)(struct i2c_client *)' with an expression of type 'int (struct i2c_client *)' [-Wincompatible-function-pointer-types]
     320 |         .remove = ov5647_remove,
         |                   ^~~~~~~~~~~~~
   drivers/media/platform/mxc/capture/ov5647_mipi.c:1442:3: error: call to undeclared function 'pr_warning'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    1442 |                 pr_warning("Please assign pixel format, width and height.\n");
         |                 ^
   drivers/media/platform/mxc/capture/ov5647_mipi.c:1442:3: note: did you mean 'acpi_warning'?
   include/acpi/acpixf.h:912:5: note: 'acpi_warning' declared here
     912 |                                 acpi_warning(const char *module_name,
         |                                 ^
   include/acpi/acpixf.h:334:21: note: expanded from macro 'ACPI_MSG_DEPENDENT_RETURN_VOID'
     334 |         static ACPI_INLINE prototype {return;}
         |                            ^
   drivers/media/platform/mxc/capture/ov5647_mipi.c:1522:27: error: incompatible function pointer types initializing 'int (*)(struct v4l2_subdev *, struct v4l2_subdev_state *, struct v4l2_subdev_frame_size_enum *)' with an expression of type 'int (struct v4l2_subdev *, struct v4l2_subdev_pad_config *, struct v4l2_subdev_frame_size_enum *)' [-Wincompatible-function-pointer-types]
    1522 |         .enum_frame_size       = ov5647_enum_framesizes,
         |                                  ^~~~~~~~~~~~~~~~~~~~~~
   drivers/media/platform/mxc/capture/ov5647_mipi.c:1523:27: error: incompatible function pointer types initializing 'int (*)(struct v4l2_subdev *, struct v4l2_subdev_state *, struct v4l2_subdev_frame_interval_enum *)' with an expression of type 'int (struct v4l2_subdev *, struct v4l2_subdev_pad_config *, struct v4l2_subdev_frame_interval_enum *)' [-Wincompatible-function-pointer-types]
    1523 |         .enum_frame_interval   = ov5647_enum_frameintervals,
         |                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/media/platform/mxc/capture/ov5647_mipi.c:1524:27: error: incompatible function pointer types initializing 'int (*)(struct v4l2_subdev *, struct v4l2_subdev_state *, struct v4l2_subdev_mbus_code_enum *)' with an expression of type 'int (struct v4l2_subdev *, struct v4l2_subdev_pad_config *, struct v4l2_subdev_mbus_code_enum *)' [-Wincompatible-function-pointer-types]
    1524 |         .enum_mbus_code        = ov5647_enum_mbus_code,
         |                                  ^~~~~~~~~~~~~~~~~~~~~
   drivers/media/platform/mxc/capture/ov5647_mipi.c:1525:27: error: incompatible function pointer types initializing 'int (*)(struct v4l2_subdev *, struct v4l2_subdev_state *, struct v4l2_subdev_format *)' with an expression of type 'int (struct v4l2_subdev *, struct v4l2_subdev_pad_config *, struct v4l2_subdev_format *)' [-Wincompatible-function-pointer-types]
    1525 |         .set_fmt               = ov5647_set_fmt,
         |                                  ^~~~~~~~~~~~~~
   drivers/media/platform/mxc/capture/ov5647_mipi.c:1526:27: error: incompatible function pointer types initializing 'int (*)(struct v4l2_subdev *, struct v4l2_subdev_state *, struct v4l2_subdev_format *)' with an expression of type 'int (struct v4l2_subdev *, struct v4l2_subdev_pad_config *, struct v4l2_subdev_format *)' [-Wincompatible-function-pointer-types]
    1526 |         .get_fmt               = ov5647_get_fmt,
         |                                  ^~~~~~~~~~~~~~
   drivers/media/platform/mxc/capture/ov5647_mipi.c:1532:16: error: use of undeclared identifier 'ov5647_get_register'; did you mean 'ov5647_get_shutter'?
    1532 |         .g_register     = ov5647_get_register,
         |                           ^~~~~~~~~~~~~~~~~~~
         |                           ov5647_get_shutter
   drivers/media/platform/mxc/capture/ov5647_mipi.c:767:12: note: 'ov5647_get_shutter' declared here
     767 | static int ov5647_get_shutter(void)
         |            ^
   drivers/media/platform/mxc/capture/ov5647_mipi.c:1533:16: error: use of undeclared identifier 'ov5647_set_register'; did you mean 'ov5647_set_shutter'?
    1533 |         .s_register     = ov5647_set_register,
         |                           ^~~~~~~~~~~~~~~~~~~
         |                           ov5647_set_shutter
   drivers/media/platform/mxc/capture/ov5647_mipi.c:780:12: note: 'ov5647_set_shutter' declared here
     780 | static int ov5647_set_shutter(int shutter)
         |            ^
   drivers/media/platform/mxc/capture/ov5647_mipi.c:1532:16: error: incompatible function pointer types initializing 'int (*)(struct v4l2_subdev *, struct v4l2_dbg_register *)' with an expression of type 'int (void)' [-Wincompatible-function-pointer-types]
    1532 |         .g_register     = ov5647_get_register,
         |                           ^~~~~~~~~~~~~~~~~~~
   drivers/media/platform/mxc/capture/ov5647_mipi.c:1533:16: error: incompatible function pointer types initializing 'int (*)(struct v4l2_subdev *, const struct v4l2_dbg_register *)' with an expression of type 'int (int)' [-Wincompatible-function-pointer-types]
    1533 |         .s_register     = ov5647_set_register,
         |                           ^~~~~~~~~~~~~~~~~~~
   drivers/media/platform/mxc/capture/ov5647_mipi.c:1645:3: error: call to undeclared function 'pr_warning'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    1645 |                 pr_warning("camera ov5647_mipi is not found\n");
         |                 ^
   drivers/media/platform/mxc/capture/ov5647_mipi.c:1651:3: error: call to undeclared function 'pr_warning'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    1651 |                 pr_warning("camera ov5647_mipi is not found\n");
         |                 ^
   drivers/media/platform/mxc/capture/ov5647_mipi.c:1659:3: error: call to undeclared function 'pr_warning'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    1659 |                 pr_warning("camera ov5647 init failed\n");
         |                 ^
   7 warnings and 15 errors generated.


vim +319 drivers/media/platform/mxc/capture/ov5647_mipi.c

1fbc9a5cc7bd37 Robby Cai 2019-09-27  313  
1fbc9a5cc7bd37 Robby Cai 2019-09-27  314  static struct i2c_driver ov5647_i2c_driver = {
1fbc9a5cc7bd37 Robby Cai 2019-09-27  315  	.driver = {
1fbc9a5cc7bd37 Robby Cai 2019-09-27  316  		  .owner = THIS_MODULE,
1fbc9a5cc7bd37 Robby Cai 2019-09-27  317  		  .name  = "ov5647_mipi",
1fbc9a5cc7bd37 Robby Cai 2019-09-27  318  		  },
1fbc9a5cc7bd37 Robby Cai 2019-09-27 @319  	.probe  = ov5647_probe,
1fbc9a5cc7bd37 Robby Cai 2019-09-27  320  	.remove = ov5647_remove,
1fbc9a5cc7bd37 Robby Cai 2019-09-27  321  	.id_table = ov5647_id,
1fbc9a5cc7bd37 Robby Cai 2019-09-27  322  };
1fbc9a5cc7bd37 Robby Cai 2019-09-27  323  

:::::: The code at line 319 was first introduced by commit
:::::: 1fbc9a5cc7bd373cf32dc3f66bbadfc57000e43f media: capture: add mipi camera ov5647 driver

:::::: TO: Robby Cai <robby.cai@nxp.com>
:::::: CC: Dong Aisheng <aisheng.dong@nxp.com>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-04-28 16:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-28 16:07 [freescale-fslc:6.6-1.0.x-imx 5784/11728] drivers/media/platform/mxc/capture/ov5647_mipi.c:319:12: error: incompatible function pointer types initializing 'int (*)(struct i2c_client *)' with an expression of type 'int (struct i2c_client *, const struct i2c_device_id *)' kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.