llvm.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [intel-tdx:guest-kexec 4/7] drivers/firmware/efi/efi.c:643: warning: Function parameter or member 'unaccepted' not described in 'reserve_unaccepted'
@ 2023-08-17 12:45 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-08-17 12:45 UTC (permalink / raw)
  To: Kirill A. Shutemov; +Cc: llvm, oe-kbuild-all

tree:   https://github.com/intel/tdx.git guest-kexec
head:   c3817f480d1101b9c14987e84b6b3abc70c67a2d
commit: 61db94f763a6bf583ab264342115605ee8e33173 [4/7] efi: Make sure unaccepted table is mapped in crashkernel case
config: riscv-randconfig-r036-20230817 (https://download.01.org/0day-ci/archive/20230817/202308172004.ONqNOmsa-lkp@intel.com/config)
compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07)
reproduce: (https://download.01.org/0day-ci/archive/20230817/202308172004.ONqNOmsa-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/202308172004.ONqNOmsa-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/firmware/efi/efi.c:643: warning: Function parameter or member 'unaccepted' not described in 'reserve_unaccepted'


vim +643 drivers/firmware/efi/efi.c

   625	
   626	/**
   627	 * reserve_unaccepted - Map and reserve unaccepted configuration table
   628	 *
   629	 * memblock_add() makes sure that the table is mapped in direct mapping. During
   630	 * normal boot it happens automatically because the table is allocated from
   631	 * usable memory. But during crashkernel boot only memory specifically
   632	 * reserved for crash scenario is mapped. memblock_add() forces the table to be
   633	 * mapped in crashkernel case.
   634	 *
   635	 * Align the range to the nearest page boarders. Ranges smaller than page size
   636	 * are not going to be mapped.
   637	 *
   638	 * memblock_reserve() makes sure that future allocations will not touch the
   639	 * table.
   640	 */
   641	
   642	static __init void reserve_unaccepted(struct efi_unaccepted_memory *unaccepted)
 > 643	{
   644		phys_addr_t start, size;
   645	
   646		start = PAGE_ALIGN_DOWN(efi.unaccepted);
   647		size = PAGE_ALIGN(sizeof(*unaccepted) + unaccepted->size);
   648	
   649		memblock_add(start, size);
   650		memblock_reserve(start, size);
   651	}
   652	

-- 
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:[~2023-08-17 12:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-17 12:45 [intel-tdx:guest-kexec 4/7] drivers/firmware/efi/efi.c:643: warning: Function parameter or member 'unaccepted' not described in 'reserve_unaccepted' 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;
as well as URLs for NNTP newsgroup(s).