Re: [PATCH v4 02/10] property: Add device_get_child_node_count_named()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Matti,

kernel test robot noticed the following build warnings:

[auto build test WARNING on 0ad2507d5d93f39619fc42372c347d6006b64319]

url:    https://github.com/intel-lab-lkp/linux/commits/Matti-Vaittinen/dt-bindings-ROHM-BD79124-ADC-GPO/20250225-063520
base:   0ad2507d5d93f39619fc42372c347d6006b64319
patch link:    https://lore.kernel.org/r/29ec24f1498392cafbecc0e0c0e23e1ce3289565.1740421248.git.mazziesaccount%40gmail.com
patch subject: [PATCH v4 02/10] property: Add device_get_child_node_count_named()
config: i386-buildonly-randconfig-002-20250227 (https://download.01.org/0day-ci/archive/20250228/202502281336.CipGtKOJ-lkp@xxxxxxxxx/config)
compiler: gcc-11 (Debian 11.3.0-12) 11.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250228/202502281336.CipGtKOJ-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/202502281336.CipGtKOJ-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

>> drivers/base/property.c:964: warning: Function parameter or struct member 'name' not described in 'device_get_child_node_count_named'


vim +964 drivers/base/property.c

   947	
   948	/**
   949	 * device_get_child_node_count_named - number of child nodes with given name
   950	 *
   951	 * Scan device's child nodes and find all the nodes with a specific name and
   952	 * return the number of found nodes. Potential '@number' -ending for scanned
   953	 * names is ignored. Eg,
   954	 * device_get_child_node_count(dev, "channel");
   955	 * would match all the nodes:
   956	 * channel { }, channel@0 {}, channel@0xabba {}...
   957	 *
   958	 * @dev: Device to count the child nodes for
   959	 *
   960	 * Return: the number of child nodes with a matching name for a given device.
   961	 */
   962	unsigned int device_get_child_node_count_named(const struct device *dev,
   963						       const char *name)
 > 964	{
   965		struct fwnode_handle *child;
   966		unsigned int count = 0;
   967	
   968		device_for_each_child_node(dev, child)
   969			if (fwnode_name_eq(child, "channel"))
   970				count++;
   971	
   972		return count;
   973	}
   974	EXPORT_SYMBOL_GPL(device_get_child_node_count_named);
   975	

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




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux