* [android-common:android16-6.12 1/1] arch/arm64/kvm/hyp_events.c:235:18: sparse: sparse: symbol '__hyp_trace_find_event_name' was not declared. Should it be static?
@ 2025-04-09 19:44 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2025-04-09 19:44 UTC (permalink / raw)
To: cros-kernel-buildreports; +Cc: oe-kbuild-all
tree: https://android.googlesource.com/kernel/common android16-6.12
head: 234a951b246d8500f6b621fe23c238bdc2afcef5
commit: 12aaf60a831904372fbd91490acdeb2c4ab3cf78 [1/1] ANDROID: KVM: arm64: Allow registration of pKVM module hyp events
config: arm64-randconfig-r131-20250409 (https://download.01.org/0day-ci/archive/20250410/202504100339.vqr59ZkW-lkp@intel.com/config)
compiler: clang version 21.0.0git (https://github.com/llvm/llvm-project 92c93f5286b9ff33f27ff694d2dc33da1c07afdd)
reproduce: (https://download.01.org/0day-ci/archive/20250410/202504100339.vqr59ZkW-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/202504100339.vqr59ZkW-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
arch/arm64/kvm/hyp_events.c: note: in included file (through arch/arm64/include/asm/kvm_define_hypevents.h):
arch/arm64/include/asm/kvm_hypevents.h:14:1: sparse: sparse: symbol 'hyp_event_hyp_enter' was not declared. Should it be static?
arch/arm64/include/asm/kvm_hypevents.h:23:1: sparse: sparse: symbol 'hyp_event_hyp_exit' was not declared. Should it be static?
arch/arm64/include/asm/kvm_hypevents.h:32:1: sparse: sparse: symbol 'hyp_event_host_hcall' was not declared. Should it be static?
arch/arm64/include/asm/kvm_hypevents.h:46:1: sparse: sparse: symbol 'hyp_event_host_smc' was not declared. Should it be static?
arch/arm64/include/asm/kvm_hypevents.h:61:1: sparse: sparse: symbol 'hyp_event_host_mem_abort' was not declared. Should it be static?
arch/arm64/include/asm/kvm_hypevents.h:75:1: sparse: sparse: symbol 'hyp_event___hyp_printk' was not declared. Should it be static?
>> arch/arm64/kvm/hyp_events.c:235:18: sparse: sparse: symbol '__hyp_trace_find_event_name' was not declared. Should it be static?
arch/arm64/kvm/hyp_events.c:258:17: sparse: sparse: incompatible types in comparison expression (different address spaces):
arch/arm64/kvm/hyp_events.c:258:17: sparse: struct hyp_event_table [noderef] __rcu *
arch/arm64/kvm/hyp_events.c:258:17: sparse: struct hyp_event_table *
>> arch/arm64/kvm/hyp_events.c:247:18: sparse: sparse: symbol 'hyp_trace_find_event_name' was not declared. Should it be static?
arch/arm64/kvm/hyp_events.c:284:25: sparse: sparse: incompatible types in comparison expression (different address spaces):
arch/arm64/kvm/hyp_events.c:284:25: sparse: struct hyp_event_table [noderef] __rcu *
arch/arm64/kvm/hyp_events.c:284:25: sparse: struct hyp_event_table *
arch/arm64/kvm/hyp_events.c:451:18: sparse: sparse: incompatible types in comparison expression (different address spaces):
arch/arm64/kvm/hyp_events.c:451:18: sparse: struct hyp_event_table [noderef] __rcu *
arch/arm64/kvm/hyp_events.c:451:18: sparse: struct hyp_event_table *
arch/arm64/kvm/hyp_events.c:451:18: sparse: sparse: incompatible types in comparison expression (different address spaces):
arch/arm64/kvm/hyp_events.c:451:18: sparse: struct hyp_event_table [noderef] __rcu *
arch/arm64/kvm/hyp_events.c:451:18: sparse: struct hyp_event_table *
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* [android-common:android16-6.12 1/1] arch/arm64/kvm/hyp_events.c:235:18: sparse: sparse: symbol '__hyp_trace_find_event_name' was not declared. Should it be static?
@ 2026-09-20 10:23 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-09-20 10:23 UTC (permalink / raw)
To: cros-kernel-buildreports; +Cc: oe-kbuild-all
tree: https://android.googlesource.com/kernel/common android16-6.12
head: fb15c16e04b24c94825fe17e483d325c4ac239a8
commit: 12aaf60a831904372fbd91490acdeb2c4ab3cf78 [1/1] ANDROID: KVM: arm64: Allow registration of pKVM module hyp events
config: arm64-randconfig-r1301-20260919 (https://download.01.org/0day-ci/archive/20260920/202609201851.TmrUUTJj-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 8.5.0
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260920/202609201851.TmrUUTJj-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/202609201851.TmrUUTJj-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
arch/arm64/kvm/hyp_events.c: note: in included file (through arch/arm64/include/asm/kvm_define_hypevents.h):
arch/arm64/include/asm/kvm_hypevents.h:14:1: sparse: sparse: symbol 'hyp_event_hyp_enter' was not declared. Should it be static?
arch/arm64/include/asm/kvm_hypevents.h:23:1: sparse: sparse: symbol 'hyp_event_hyp_exit' was not declared. Should it be static?
arch/arm64/include/asm/kvm_hypevents.h:32:1: sparse: sparse: symbol 'hyp_event_host_hcall' was not declared. Should it be static?
arch/arm64/include/asm/kvm_hypevents.h:46:1: sparse: sparse: symbol 'hyp_event_host_smc' was not declared. Should it be static?
arch/arm64/include/asm/kvm_hypevents.h:61:1: sparse: sparse: symbol 'hyp_event_host_mem_abort' was not declared. Should it be static?
arch/arm64/include/asm/kvm_hypevents.h:75:1: sparse: sparse: symbol 'hyp_event___hyp_printk' was not declared. Should it be static?
>> arch/arm64/kvm/hyp_events.c:235:18: sparse: sparse: symbol '__hyp_trace_find_event_name' was not declared. Should it be static?
arch/arm64/kvm/hyp_events.c:258:17: sparse: sparse: incompatible types in comparison expression (different address spaces):
arch/arm64/kvm/hyp_events.c:258:17: sparse: struct hyp_event_table [noderef] __rcu *
arch/arm64/kvm/hyp_events.c:258:17: sparse: struct hyp_event_table *
>> arch/arm64/kvm/hyp_events.c:247:18: sparse: sparse: symbol 'hyp_trace_find_event_name' was not declared. Should it be static?
arch/arm64/kvm/hyp_events.c:284:25: sparse: sparse: incompatible types in comparison expression (different address spaces):
arch/arm64/kvm/hyp_events.c:284:25: sparse: struct hyp_event_table [noderef] __rcu *
arch/arm64/kvm/hyp_events.c:284:25: sparse: struct hyp_event_table *
arch/arm64/kvm/hyp_events.c:451:18: sparse: sparse: incompatible types in comparison expression (different address spaces):
arch/arm64/kvm/hyp_events.c:451:18: sparse: struct hyp_event_table [noderef] __rcu *
arch/arm64/kvm/hyp_events.c:451:18: sparse: struct hyp_event_table *
arch/arm64/kvm/hyp_events.c:451:18: sparse: sparse: incompatible types in comparison expression (different address spaces):
arch/arm64/kvm/hyp_events.c:451:18: sparse: struct hyp_event_table [noderef] __rcu *
arch/arm64/kvm/hyp_events.c:451:18: sparse: struct hyp_event_table *
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-09-20 10:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-20 10:23 [android-common:android16-6.12 1/1] arch/arm64/kvm/hyp_events.c:235:18: sparse: sparse: symbol '__hyp_trace_find_event_name' was not declared. Should it be static? kernel test robot
-- strict thread matches above, loose matches on Subject: below --
2025-04-09 19:44 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.