[android-common:android16-6.12-kminext 5/5] arch/arm64/kvm/hyp_events.c:235:19: warning: no previous prototype for '__hyp_trace_find_event_name'
kernel test robot <[email protected]> Sat, 01 Aug 2026 01:17:04 +0800
| Newsgroups | dev.linux.lists.oe-kbuild-all |
|---|---|
| Message-ID | <[email protected]> |
Hi Vincent, FYI, the error/warning still remains. tree: https://android.googlesource.com/kernel/common android16-6.12-kminext head: d32bfdf6c3d809458c048ad6694ba52e9b6c7440 commit: 12aaf60a831904372fbd91490acdeb2c4ab3cf78 [5/5] ANDROID: KVM: arm64: Allow registration of pKVM module hyp events config: arm64-randconfig-004-20260731 (https://download.01.org/0day-ci/archive/20260801/[email protected]/config) compiler: aarch64-linux-gcc (GCC) 12.5.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260801/[email protected]/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 <[email protected]> | Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ All warnings (new ones prefixed by >>): >> arch/arm64/kvm/hyp_events.c:235:19: warning: no previous prototype for '__hyp_trace_find_event_name' [-Wmissing-prototypes] 235 | struct hyp_event *__hyp_trace_find_event_name(const char *name, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ >> arch/arm64/kvm/hyp_events.c:247:19: warning: no previous prototype for 'hyp_trace_find_event_name' [-Wmissing-prototypes] 247 | struct hyp_event *hyp_trace_find_event_name(const char *name) | ^~~~~~~~~~~~~~~~~~~~~~~~~ vim +/__hyp_trace_find_event_name +235 arch/arm64/kvm/hyp_events.c 231 232 #define nr_events(__start, __stop) \ 233 (((unsigned long)__stop - (unsigned long)__start) / sizeof(*__start)) 234 > 235 struct hyp_event *__hyp_trace_find_event_name(const char *name, 236 struct hyp_event *start, 237 struct hyp_event *end) 238 { 239 for (; start < end; start++) { 240 if (!strncmp(name, start->name, HYP_EVENT_NAME_MAX)) 241 return start; 242 } 243 244 return NULL; 245 } 246 > 247 struct hyp_event *hyp_trace_find_event_name(const char *name) 248 { 249 struct hyp_event_table *table; 250 struct hyp_event *event = 251 __hyp_trace_find_event_name(name, __hyp_events_start, 252 __hyp_events_end); 253 254 if (event) 255 return event; 256 257 rcu_read_lock(); 258 table = rcu_dereference(mod_event_tables.tables); 259 260 for (int i = 0; i < mod_event_tables.nr_tables; i++) { 261 struct hyp_event *end = table->start + table->nr_events; 262 263 event = __hyp_trace_find_event_name(name, table->start, end); 264 if (event) 265 break; 266 } 267 268 rcu_read_unlock(); 269 270 return event; 271 } 272 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki