Content-Type: multipart/mixed; boundary="===============8388177966565944137==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: Re: [PATCH v6 2/2] Driver for ON Semi AR0521 camera sensor Date: Sat, 01 Jan 2022 07:14:23 +0800 Message-ID: <202201010737.V5A5o9x5-lkp@intel.com> In-Reply-To: List-Id: --===============8388177966565944137== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi "Krzysztof, I love your patch! Yet something to improve: [auto build test ERROR on media-tree/master] [also build test ERROR on linus/master v5.16-rc7 next-20211224] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Krzysztof-Ha-asa/On-Semi-A= R0521-sensor-driver/20211223-150758 base: git://linuxtv.org/media_tree.git master config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/202201= 01/202201010737.V5A5o9x5-lkp(a)intel.com/config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 reproduce (this is a W=3D1 build): # https://github.com/0day-ci/linux/commit/664482ab74a2331a7a7ead925= 6b0455cfc3334c7 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Krzysztof-Ha-asa/On-Semi-AR0521-se= nsor-driver/20211223-150758 git checkout 664482ab74a2331a7a7ead9256b0455cfc3334c7 # save the config file to linux build tree mkdir build_dir make W=3D1 O=3Dbuild_dir ARCH=3Dx86_64 SHELL=3D/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): In file included from include/linux/device.h:25, from include/linux/pm_runtime.h:11, from drivers/media/i2c/ar0521.c:10: >> drivers/media/i2c/ar0521.c:1029:21: error: initialization of 'int (*)(st= ruct device *)' from incompatible pointer type 'void (*)(struct device *)' = [-Werror=3Dincompatible-pointer-types] 1029 | SET_RUNTIME_PM_OPS(ar0521_power_off, ar0521_power_on, NULL) | ^~~~~~~~~~~~~~~~ include/linux/pm.h:341:21: note: in definition of macro 'SET_RUNTIME_PM_= OPS' 341 | .runtime_suspend =3D suspend_fn, \ | ^~~~~~~~~~ drivers/media/i2c/ar0521.c:1029:21: note: (near initialization for 'ar05= 21_pm_ops.runtime_suspend') 1029 | SET_RUNTIME_PM_OPS(ar0521_power_off, ar0521_power_on, NULL) | ^~~~~~~~~~~~~~~~ include/linux/pm.h:341:21: note: in definition of macro 'SET_RUNTIME_PM_= OPS' 341 | .runtime_suspend =3D suspend_fn, \ | ^~~~~~~~~~ cc1: some warnings being treated as errors vim +1029 drivers/media/i2c/ar0521.c 1026 = 1027 static const struct dev_pm_ops ar0521_pm_ops =3D { 1028 SET_SYSTEM_SLEEP_PM_OPS(ar0521_suspend, ar0521_resume) > 1029 SET_RUNTIME_PM_OPS(ar0521_power_off, ar0521_power_on, NULL) 1030 }; 1031 static const struct of_device_id ar0521_dt_ids[] =3D { 1032 {.compatible =3D "onnn,ar0521"}, 1033 {} 1034 }; 1035 MODULE_DEVICE_TABLE(of, ar0521_dt_ids); 1036 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============8388177966565944137==--