[acrn:acrn_6.1.80 31/32] drivers/virt/acrn/hvlog.c:226: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst

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

 



tree:   https://github.com/projectacrn/acrn-kernel acrn_6.1.80
head:   2355d104a177c9f9bd98729076fe20f1bf0d03f3
commit: f528146c92c545c17a21206b87e70c7087247f88 [31/32] virt: acrn: add acrn hypervisor log back
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20240608/202406081513.h0su7fOy-lkp@xxxxxxxxx/config)
compiler: clang version 18.1.5 (https://github.com/llvm/llvm-project 617a15a9eac96088ae5e9134248d8236e34b91b1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240608/202406081513.h0su7fOy-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/202406081513.h0su7fOy-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

>> drivers/virt/acrn/hvlog.c:226: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
    * base0 = hvlog_buf_phyaddr_base;


vim +226 drivers/virt/acrn/hvlog.c

   224	
   225	/**
 > 226	 * base0 = hvlog_buf_phyaddr_base;
   227	 * base1 = hvlog_buf_phyaddr_base + (hvlog_buf_size >> 1)
   228	 * if there is valid data in base0, cur_logbuf = base1, last_logbuf = base0.
   229	 * if there is valid data in base1, cur_logbuf = base0, last_logbuf = base1.
   230	 * if there is no valid data both in base0 and base1, cur_logbuf = base0,
   231	 * last_logbuf = 0.
   232	 */
   233	static void assign_hvlog_buf_base(uint64_t *cur_logbuf, uint64_t *last_logbuf)
   234	{
   235		uint64_t base0, base1, offset;
   236		uint32_t ele_num, size;
   237		uint16_t pcpu_id;
   238		void *sbuf;
   239	
   240		base0 = hvlog_buf_phyaddr_base;
   241		base1 = hvlog_buf_phyaddr_base + (hvlog_buf_size >> 1);
   242		size = (hvlog_buf_size >> 1) / pcpu_nr;
   243		ele_num = (size - SBUF_HEAD_SIZE) / LOG_ENTRY_SIZE;
   244	
   245		foreach_cpu(pcpu_id, pcpu_nr) {
   246			offset = (base0 + (size * pcpu_id)) - hvlog_buf_phyaddr_base;
   247			sbuf = hvlog_buf_virtaddr_base + offset;
   248			if (sbuf_check_valid(ele_num, LOG_ENTRY_SIZE, sbuf)) {
   249				*last_logbuf = base0;
   250				*cur_logbuf = base1;
   251				return;
   252			}
   253		}
   254	
   255		foreach_cpu(pcpu_id, pcpu_nr) {
   256			offset = (base1 + (size * pcpu_id)) - hvlog_buf_phyaddr_base;
   257			sbuf = hvlog_buf_virtaddr_base + offset;
   258			if (sbuf_check_valid(ele_num, LOG_ENTRY_SIZE, sbuf)) {
   259				*last_logbuf = base1;
   260				*cur_logbuf = base0;
   261				return;
   262			}
   263		}
   264	
   265		/* No last logbuf found */
   266		*last_logbuf = 0;
   267		*cur_logbuf = base0;
   268	}
   269	

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




[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux