All of lore.kernel.org
 help / color / mirror / Atom feed
* [mhiramat:topic/wprobe-v2 8/11] kernel/trace/trace_wprobe.c:230:16: error: assignment from pointer to non-enclosed address space
@ 2026-08-02 21:06 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-08-02 21:06 UTC (permalink / raw)
  To: Masami Hiramatsu (Google); +Cc: oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mhiramat/linux.git topic/wprobe-v2
head:   a4397d5c0abf35acc79a3324139364deaf5883ec
commit: d83c23ec2a39f1ae346bbce351cb004be5c58c1e [8/11] tracing: wprobe: Add wprobe event trigger
config: i386-allmodconfig (https://download.01.org/0day-ci/archive/20260803/202608030531.NHDXx42Q-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260803/202608030531.NHDXx42Q-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/202608030531.NHDXx42Q-lkp@intel.com/

All errors (new ones prefixed by >>):

   kernel/trace/trace_wprobe.c: In function 'trace_wprobe_update_local':
>> kernel/trace/trace_wprobe.c:230:16: error: assignment from pointer to non-enclosed address space
     230 |         pevent = READ_ONCE(tw->bp_event);
         |                ^
   kernel/trace/trace_wprobe.c:230:16: note: expected 'struct perf_event **' but pointer is of type 'struct perf_event * __seg_fs*'
   In file included from include/asm-generic/percpu.h:9,
                    from arch/x86/include/asm/percpu.h:593,
                    from arch/x86/include/asm/current.h:11,
                    from include/linux/sched.h:12,
                    from include/linux/ptrace.h:6,
                    from include/uapi/asm-generic/bpf_perf_event.h:4,
                    from ./arch/x86/include/generated/uapi/asm/bpf_perf_event.h:1,
                    from include/uapi/linux/bpf_perf_event.h:11,
                    from include/linux/perf_event.h:18,
                    from include/linux/hw_breakpoint.h:5,
                    from kernel/trace/trace_wprobe.c:12:
>> include/linux/percpu-defs.h:221:45: error: initialization from pointer to non-enclosed address space
     221 |         const void __percpu *__vpp_verify = (typeof((ptr) + 0))NULL;    \
         |                                             ^
   include/linux/percpu-defs.h:252:9: note: in expansion of macro '__verify_pcpu_ptr'
     252 |         __verify_pcpu_ptr(ptr);                                         \
         |         ^~~~~~~~~~~~~~~~~
   kernel/trace/trace_wprobe.c:234:15: note: in expansion of macro 'this_cpu_ptr'
     234 |         bp = *this_cpu_ptr(pevent);
         |               ^~~~~~~~~~~~
   include/linux/percpu-defs.h:221:45: note: expected 'const __seg_fs void *' but pointer is of type 'struct perf_event **'
     221 |         const void __percpu *__vpp_verify = (typeof((ptr) + 0))NULL;    \
         |                                             ^
   include/linux/percpu-defs.h:252:9: note: in expansion of macro '__verify_pcpu_ptr'
     252 |         __verify_pcpu_ptr(ptr);                                         \
         |         ^~~~~~~~~~~~~~~~~
   kernel/trace/trace_wprobe.c:234:15: note: in expansion of macro 'this_cpu_ptr'
     234 |         bp = *this_cpu_ptr(pevent);
         |               ^~~~~~~~~~~~


vim +230 kernel/trace/trace_wprobe.c

   225	
   226	static int trace_wprobe_update_local(struct trace_wprobe *tw, unsigned long addr)
   227	{
   228		struct perf_event **pevent, *bp;
   229	
 > 230		pevent = READ_ONCE(tw->bp_event);
   231		if (!pevent)
   232			return -EINVAL;
   233	
   234		bp = *this_cpu_ptr(pevent);
   235		if (!bp)
   236			return -EINVAL;
   237	
   238		return modify_local_hw_breakpoint_addr(bp, addr);
   239	}
   240	

--
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-08-02 21:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-02 21:06 [mhiramat:topic/wprobe-v2 8/11] kernel/trace/trace_wprobe.c:230:16: error: assignment from pointer to non-enclosed address space 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.