Re: [PATCH v5] mm/memblock: Add memblock_alloc_or_panic interface

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

 



Hi Guo,

kernel test robot noticed the following build warnings:

[auto build test WARNING on akpm-mm/mm-everything]

url:    https://github.com/intel-lab-lkp/linux/commits/Guo-Weikang/mm-memblock-Add-memblock_alloc_or_panic-interface/20241222-110513
base:   https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything
patch link:    https://lore.kernel.org/r/20241222030331.2704579-1-guoweikang.kernel%40gmail.com
patch subject: [PATCH v5] mm/memblock: Add memblock_alloc_or_panic interface
config: arm-randconfig-002-20241222 (https://download.01.org/0day-ci/archive/20241222/202412221259.JuGNAUCq-lkp@xxxxxxxxx/config)
compiler: clang version 15.0.7 (https://github.com/llvm/llvm-project 8dfdcc7b7bf66834a761bd8de445840ef68e4d1a)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241222/202412221259.JuGNAUCq-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/202412221259.JuGNAUCq-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

>> mm/memblock.c:1706: warning: Function parameter or struct member 'func' not described in '__memblock_alloc_or_panic'
>> mm/memblock.c:1706: warning: Excess function parameter 'fuc' description in '__memblock_alloc_or_panic'


vim +1706 mm/memblock.c

  1693	
  1694	/**
  1695	 * __memblock_alloc_or_panic - Try to allocate memory and panic on failure
  1696	 * @size: size of memory block to be allocated in bytes
  1697	 * @align: alignment of the region and block's size
  1698	 * @fuc: caller func name
  1699	 *
  1700	 * This function attempts to allocate memory using memblock_alloc,
  1701	 * and in case of failure, it calls panic with the formatted message.
  1702	 * This function should not be used directly, please use the macro memblock_alloc_or_panic.
  1703	 */
  1704	void *__init __memblock_alloc_or_panic(phys_addr_t size, phys_addr_t align,
  1705					       const char *func)
> 1706	{
  1707		void *addr = memblock_alloc(size, align);
  1708	
  1709		if (unlikely(!addr))
  1710			panic("%s: Failed to allocate %pap bytes\n", func, &size);
  1711		return addr;
  1712	}
  1713	

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




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux