linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [linux-next:master 6618/6917] kernel/sched/psi.c:1230:13: sparse: error: incompatible types in comparison expression (different address spaces)
@ 2019-02-07 18:29 kbuild test robot
  2019-02-08 23:14 ` Andrew Morton
  0 siblings, 1 reply; 12+ messages in thread
From: kbuild test robot @ 2019-02-07 18:29 UTC (permalink / raw)
  To: Suren Baghdasaryan
  Cc: kbuild-all, Johannes Weiner, Andrew Morton,
	Linux Memory Management List

[-- Attachment #1: Type: text/plain, Size: 1424 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   1bd831d68d5521c01d783af0275439ac645f5027
commit: e7acbba0d6f7a24c8d24280089030eb9a0eb7522 [6618/6917] psi: introduce psi monitor
reproduce:
        # apt-get install sparse
        git checkout e7acbba0d6f7a24c8d24280089030eb9a0eb7522
        make ARCH=x86_64 allmodconfig
        make C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

All errors (new ones prefixed by >>):

   kernel/sched/psi.c:151:6: sparse: warning: symbol 'psi_enable' was not declared. Should it be static?
>> kernel/sched/psi.c:1230:13: sparse: error: incompatible types in comparison expression (different address spaces)
   kernel/sched/psi.c:774:30: sparse: warning: dereference of noderef expression

vim +1230 kernel/sched/psi.c

  1222	
  1223	static __poll_t psi_fop_poll(struct file *file, poll_table *wait)
  1224	{
  1225		struct seq_file *seq = file->private_data;
  1226		struct psi_trigger *t;
  1227		__poll_t ret;
  1228	
  1229		rcu_read_lock();
> 1230		t = rcu_dereference(seq->private);
  1231		if (t)
  1232			ret = psi_trigger_poll(t, file, wait);
  1233		else
  1234			ret = DEFAULT_POLLMASK | EPOLLERR | EPOLLPRI;
  1235		rcu_read_unlock();
  1236	
  1237		return ret;
  1238	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 67247 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2019-02-14  1:51 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-07 18:29 [linux-next:master 6618/6917] kernel/sched/psi.c:1230:13: sparse: error: incompatible types in comparison expression (different address spaces) kbuild test robot
2019-02-08 23:14 ` Andrew Morton
2019-02-09  7:44   ` Paul E. McKenney
2019-02-12  1:00     ` Andrew Morton
2019-02-12 15:54       ` Paul E. McKenney
2019-02-12  1:36     ` Matthew Wilcox
2019-02-12 15:56       ` Paul E. McKenney
2019-02-12 16:25         ` Matthew Wilcox
2019-02-12 16:31           ` Paul E. McKenney
2019-02-12 16:31       ` Johannes Weiner
2019-02-12 16:35         ` Matthew Wilcox
2019-02-14  1:50           ` Suren Baghdasaryan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).