Re: [PATCH 2/9] soc: samsung: exynos-pmu: Add exynos_pmu_update/read/write APIs and SoC quirks

From: kernel test robot
Date: Fri Jan 26 2024 - 18:07:53 EST


Hi Peter,

kernel test robot noticed the following build errors:

[auto build test ERROR on krzk/for-next]
[also build test ERROR on robh/for-next soc/for-next linus/master v6.8-rc1 next-20240125]
[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#_base_tree_information]

url: https://github.com/intel-lab-lkp/linux/commits/Peter-Griffin/dt-bindings-watchdog-samsung-wdt-deprecate-samsung-syscon-phandle/20240123-070052
base: https://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux.git for-next
patch link: https://lore.kernel.org/r/20240122225710.1952066-3-peter.griffin%40linaro.org
patch subject: [PATCH 2/9] soc: samsung: exynos-pmu: Add exynos_pmu_update/read/write APIs and SoC quirks
config: x86_64-buildonly-randconfig-006-20240126 (https://download.01.org/0day-ci/archive/20240127/202401270633.VorEna6q-lkp@xxxxxxxxx/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240127/202401270633.VorEna6q-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202401270633.VorEna6q-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

In file included from drivers/pinctrl/samsung/pinctrl-exynos.c:27:
>> include/linux/soc/samsung/exynos-pmu.h:38:1: error: expected identifier or '('
38 | {
| ^
include/linux/soc/samsung/exynos-pmu.h:44:1: error: expected identifier or '('
44 | {
| ^
>> include/linux/soc/samsung/exynos-pmu.h:50:9: error: incompatible pointer to integer conversion returning 'void *' from a function with result type 'int' [-Wint-conversion]
50 | return ERR_PTR(-ENODEV);
| ^~~~~~~~~~~~~~~~
include/linux/soc/samsung/exynos-pmu.h:55:9: error: incompatible pointer to integer conversion returning 'void *' from a function with result type 'int' [-Wint-conversion]
55 | return ERR_PTR(-ENODEV);
| ^~~~~~~~~~~~~~~~
4 errors generated.


vim +38 include/linux/soc/samsung/exynos-pmu.h

35
36 static inline int exynos_pmu_update_bits(unsigned int offset, unsigned int mask,
37 unsigned int val);
> 38 {
39 return ERR_PTR(-ENODEV);
40 }
41
42 static inline int exynos_pmu_update(unsigned int offset, unsigned int mask,
43 unsigned int val);
44 {
45 return ERR_PTR(-ENODEV);
46 }
47
48 static inline int exynos_pmu_write(unsigned int offset, unsigned int val)
49 {
> 50 return ERR_PTR(-ENODEV);
51 }
52

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