* kernel/events/ring_buffer.c:22:47: sparse: sparse: incorrect type in argument 2 (different base types)
@ 2026-03-22 15:39 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-03-22 15:39 UTC (permalink / raw)
To: Tao Chen; +Cc: oe-kbuild-all, linux-kernel, Ingo Molnar
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 113ae7b4decc6c2d95bdbbe52e615a0137ef7f9f
commit: c96fff391c095c11dc87dab35be72dee7d217cde perf/ring_buffer: Allow the EPOLLRDNORM flag for poll
date: 1 year ago
config: arc-randconfig-r122-20260322 (https://download.01.org/0day-ci/archive/20260322/202603222340.Ikvqm7r6-lkp@intel.com/config)
compiler: arc-linux-gcc (GCC) 10.5.0
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260322/202603222340.Ikvqm7r6-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/202603222340.Ikvqm7r6-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> kernel/events/ring_buffer.c:22:47: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected int i @@ got restricted __poll_t @@
kernel/events/ring_buffer.c:22:47: sparse: expected int i
kernel/events/ring_buffer.c:22:47: sparse: got restricted __poll_t
kernel/events/ring_buffer.c:174:14: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/events/ring_buffer.c:174:14: sparse: struct perf_buffer [noderef] __rcu *
kernel/events/ring_buffer.c:174:14: sparse: struct perf_buffer *
kernel/events/ring_buffer.c:174:14: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/events/ring_buffer.c:174:14: sparse: struct perf_buffer [noderef] __rcu *
kernel/events/ring_buffer.c:174:14: sparse: struct perf_buffer *
kernel/events/ring_buffer.c:174:14: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/events/ring_buffer.c:174:14: sparse: struct perf_buffer [noderef] __rcu *
kernel/events/ring_buffer.c:174:14: sparse: struct perf_buffer *
vim +22 kernel/events/ring_buffer.c
19
20 static void perf_output_wakeup(struct perf_output_handle *handle)
21 {
> 22 atomic_set(&handle->rb->poll, EPOLLIN | EPOLLRDNORM);
23
24 handle->event->pending_wakeup = 1;
25
26 if (*perf_event_fasync(handle->event) && !handle->event->pending_kill)
27 handle->event->pending_kill = POLL_IN;
28
29 irq_work_queue(&handle->event->pending_irq);
30 }
31
--
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-03-22 15:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-03-22 15:39 kernel/events/ring_buffer.c:22:47: sparse: sparse: incorrect type in argument 2 (different base types) kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®