All of lore.kernel.org
 help / color / mirror / Atom feed
* [android-common:android15-6.6 6/6] arch/arm64/kvm/hyp/nvhe/trace.c:174:15: warning: no previous prototype for 'rb_event_size'
@ 2026-12-03  0:44 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-12-03  0:44 UTC (permalink / raw)
  To: cros-kernel-buildreports; +Cc: oe-kbuild-all

Hi Vincent,

FYI, the error/warning still remains.

tree:   https://android.googlesource.com/kernel/common android15-6.6
head:   a88711805158e768eb3ff5d1a0a45216fe7c8847
commit: 794f874404060e7e14863872950b53e6a7aa9b68 [6/6] ANDROID: KVM: arm64: Add tracing support for the nVHE hyp
config: arm64-randconfig-r2110-20261202 (https://download.01.org/0day-ci/archive/20261203/20261203013710.3n9ImS2d-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 13.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261203/20261203013710.3n9ImS2d-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/20261203013710.3n9ImS2d-lkp@intel.com/

All warnings (new ones prefixed by >>):

   arch/arm64/kvm/hyp/nvhe/trace.c: In function 'rb_move_tail':
   arch/arm64/kvm/hyp/nvhe/trace.c:134:56: warning: variable 'new_head' set but not used [-Wunused-but-set-variable]
     134 |         struct hyp_buffer_page *tail_page, *new_tail, *new_head;
         |                                                        ^~~~~~~~
   arch/arm64/kvm/hyp/nvhe/trace.c: At top level:
>> arch/arm64/kvm/hyp/nvhe/trace.c:174:15: warning: no previous prototype for 'rb_event_size' [-Wmissing-prototypes]
     174 | unsigned long rb_event_size(unsigned long length)
         |               ^~~~~~~~~~~~~


vim +/rb_event_size +174 arch/arm64/kvm/hyp/nvhe/trace.c

   130	
   131	static struct hyp_buffer_page *
   132	rb_move_tail(struct hyp_rb_per_cpu *cpu_buffer)
   133	{
 > 134		struct hyp_buffer_page *tail_page, *new_tail, *new_head;
   135	
   136		tail_page = cpu_buffer->tail_page;
   137		new_tail = rb_next_page(tail_page);
   138	again:
   139		/*
   140		 * We caught the reader ... Let's try to move the head page.
   141		 * The writer can only rely on ->next links to check if this is head.
   142		 */
   143		if ((unsigned long)tail_page->list.next & HYP_RB_PAGE_HEAD) {
   144			/* The reader moved the head in between */
   145			if (!rb_set_flag(tail_page, HYP_RB_PAGE_UPDATE))
   146				goto again;
   147	
   148			WRITE_ONCE(cpu_buffer->meta->overrun,
   149				   cpu_buffer->meta->overrun + new_tail->entries);
   150			WRITE_ONCE(cpu_buffer->meta->pages_lost,
   151				   cpu_buffer->meta->pages_lost + 1);
   152	
   153			/* Move the head */
   154			rb_set_flag(new_tail, HYP_RB_PAGE_HEAD);
   155	
   156			/* The new head is in place, reset the update flag */
   157			rb_set_flag(tail_page, 0);
   158	
   159			new_head = rb_next_page(new_tail);
   160		}
   161	
   162		local_set(&new_tail->page->commit, 0);
   163	
   164		new_tail->write = 0;
   165		new_tail->entries = 0;
   166	
   167		WRITE_ONCE(cpu_buffer->meta->pages_touched,
   168			   cpu_buffer->meta->pages_touched + 1);
   169		cpu_buffer->tail_page = new_tail;
   170	
   171		return new_tail;
   172	}
   173	
 > 174	unsigned long rb_event_size(unsigned long length)
   175	{
   176		struct ring_buffer_event *event;
   177	
   178		return length + RB_EVNT_HDR_SIZE + sizeof(event->array[0]);
   179	}
   180	

-- 
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:[~2026-12-03  0:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-03  0:44 [android-common:android15-6.6 6/6] arch/arm64/kvm/hyp/nvhe/trace.c:174:15: warning: no previous prototype for 'rb_event_size' kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.