Messages in this thread | | | Date | Wed, 11 Oct 2023 00:47:17 +0800 | From | kernel test robot <> | Subject | Re: [PATCH v2 2/3] regulator: userspace-consumer: Retrieve supplies from DT |
| |
Hi Naresh,
kernel test robot noticed the following build errors:
[auto build test ERROR on f9a1d31874c383f58bb4f89bfe79b764682cd026]
url: https://github.com/intel-lab-lkp/linux/commits/Naresh-Solanki/regulator-userspace-consumer-Retrieve-supplies-from-DT/20231004-201151 base: f9a1d31874c383f58bb4f89bfe79b764682cd026 patch link: https://lore.kernel.org/r/20231004121010.1192344-2-naresh.solanki%409elements.com patch subject: [PATCH v2 2/3] regulator: userspace-consumer: Retrieve supplies from DT config: x86_64-buildonly-randconfig-003-20231010 (https://download.01.org/0day-ci/archive/20231011/202310110043.uMSq3kAw-lkp@intel.com/config) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231011/202310110043.uMSq3kAw-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/202310110043.uMSq3kAw-lkp@intel.com/
All errors (new ones prefixed by >>):
drivers/regulator/userspace-consumer.c: In function 'get_num_supplies': drivers/regulator/userspace-consumer.c:139:9: error: implicit declaration of function 'for_each_property_of_node'; did you mean 'for_each_child_of_node'? [-Werror=implicit-function-declaration] 139 | for_each_property_of_node(pdev->dev.of_node, prop) { | ^~~~~~~~~~~~~~~~~~~~~~~~~ | for_each_child_of_node drivers/regulator/userspace-consumer.c:139:59: error: expected ';' before '{' token 139 | for_each_property_of_node(pdev->dev.of_node, prop) { | ^~ | ; drivers/regulator/userspace-consumer.c:137:13: warning: unused variable 'num_supplies' [-Wunused-variable] 137 | int num_supplies = 0; | ^~~~~~~~~~~~ >> drivers/regulator/userspace-consumer.c:144:1: error: no return statement in function returning non-void [-Werror=return-type] 144 | } | ^ drivers/regulator/userspace-consumer.c: In function 'regulator_userspace_consumer_probe': drivers/regulator/userspace-consumer.c:170:67: error: expected ';' before '{' token 170 | for_each_property_of_node(pdev->dev.of_node, prop) { | ^~ | ; drivers/regulator/userspace-consumer.c: At top level: drivers/regulator/userspace-consumer.c:121:15: warning: 'prop_supply_name' defined but not used [-Wunused-function] 121 | static size_t prop_supply_name(char *prop_name) | ^~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors
vim +144 drivers/regulator/userspace-consumer.c
133 134 static int get_num_supplies(struct platform_device *pdev) 135 { 136 struct property *prop; 137 int num_supplies = 0; 138 139 for_each_property_of_node(pdev->dev.of_node, prop) { 140 if (prop_supply_name(prop->name)) 141 num_supplies++; 142 } 143 return num_supplies; > 144 } 145
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
| |