mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* drivers/hv/channel.c:514: warning: Function parameter or struct member 'size' not described in 'request_arr_init'
@ 2025-01-06  7:10 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-01-06  7:10 UTC (permalink / raw)
  To: Andres Beltran
  Cc: oe-kbuild-all, linux-kernel, Wei Liu, Andrea Parri (Microsoft),
	Michael Kelley

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   9d89551994a430b50c4fffcb1e617a057fa76e20
commit: e8b7db38449ac5b950a3f00519171c4be3e226ff Drivers: hv: vmbus: Add vmbus_requestor data structure for VMBus hardening
date:   4 years, 2 months ago
config: x86_64-randconfig-002-20241001 (https://download.01.org/0day-ci/archive/20250106/202501061551.i3MYP1v7-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/20250106/202501061551.i3MYP1v7-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/202501061551.i3MYP1v7-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/hv/channel.c:514: warning: Function parameter or struct member 'size' not described in 'request_arr_init'


vim +514 drivers/hv/channel.c

   505	
   506	/**
   507	 * request_arr_init - Allocates memory for the requestor array. Each slot
   508	 * keeps track of the next available slot in the array. Initially, each
   509	 * slot points to the next one (as in a Linked List). The last slot
   510	 * does not point to anything, so its value is U64_MAX by default.
   511	 * @size The size of the array
   512	 */
   513	static u64 *request_arr_init(u32 size)
 > 514	{
   515		int i;
   516		u64 *req_arr;
   517	
   518		req_arr = kcalloc(size, sizeof(u64), GFP_KERNEL);
   519		if (!req_arr)
   520			return NULL;
   521	
   522		for (i = 0; i < size - 1; i++)
   523			req_arr[i] = i + 1;
   524	
   525		/* Last slot (no more available slots) */
   526		req_arr[i] = U64_MAX;
   527	
   528		return req_arr;
   529	}
   530	

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-01-06  7:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-01-06  7:10 drivers/hv/channel.c:514: warning: Function parameter or struct member 'size' not described in 'request_arr_init' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®