Re: [PATCH 4/4] power: supply: hwmon: move interface to private header

From: kernel test robot
Date: Mon Oct 07 2024 - 09:20:05 EST


Hi Thomas,

kernel test robot noticed the following build errors:

[auto build test ERROR on 27cc6fdf720183dce1dbd293483ec5a9cb6b595e]

url: https://github.com/intel-lab-lkp/linux/commits/Thomas-Wei-schuh/power-supply-core-use-device-mutex-wrappers/20241005-181114
base: 27cc6fdf720183dce1dbd293483ec5a9cb6b595e
patch link: https://lore.kernel.org/r/20241005-power-supply-cleanups-v1-4-45303b2d0a4d%40weissschuh.net
patch subject: [PATCH 4/4] power: supply: hwmon: move interface to private header
config: x86_64-randconfig-003-20241007 (https://download.01.org/0day-ci/archive/20241007/202410072120.3jlD28CJ-lkp@xxxxxxxxx/config)
compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241007/202410072120.3jlD28CJ-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/202410072120.3jlD28CJ-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

In file included from drivers/power/supply/power_supply_hwmon.c:12:
>> drivers/power/supply/power_supply.h:41:20: error: redefinition of 'power_supply_update_leds'
41 | static inline void power_supply_update_leds(struct power_supply *psy) {}
| ^
drivers/power/supply/power_supply.h:41:20: note: previous definition is here
41 | static inline void power_supply_update_leds(struct power_supply *psy) {}
| ^
In file included from drivers/power/supply/power_supply_hwmon.c:12:
>> drivers/power/supply/power_supply.h:42:19: error: redefinition of 'power_supply_create_triggers'
42 | static inline int power_supply_create_triggers(struct power_supply *psy)
| ^
drivers/power/supply/power_supply.h:42:19: note: previous definition is here
42 | static inline int power_supply_create_triggers(struct power_supply *psy)
| ^
In file included from drivers/power/supply/power_supply_hwmon.c:12:
>> drivers/power/supply/power_supply.h:44:20: error: redefinition of 'power_supply_remove_triggers'
44 | static inline void power_supply_remove_triggers(struct power_supply *psy) {}
| ^
drivers/power/supply/power_supply.h:44:20: note: previous definition is here
44 | static inline void power_supply_remove_triggers(struct power_supply *psy) {}
| ^
3 errors generated.


vim +/power_supply_update_leds +41 drivers/power/supply/power_supply.h

4a11b59d828366 drivers/power/power_supply.h Anton Vorontsov 2007-05-04 40
4a11b59d828366 drivers/power/power_supply.h Anton Vorontsov 2007-05-04 @41 static inline void power_supply_update_leds(struct power_supply *psy) {}
4a11b59d828366 drivers/power/power_supply.h Anton Vorontsov 2007-05-04 @42 static inline int power_supply_create_triggers(struct power_supply *psy)
4a11b59d828366 drivers/power/power_supply.h Anton Vorontsov 2007-05-04 43 { return 0; }
4a11b59d828366 drivers/power/power_supply.h Anton Vorontsov 2007-05-04 @44 static inline void power_supply_remove_triggers(struct power_supply *psy) {}
4a11b59d828366 drivers/power/power_supply.h Anton Vorontsov 2007-05-04 45

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