From: kernel test robot <lkp@intel.com>
To: cros-kernel-buildreports@googlegroups.com
Cc: oe-kbuild-all@lists.linux.dev
Subject: [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?
Date: Sun, 20 Sep 2026 18:23:52 +0800 [thread overview]
Message-ID: <202609201851.TmrUUTJj-lkp@intel.com> (raw)
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
next reply other threads:[~2026-09-20 10:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-20 10:23 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-04-09 19:44 [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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202609201851.TmrUUTJj-lkp@intel.com \
--to=lkp@intel.com \
--cc=cros-kernel-buildreports@googlegroups.com \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.