arch/arm64/kvm/hyp/nvhe/trace.c:96:46: sparse: sparse: Using plain integer as NULL pointer
kernel test robot <[email protected]>
| Newsgroups | dev.linux.lists.oe-kbuild |
|---|---|
| Message-ID | <[email protected]> |
:::::: :::::: Manual check reason: "only suspicious fbc files changed" :::::: BCC: [email protected] CC: [email protected] CC: [email protected] TO: Vincent Donnefort <[email protected]> CC: Marc Zyngier <[email protected]> Hi Vincent, First bad commit (maybe != root cause): tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 2f1baf1fc8929e6c48370be543ad028ac7ad4131 commit: ce6a2badf58170bcf73489cd73981bb5775c1e22 KVM: arm64: Fix out-of-tree build for nVHE/pKVM tracing date: 5 months ago :::::: branch date: 16 hours ago :::::: commit date: 5 months ago config: arm64-randconfig-r133-20260814 (https://download.01.org/0day-ci/archive/20260814/[email protected]/config) compiler: aarch64-linux-gcc (GCC) 11.5.0 sparse: v0.6.5-rc1 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260814/[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 | Fixes: ce6a2badf581 ("KVM: arm64: Fix out-of-tree build for nVHE/pKVM tracing") | Reported-by: kernel test robot <[email protected]> | Closes: https://lore.kernel.org/r/[email protected]/ sparse warnings: (new ones prefixed by >>) >> arch/arm64/kvm/hyp/nvhe/trace.c:96:46: sparse: sparse: Using plain integer as NULL pointer vim +96 arch/arm64/kvm/hyp/nvhe/trace.c 680a04c333fa29 Vincent Donnefort 2026-03-09 83 680a04c333fa29 Vincent Donnefort 2026-03-09 84 static void hyp_trace_buffer_unload_bpage_backing(struct hyp_trace_buffer *trace_buffer) 680a04c333fa29 Vincent Donnefort 2026-03-09 85 { 680a04c333fa29 Vincent Donnefort 2026-03-09 86 void *start = trace_buffer->bpages_backing_start; 680a04c333fa29 Vincent Donnefort 2026-03-09 87 size_t size = trace_buffer->bpages_backing_size; 680a04c333fa29 Vincent Donnefort 2026-03-09 88 680a04c333fa29 Vincent Donnefort 2026-03-09 89 if (!size) 680a04c333fa29 Vincent Donnefort 2026-03-09 90 return; 680a04c333fa29 Vincent Donnefort 2026-03-09 91 680a04c333fa29 Vincent Donnefort 2026-03-09 92 memset(start, 0, size); 680a04c333fa29 Vincent Donnefort 2026-03-09 93 680a04c333fa29 Vincent Donnefort 2026-03-09 94 __release_host_mem(start, size); 680a04c333fa29 Vincent Donnefort 2026-03-09 95 680a04c333fa29 Vincent Donnefort 2026-03-09 @96 trace_buffer->bpages_backing_start = 0; 680a04c333fa29 Vincent Donnefort 2026-03-09 97 trace_buffer->bpages_backing_size = 0; 680a04c333fa29 Vincent Donnefort 2026-03-09 98 } 680a04c333fa29 Vincent Donnefort 2026-03-09 99 :::::: The code at line 96 was first introduced by commit :::::: 680a04c333fa29bf92007efe11431be005e8c4bb KVM: arm64: Add tracing capability for the nVHE/pKVM hyp :::::: TO: Vincent Donnefort <[email protected]> :::::: CC: Marc Zyngier <[email protected]> -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki